CN109660664A - Event-handling method, device and storage medium - Google Patents

Event-handling method, device and storage medium Download PDF

Info

Publication number
CN109660664A
CN109660664A CN201811564847.7A CN201811564847A CN109660664A CN 109660664 A CN109660664 A CN 109660664A CN 201811564847 A CN201811564847 A CN 201811564847A CN 109660664 A CN109660664 A CN 109660664A
Authority
CN
China
Prior art keywords
event
mobile terminal
electricity
stable state
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811564847.7A
Other languages
Chinese (zh)
Other versions
CN109660664B (en
Inventor
黄树伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxi Investment Co.,Ltd.
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811564847.7A priority Critical patent/CN109660664B/en
Publication of CN109660664A publication Critical patent/CN109660664A/en
Application granted granted Critical
Publication of CN109660664B publication Critical patent/CN109660664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

This application discloses a kind of event-handling method, device and storage mediums, are applied to mobile terminal, which includes: the information about power for obtaining the mobile terminal in preset duration;Judge whether the electricity of the mobile terminal is in stable state according to the information about power;When the electricity is in stable state, the event type of currently pending multiple events and the event is obtained;The processing sequence of corresponding event is determined according to the event type;Multiple event is handled according to the processing sequence, so as to preferably guarantee the completion of each processing event in the unstable situation of electricity, avoids generation event Loss, method is simple.

Description

Event-handling method, device and storage medium
Technical field
This application involves field of communication technology more particularly to a kind of event-handling methods, device and storage medium.
Background technique
With the rapid development of mobile terminals, mobile terminal screen is increasing, and the function of mobile terminal is also more and more richer Richness, so that people are continuously increased the dependence of mobile terminal.
Nowadays, the high-frequency use of mobile terminal often leads to its electric quantity consumption excessive velocities, and the electricity of mobile terminal Amount is limited, and in the case where low battery or unstable electric quantity consumption speed, is such as charged not in time, mobile terminal Event handling ability can decline, at this time multiple processing events if it exists, and may result in certain processing events can not normally complete, For example message sends unsuccessful, especially communication class event, is easy to happen the phenomenon that event is lost.
Summary of the invention
The embodiment of the present application provides a kind of event-handling method, device and storage medium, can be in the abnormal situation of electricity Under, avoid generation event Loss.
The embodiment of the present application provides a kind of event-handling method, is applied to mobile terminal, comprising:
Obtain the information about power of the mobile terminal in preset duration;
Judge whether the electricity of the mobile terminal is in stable state according to the information about power;
When the electricity is in stable state, the event of currently pending multiple events and the event is obtained Type;
The processing sequence of corresponding event is determined according to the event type;
The multiple event is handled according to the processing sequence.
The embodiment of the present application also provides a kind of event processing apparatus, are applied to mobile terminal, comprising:
First obtains module, for obtaining the information about power of the mobile terminal in preset duration;
Judgment module, for judging whether the electricity of the mobile terminal is in stable state according to the information about power;
Second obtains module, for when the electricity is in stable state, obtain currently pending multiple events, with And the event type of the event;
Determining module, for determining the processing sequence of corresponding event according to the event type;
Processing module, for handling according to the processing sequence the multiple event.
The embodiment of the present application also provides a kind of computer readable storage medium, a plurality of finger is stored in the storage medium It enables, described instruction is suitable for being loaded by processor to execute any of the above-described event-handling method.
Event-handling method, device and storage medium provided by the present application are applied to mobile terminal, when by obtaining default The information about power of the mobile terminal in long, and judge whether the electricity of the mobile terminal is according to the information about power and stablize shape State obtains the event type of currently pending multiple events and the event, and root when the electricity is in stable state The processing sequence that corresponding event is determined according to the event type, is later handled multiple event according to the processing sequence, from And can preferably guarantee the completion of each processing event in the unstable situation of electricity, avoid generation event Loss, method Simply, data processing reliability is improved.
Detailed description of the invention
With reference to the accompanying drawing, it is described in detail by the specific embodiment to the application, the technical solution of the application will be made And other beneficial effects are apparent.
Fig. 1 is the flow diagram of event-handling method provided by the embodiments of the present application.
Fig. 2 is the flow diagram of step S102 provided by the embodiments of the present application.
Fig. 3 is another flow diagram of step S102 provided by the embodiments of the present application.
Fig. 4 is another flow diagram of step S102 provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of event processing apparatus provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Fig. 7 is another structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall in the protection scope of this application.
A kind of event-handling method is applied to mobile terminal, comprising: obtains the electricity letter of the mobile terminal in preset duration Breath;Judge whether the electricity of the mobile terminal is in stable state according to the information about power;When the electricity is in stable state, Obtain the event type of currently pending multiple events and the event;The place of corresponding event is determined according to the event type Make sequence in order;Multiple event is handled according to the processing sequence.
As shown in Figure 1, Fig. 1 is the flow diagram of event-handling method provided by the embodiments of the present application, the event handling Method is applied to mobile terminal, and detailed process can be such that
S101. the information about power of the mobile terminal in preset duration is obtained.
S102. judge whether the electricity of the mobile terminal is in stable state according to the information about power, if so, under executing Step S103 is stated, executes above-mentioned steps S101 if it is not, then returning.
In the present embodiment, which can be manually set, such as 10 minutes.The information about power refers mainly to have with electricity The information of pass, such as charge value all the time, changed time value of electricity, etc..In general, mobile terminal can be examined in real time The Expenditure Levels of its own electricity are surveyed, and just carry out a state of charge analysis every preset duration.
For example, the information about power may include the charge value of any time in the preset duration, at this point, Fig. 2 is referred to, on Stating step S102 can specifically include:
S1021A. the preset duration is divided, obtains the sub-period of multiple identical durations;
S1022A. the initial time charge value corresponding with the time is terminated of each sub-period is obtained;
S1023A. according to the initial time sub-period corresponding with time corresponding charge value calculating is terminated electric quantity change Amount;
S1024A. judge whether the electricity of the mobile terminal is in stable state according to the electric quantity change amount.
In the present embodiment, for the preset duration of any number, it can be divided into certain amount of sub-period, namely Interval duration between each sub-period is equal, and wherein the specific quantity can be set according to the length of the preset duration, leads to Often, preset duration is longer, which can be set bigger.When having divided sub-period, need to calculate every height The variable quantity of electricity in period analyzes state of charge according to the electric quantity change amount, in general, electric quantity change amount is big, illustrates electricity Depletion rate is fast, and electric quantity change amount is small, illustrates that electric quantity consumption speed is slow.
Further, Fig. 3 is referred to, above-mentioned steps S1024A can specifically include:
First number of the identical electric quantity change amount of numerical value in the preset duration is counted, and whether judges this first number Less than first threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
In the present embodiment, which is usually manually set, and be can be user and is lost in advance to point director part The terminal for losing phenomenon carries out what corresponding coulometric analysis obtained.Since the duration of each sub-period is identical, therefore identical change can be passed through Change the electric quantity change situation in duration to measure electricity stable state.When this first number is less than first threshold, illustrate electricity Variation fluctuation is bigger, and state of charge is simultaneously unstable, when first number is greater than or equal to first threshold, illustrates electric quantity change wave Move smaller, state of charge stabilization.
For example, the information about power may include the adjacent changed interval duration of electricity twice, at this point, Fig. 4 is referred to, Above-mentioned steps S102 can specifically include:
S1021B. second number of the identical interval duration of numerical value in the preset duration is counted, and judges this second Whether number is less than the second preset threshold, if it is not, following step S1022B is then executed, if so, executing following step S1023B;
S1022B. determine that the electricity of the mobile terminal is in stable state;
S1023B. determine that the electricity of the mobile terminal plays pendulum.
In the present embodiment, which is to be manually set.Since electricity is usually consecutive variations, it is adjacent twice The variable quantity of variation is generally minimum change unit, such as 1%, therefore can pass through variation duration needed for same charge variable quantity To measure electricity stable state.When this second number is less than the second preset threshold, illustrate that variation duration gap is bigger, electricity State is simultaneously unstable, when this second number is greater than or equal to second threshold, illustrates to change time length comparison unification, state of charge is steady It is fixed.
S103. the event type of currently pending multiple events and the event is obtained.
In the present embodiment, which can be depending on application type, such as instant messaging application, the event Type is communication type, and for Video Applications, which is multimedia type, etc..
S104. the processing sequence of corresponding event is determined according to the event type.
For example, above-mentioned steps S104 can specifically include:
Determine the corresponding processing application of each event;
The processing is obtained using affiliated application level;
When in the event type there are when preset kind, using the processing sequence of the event with the preset kind as first It is a, and according to the processing sequence of the determining remaining event of the application level;
When in the event type be not present preset kind when, using current foreground using corresponding event processing sequence as First, and according to the processing sequence of the determining remaining event of the application level.
In the present embodiment, which can be user's artificial settings, be also possible to terminal according to applying in the past Frequency of use sets itself, for example, divide from high to low according to grade can be followed successively by communication class application, the application of browser class, Video class application, wherein communication class application may include short message application, instant messaging using (such as qq, wechat etc.), the browsing Device application may include baidu browser, Google's browser, which may include Tencent's video, iqiyi.com video Deng.
In general, the application that frequency of use is higher, grade can be higher, and processing sequence can also be more forward.The default class Type can be set according to user demand, it is contemplated that in the unstable situation of electricity, if multiple processing events are handled simultaneously, and communication Class event is easy to that Loss occurs, which can be communication type.
S105. multiple event is handled according to the processing sequence.
In the present embodiment, in the case where electricity is stablized, multiple events can be handled simultaneously, and in electricity shakiness It in the case where fixed, needs successively to handle multiple event according to processing sequence, so that generation event be avoided to lose as far as possible Phenomenon.
It can be seen from the above, event-handling method provided in this embodiment, is applied to mobile terminal, by obtaining preset duration The information about power of the interior mobile terminal, and judge whether the electricity of the mobile terminal is in stable state according to the information about power, When the electricity is in stable state, the event type of currently pending multiple events and the event is obtained, and according to this Event type determines the processing sequence of corresponding event, handles later according to the processing sequence multiple event, so as to The completion for preferably guaranteeing each processing event in the unstable situation of electricity avoids generation event Loss, and method is simple, Improve data processing reliability.
The method according to described in above-described embodiment, the present embodiment will be retouched from the angle further progress of event processing apparatus It states, which can be used as independent entity specifically to realize.
Referring to Fig. 5, event processing apparatus provided by the embodiments of the present application has been described in detail in Fig. 5, it is applied to mobile terminal, The mobile terminal may include mobile phone, tablet computer, individual PC etc..The event processing apparatus may include: the first acquisition module 10, judgment module 20, second obtains module 30, determining module 40 and processing module 50, in which:
(1) first obtains module 10
First obtains module 10, for obtaining the information about power of the mobile terminal in preset duration.
(2) judgment module 20
Judgment module 20, for judging whether the electricity of the mobile terminal is in stable state according to the information about power.
In the present embodiment, which can be manually set, such as 10 minutes.The information about power refers mainly to have with electricity The information of pass, such as charge value all the time, changed time value of electricity, etc..In general, mobile terminal can be examined in real time The Expenditure Levels of its own electricity are surveyed, and just carry out a state of charge analysis every preset duration.
For example, the information about power includes the charge value of any time in the preset duration, which is specifically used for:
S1021A. the preset duration is divided, obtains the sub-period of multiple identical durations;
S1022A. the initial time charge value corresponding with the time is terminated of each sub-period is obtained;
S1023A. according to the initial time sub-period corresponding with time corresponding charge value calculating is terminated electric quantity change Amount;
S1024A. judge whether the electricity of the mobile terminal is in stable state according to the electric quantity change amount.
In the present embodiment, for the preset duration of any number, it can be divided into certain amount of sub-period, namely Interval duration between each sub-period is equal, and wherein the specific quantity can be set according to the length of the preset duration, leads to Often, preset duration is longer, which can be set bigger.When having divided sub-period, need to calculate every height The variable quantity of electricity in period analyzes state of charge according to the electric quantity change amount, in general, electric quantity change amount is big, illustrates electricity Depletion rate is fast, and electric quantity change amount is small, illustrates that electric quantity consumption speed is slow.
Further, which is specifically used for:
First number of the identical electric quantity change amount of numerical value in the preset duration is counted, and whether judges this first number Less than first threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
In the present embodiment, which is usually manually set, and be can be user and is lost in advance to point director part The terminal for losing phenomenon carries out what corresponding coulometric analysis obtained.Since the duration of each sub-period is identical, therefore identical change can be passed through Change the electric quantity change situation in duration to measure electricity stable state.When this first number is less than first threshold, illustrate electricity Variation fluctuation is bigger, and state of charge is simultaneously unstable, when first number is greater than or equal to first threshold, illustrates electric quantity change wave Move smaller, state of charge stabilization.
For example, the information about power includes the adjacent changed interval duration of electricity twice, which is specifically used In:
Second number of the identical interval duration of numerical value in the preset duration is counted, and judges whether this second number be small In the second preset threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
In the present embodiment, which is to be manually set.Since electricity is usually consecutive variations, it is adjacent twice The variable quantity of variation is generally minimum change unit, such as 1%, therefore can pass through variation duration needed for same charge variable quantity To measure electricity stable state.When this second number is less than the second preset threshold, illustrate that variation duration gap is bigger, electricity State is simultaneously unstable, when this second number is greater than or equal to second threshold, illustrates to change time length comparison unification, state of charge is steady It is fixed.
(3) second obtain module 30
Second obtains module 30, for when the electricity is in stable state, obtain currently pending multiple events, with And the event type of the event.
In the present embodiment, which can be depending on application type, such as instant messaging application, the event Type is communication type, and for Video Applications, which is multimedia type, etc..
(4) determining module 40
Determining module 40, for determining the processing sequence of corresponding event according to the event type.
For example, the determining module 40 is specifically used for:
Determine the corresponding processing application of each event;
The processing is obtained using affiliated application level;
When in the event type there are when preset kind, using the processing sequence of the event with the preset kind as first It is a, and according to the processing sequence of the determining remaining event of the application level;
When in the event type be not present preset kind when, using current foreground using corresponding event processing sequence as First, and according to the processing sequence of the determining remaining event of the application level.
In the present embodiment, which can be user's artificial settings, be also possible to terminal according to applying in the past Frequency of use sets itself, for example, divide from high to low according to grade can be followed successively by communication class application, the application of browser class, Video class application, wherein communication class application may include short message application, instant messaging using (such as qq, wechat etc.), the browsing Device application may include baidu browser, Google's browser, which may include Tencent's video, iqiyi.com video Deng.
In general, the application that frequency of use is higher, grade can be higher, and processing sequence can also be more forward.The default class Type can be set according to user demand, it is contemplated that in the unstable situation of electricity, if multiple processing events are handled simultaneously, and communication Class event is easy to that Loss occurs, which can be communication type.
(5) processing module 50
Processing module 50, for handling according to the processing sequence multiple event.
In the present embodiment, in the case where electricity is stablized, multiple events can be handled simultaneously, and in electricity shakiness It in the case where fixed, needs successively to handle multiple event according to processing sequence, so that generation event be avoided to lose as far as possible Phenomenon.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
It can be seen from the above, event-handling method provided in this embodiment, is applied to mobile terminal, module is obtained by first 10 obtain the information about power of the mobile terminal in preset duration, and judgment module 20 judges the mobile terminal according to the information about power Whether electricity is in stable state, and when the electricity is in stable state, the second acquisition module 30 obtains currently pending more The event type of a event and the event, determining module 40 determine the processing sequence of corresponding event according to the event type, it Post-processing module 50 is handled multiple event according to the processing sequence, so as to preferable in the unstable situation of electricity The completion for guaranteeing each processing event avoids generation event Loss, and method is simple, improves data processing reliability.
In addition, the embodiment of the present application also provides a kind of mobile terminal, which can be smart phone, tablet computer Etc. equipment.As shown in fig. 6, mobile terminal 200 includes processor 201, memory 202.Wherein, processor 201 and memory 202 It is electrically connected.
Processor 201 is the control centre of mobile terminal 200, utilizes various interfaces and the entire mobile terminal of connection Various pieces by the application program of operation or load store in memory 202, and are called and are stored in memory 202 Data, execute mobile terminal various functions and processing data, thus to mobile terminal carry out integral monitoring.
In the present embodiment, processor 201 in mobile terminal 200 can according to following step, by one or one with On the corresponding instruction of process of application program be loaded into memory 202, and be stored in memory by processor 201 to run Application program in 202, to realize various functions:
Obtain the information about power of the mobile terminal in preset duration;
Judge whether the electricity of the mobile terminal is in stable state according to the information about power;
When the electricity is in stable state, the event type of currently pending multiple events and the event is obtained;
The processing sequence of corresponding event is determined according to the event type;
Multiple event is handled according to the processing sequence.
Fig. 7 shows the specific block diagram of mobile terminal provided in an embodiment of the present invention, which can be used for The event-handling method provided in above-described embodiment is provided.The mobile terminal 300 can be smart phone or tablet computer.
RF circuit 310 realizes the mutual conversion of electromagnetic wave and electric signal, thus with logical for receiving and transmitting electromagnetic wave News network or other equipment are communicated.RF circuit 310 may include various existing for executing the circuit elements of these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuit 310 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in above-mentioned wireless network (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (Wideband Code Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), adopting wireless fidelity technology (Wireless Fidelity, Wi-Fi) (such as U.S.'s electricity Gas and Electronic Engineering Association standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Memory 320 can be used for storing software program and module, as front camera is taken pictures automatically in above-described embodiment Corresponding program instruction/the module of light-supplementing system, method, the software program that processor 380 is stored in memory 320 by operation And module, thereby executing various function application and data processing, i.e. the realization front camera function of taking pictures automatic light-supplementing. Memory 320 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 320 can further comprise relative to place The remotely located memory of device 380 is managed, these remote memories can pass through network connection to mobile terminal 300.Above-mentioned network Example include but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 330 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 330 may include touching Sensitive surfaces 331 and other input equipments 332.Touch sensitive surface 331, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 331 or near touch sensitive surface 331), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 331 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 380, and can receive processor 380 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 331.In addition to touch sensitive surface 331, input unit 330 can also include other input equipments 332.Specifically, Other input equipments 332 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 340 can be used for showing information input by user or the information and mobile terminal that are supplied to user 300 various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof Lai It constitutes.Display unit 340 may include display panel 341, optionally, can using LCD (Liquid Crystal Display, Liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display Panel 341.Further, touch sensitive surface 331 can cover display panel 341, when touch sensitive surface 331 detect on it or near Touch operation after, send processor 380 to determine the type of touch event, be followed by subsequent processing device 380 according to touch event Type provides corresponding visual output on display panel 341.Although in Fig. 7, touch sensitive surface 331 is with display panel 341 Output and input function as two independent components to realize, but in some embodiments it is possible to by touch sensitive surface 331 with Display panel 341 is integrated and realizes and outputs and inputs function.
Mobile terminal 300 may also include at least one sensor 350, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 341, proximity sensor can when mobile terminal 300 is moved in one's ear, Close display panel 341 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as mobile terminal 300 etc. other Sensor, details are not described herein.
Voicefrequency circuit 360, loudspeaker 361, microphone 362 can provide the audio interface between user and mobile terminal 300. Electric signal after the audio data received conversion can be transferred to loudspeaker 361, be converted by loudspeaker 361 by voicefrequency circuit 360 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is connect by voicefrequency circuit 360 Audio data is converted to after receipts, then by after the processing of audio data output processor 380, is sent to through RF circuit 310 such as another One terminal, or audio data is exported to memory 320 to be further processed.Voicefrequency circuit 360 is also possible that earplug Jack, to provide the communication of peripheral hardware earphone Yu mobile terminal 300.
Mobile terminal 300 can help user send and receive e-mail, is clear by transmission module 370 (such as Wi-Fi module) Look at webpage and access streaming video etc., it provides wireless broadband internet for user and accesses.Although Fig. 7 shows transmission mould Block 370, but it is understood that, and it is not belonging to must be configured into for mobile terminal 300, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 380 is the control centre of mobile terminal 300, utilizes each of various interfaces and connection whole mobile phone Part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in memory Data in 320 execute the various functions and processing data of mobile terminal 300, to carry out integral monitoring to mobile phone.It is optional , processor 380 may include one or more processing cores;In some embodiments, processor 380 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 380.
Mobile terminal 300 further includes the power supply 390 (such as battery) powered to all parts, in some embodiments, electricity Source can be logically contiguous by power-supply management system and processor 380, to realize management charging by power-supply management system, put The functions such as electricity and power managed.Power supply 190 can also include one or more direct current or AC power source, recharge The random components such as system, power failure detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal 300 can also include camera (such as front camera, rear camera), bluetooth Module etc., details are not described herein.Specifically in the present embodiment, the display unit of mobile terminal is touch-screen display, mobile whole End further includes having memory and one perhaps more than one program one of them or more than one program being stored in and deposits In reservoir, and it is configured to execute one or more than one program by one or more than one processor to include for carrying out The instruction operated below:
Obtain the information about power of the mobile terminal in preset duration;
Judge whether the electricity of the mobile terminal is in stable state according to the information about power;
When the electricity is in stable state, the event type of currently pending multiple events and the event is obtained;
The processing sequence of corresponding event is determined according to the event type;
Multiple event is handled according to the processing sequence.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not It repeats again.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein storing There is a plurality of instruction, which can be loaded by processor, to execute at any event provided by the embodiment of the present invention Step in reason method.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute at any event provided by the embodiment of the present invention Step in reason method, it is thereby achieved that achieved by any event-handling method provided by the embodiment of the present invention Beneficial effect is detailed in the embodiment of front, and details are not described herein.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Although above preferred embodiment is not to limit in conclusion the application is disclosed above with preferred embodiment The application processed, those skilled in the art are not departing from spirit and scope, can make various changes and profit Decorations, therefore the protection scope of the application subjects to the scope of the claims.

Claims (10)

1. a kind of event-handling method is applied to mobile terminal characterized by comprising
Obtain the information about power of the mobile terminal in preset duration;
Judge whether the electricity of the mobile terminal is in stable state according to the information about power;
When the electricity is in stable state, the event type of currently pending multiple events and the event is obtained;
The processing sequence of corresponding event is determined according to the event type;
The multiple event is handled according to the processing sequence.
2. event-handling method according to claim 1, which is characterized in that the information about power includes the preset duration The charge value of interior any time, it is described to judge whether the electricity of the mobile terminal is according to the information about power and stablize shape State, comprising:
The preset duration is divided, the sub-period of multiple identical durations is obtained;
Obtain the initial time charge value corresponding with the time is terminated of each sub-period;
According to the electric quantity change amount of initial time sub-period corresponding with time corresponding charge value calculating is terminated;
Judge whether the electricity of the mobile terminal is in stable state according to the electric quantity change amount.
3. event-handling method according to claim 2, which is characterized in that described to judge institute according to the electric quantity change amount Whether the electricity for stating mobile terminal is in stable state, comprising:
First number of the identical electric quantity change amount of numerical value in the preset duration is counted, and judges that first number is It is no to be less than first threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
4. event-handling method according to claim 1, which is characterized in that the information about power includes adjacent electricity twice Changed interval duration, it is described to judge whether the electricity of the mobile terminal is in stable according to the electric quantity change information State, comprising:
Second number of the identical interval duration of numerical value in the preset duration is counted, and whether judges second number Less than the second preset threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
5. event-handling method according to claim 1, which is characterized in that described determined according to the event type corresponds to The processing sequence of event, comprising:
Determine the corresponding processing application of each event;
It obtains the processing and applies affiliated application level;
When in the event type there are when preset kind, using the processing sequence of the event with the preset kind as first It is a, and according to the processing sequence of the determining remaining event of the application level;
When preset kind is not present in the event type, using current foreground using the processing sequence of corresponding event as the One, and according to the processing sequence of the determining remaining event of the application level.
6. a kind of event processing apparatus is applied to mobile terminal characterized by comprising
First obtains module, for obtaining the information about power of the mobile terminal in preset duration;
Judgment module, for judging whether the electricity of the mobile terminal is in stable state according to the information about power;
Second obtains module, for obtaining currently pending multiple events, Yi Jisuo when the electricity is in stable state State the event type of event;
Determining module, for determining the processing sequence of corresponding event according to the event type;
Processing module, for handling according to the processing sequence the multiple event.
7. event processing apparatus according to claim 6, which is characterized in that the information about power includes the preset duration The charge value of interior any time, the judgment module are specifically used for:
The preset duration is divided, the sub-period of multiple identical durations is obtained;
Obtain the initial time charge value corresponding with the time is terminated of each sub-period;
According to the electric quantity change amount of initial time sub-period corresponding with time corresponding charge value calculating is terminated;
Judge whether the electricity of the mobile terminal is in stable state according to the electric quantity change amount.
8. event processing apparatus according to claim 7, which is characterized in that the judgment module is specifically used for:
First number of the identical electric quantity change amount of numerical value in the preset duration is counted, and judges that first number is It is no to be less than first threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
9. event processing apparatus according to claim 6, which is characterized in that the information about power includes adjacent electricity twice Changed interval duration, the judgment module are specifically used for:
Second number of the identical interval duration of numerical value in the preset duration is counted, and whether judges second number Less than the second preset threshold;
If not, it is determined that the electricity of the mobile terminal is in stable state;
If so, determining that the electricity of the mobile terminal plays pendulum.
10. a kind of computer readable storage medium, which is characterized in that be stored with a plurality of instruction, the finger in the storage medium It enables being suitable for being loaded by processor and 1 to 5 described in any item event-handling methods is required with perform claim.
CN201811564847.7A 2018-12-20 2018-12-20 Event processing method, device and storage medium Active CN109660664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811564847.7A CN109660664B (en) 2018-12-20 2018-12-20 Event processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811564847.7A CN109660664B (en) 2018-12-20 2018-12-20 Event processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109660664A true CN109660664A (en) 2019-04-19
CN109660664B CN109660664B (en) 2021-08-03

Family

ID=66115137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811564847.7A Active CN109660664B (en) 2018-12-20 2018-12-20 Event processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109660664B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
CN105684525B (en) * 2013-12-20 2017-02-08 华为技术有限公司 Method and apparatus for reducing power consumption in a mobile electronic device
CN106921793A (en) * 2017-01-24 2017-07-04 奇酷互联网络科技(深圳)有限公司 The method of information alert, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN105684525B (en) * 2013-12-20 2017-02-08 华为技术有限公司 Method and apparatus for reducing power consumption in a mobile electronic device
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
CN106921793A (en) * 2017-01-24 2017-07-04 奇酷互联网络科技(深圳)有限公司 The method of information alert, device and mobile terminal

Also Published As

Publication number Publication date
CN109660664B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN106357897B (en) The acquisition methods and device of drop information
CN106959761B (en) A kind of terminal photographic method, device and terminal
CN106340925B (en) A kind of charge control method, device and terminal
CN106453597B (en) The method of adjustment of data synchronizing cycles, apparatus and system
WO2015007232A1 (en) Method, device and mobile terminal for checking message
CN104899080A (en) Method and apparatus for switching real-time image in instant messaging
CN103530520A (en) Method and terminal for obtaining data
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN109493821A (en) Screen brightness regulation method, device and storage medium
CN105807908B (en) A kind of method and apparatus of switching working mode
CN106020945B (en) Shortcut item adding method and device
CN104573437A (en) Information authentication method, device and terminal
CN106210514B (en) It takes pictures the method, apparatus and smart machine of focusing
CN109656431A (en) Information display method, device and storage medium
CN110442310A (en) Application data processing method, device, storage medium and terminal device
CN110209415A (en) Firmware method for refreshing, device and storage medium
CN110113782A (en) Data transmission method, device and storage medium
CN109413256A (en) Contact person information processing method, device, storage medium and electronic equipment
CN109062643A (en) A kind of display interface method of adjustment, device and terminal
CN106484141B (en) The setting method and mobile terminal of threshold value
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN109427101A (en) A kind of method and system obtaining augmented reality image
CN110489177A (en) Application control method, apparatus, storage medium and terminal device
CN103457832A (en) Information management method, device and terminal
CN109547640A (en) Mobile terminal WIFI control method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230306

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Huaxi Investment Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right