CN107436672A - The processing method and terminal of a kind of application - Google Patents

The processing method and terminal of a kind of application Download PDF

Info

Publication number
CN107436672A
CN107436672A CN201610362165.2A CN201610362165A CN107436672A CN 107436672 A CN107436672 A CN 107436672A CN 201610362165 A CN201610362165 A CN 201610362165A CN 107436672 A CN107436672 A CN 107436672A
Authority
CN
China
Prior art keywords
wake
application
information
processing
request
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
CN201610362165.2A
Other languages
Chinese (zh)
Other versions
CN107436672B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610362165.2A priority Critical patent/CN107436672B/en
Publication of CN107436672A publication Critical patent/CN107436672A/en
Application granted granted Critical
Publication of CN107436672B publication Critical patent/CN107436672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of processing method of application and terminal, wherein, the processing method of application includes:Obtain the wake-up information for the application that wake request is sent in preset duration;According to the wake-up information, it is determined that needing the pending application handled of economizing on electricity;Economize on electricity processing is carried out to the pending application.Scheme provided by the invention finds the application of most power consumption, and carry out economize on electricity processing by the analysis of the wake-up information of the application to sending wake request;The electricity of equipment is avoided by unnecessary consumption, system usage time is improved, is brought great convenience for user, while reduces processing cost, and scheme is easily realized, will not cause the time delay of application.

Description

The processing method and terminal of a kind of application
Technical field
The present invention relates to communication technical field, the processing method and terminal of a kind of application are particularly related to.
Background technology
At present, smart mobile phone has substantially been popularized completely, and function is more and more, and screen resolution is increasing; But while bringing more multi-functional to user, the consumption of battery electric quantity is also more and more faster.Once electricity was filled from former one week, Fill within one day till now once electric.Wherein, a main cause for causing a large amount of electric quantity consumptions is that some applications in mobile phone are frequent Wake-up system.
In the prior art, the processing method frequently waken up on mobile phone, there are two kinds, one kind is to set a black and white lists, Blacklist is loaded when blank screen, then according to list, forbids applying wake-up system in these lists.Another kind is to application Wake-up carry out registration process, i.e., by the wake request of multiple applications, be synchronized to the identical time cycle, be uniformly processed, So as to reduce wake-up times.
But both approaches have the defects of the defects of certain, first method, first, needing to collect which application is Blacklist, but APP has much daily now, and this list is difficult to collect;Second, the definition of blacklist, any application should return In blacklist, different people, there is different standards, it is difficult to define.The defects of second method, for some requirement of real-time compared with High application, delay can be caused than more serious, and alignment also is difficult to a unified standard, snaps to how many times actually.
The content of the invention
It is an object of the invention to provide a kind of processing method of application and terminal, solves frequently to wake up system in the prior art The problem of application delay that the solution of system is not easy to realize or causes requirement of real-time higher is serious.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of processing method of application, including:
Obtain the wake-up information for the application that wake request is sent in preset duration;
According to the wake-up information, it is determined that needing the pending application handled of economizing on electricity;
Economize on electricity processing is carried out to the pending application.
Alternatively, the wake-up information includes waking up purpose, wakes up type and wake-up times;
It is described according to the wake-up information, it is determined that the step of pending application for the processing that needs to economize on electricity includes:
In the wake-up purpose to start background service, and the wake-up times are more than threshold corresponding with the wake-up type During value, it is pending application to obtain with corresponding apply of wake-up information.
Alternatively, the wake-up type includes the first wake-up type for waking up deep sleep equipment and wake-up either shallow sleep is set Standby second wakes up type, and described first, which wakes up threshold value corresponding to type, is less than threshold value corresponding to the described second wake-up type.
Alternatively, described the step of economize on electricity processing is carried out to the pending application, includes:
Obtain the processing strategy for the pending application;
Economize on electricity corresponding to being carried out according to the processing strategy to the pending application is handled.
Alternatively, described obtain includes for the tactful step of the processing of the pending application:
User is prompted to handle the pending application;
Obtain the chosen processing strategy for the pending application.
Alternatively, it is described that the step of handling of being economized on electricity corresponding to the pending application progress is wrapped according to the processing strategy Include:
Stop the operation of the pending application;Or
Unload the pending application;Or
Freeze the pending application.
Alternatively, the step of wake-up information for the application for sending wake request in the acquisition preset duration, includes:
Obtain the wake-up information for the application that wake request is sent in the preset duration of the last record.
Present invention also offers a kind of terminal, including:
First acquisition module, for obtaining the wake-up information for the application that wake request is sent in preset duration;
First determining module, for according to the wake-up information, it is determined that the pending application for the processing that needs to economize on electricity;
First processing module, for carrying out economize on electricity processing to the pending application.
Present invention also offers a kind of processing method of application, including:
When the wake request of application is monitored in preset duration, wake request corresponding to generation records;
The wake-up times according to corresponding to the generation number that the wake request records obtains the wake request record;
Obtain sending wake request in the preset duration according to wake request record and corresponding wake-up times Application wake-up information.
Alternatively, the generation number recorded according to the wake request obtains calling out corresponding to the wake request record The step of awake number, includes:
If the wake request of generation records existing, increase generation time corresponding with wake request record Number;
If the wake request record of generation is not present, retain the wake request record, and increase and called out with described Wake up and generate number corresponding to request record;
When monitoring duration reaches the preset duration, the wake-up times are obtained according to the obtained generation number.
Alternatively, in addition to:
By the previous preset duration of wake-up information can be caused to cover for the application for sending wake request in the latter preset duration Inside send the wake-up information of the application of wake request.
Present invention also offers a kind of terminal, including:
First generation module, for monitored in preset duration application wake request when, generate corresponding to wake up please Seek record;
Second processing module, the generation number for being recorded according to the wake request obtain the wake request record pair The wake-up times answered;
3rd processing module, for according to the wake request record and corresponding wake-up times obtain described default when The wake-up information of the application of wake request is sent in length.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, point for the wake-up information that the processing method of the application passes through the application to sending wake request Analysis, finds the application of most power consumption, and carry out economize on electricity processing;The electricity of equipment is avoided by unnecessary consumption, improves system Usage time, brought great convenience for user, while reduce processing cost, and scheme is easily realized, and will not cause should Time delay.
Brief description of the drawings
Fig. 1 is the process flow schematic diagram of the application of the embodiment of the present invention one;
Fig. 2 is the process flow schematic diagram of the application of the embodiment of the present invention two;
Fig. 3 is that the instantiation of the embodiment of the present invention services side schematic flow sheet;
Fig. 4 is the instantiation application side schematic flow sheet of the embodiment of the present invention;
Fig. 5 is the instantiation handling process schematic diagram of the embodiment of the present invention;
Fig. 6 is the terminal structure schematic diagram of the embodiment of the present invention three;
Fig. 7 is the terminal structure schematic diagram of the embodiment of the present invention four.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
The present invention is directed to the frequent solution for waking up system in existing technology and is not easy to realize or cause requirement of real-time The problem of higher application delay is serious, there is provided a variety of solutions, it is specific as follows:
Embodiment one
As shown in figure 1, the processing method for the application that the embodiment of the present invention one provides, can be applied to the application side of terminal, institute Stating the processing method of application includes:
Step 11:Obtain the wake-up information for the application that wake request is sent in preset duration;
Step 12:According to the wake-up information, it is determined that needing the pending application handled of economizing on electricity;
Step 13:Economize on electricity processing is carried out to the pending application.
Wherein, preset duration (using the data cycle) can be with preset duration (the statistics week of service side in the description below Phase) it is consistent.
The specific implementation of step 12 is not construed as limiting, can be according to predefined procedure (such as with waking up that information is corresponding applies Priority orders) processing each wake-up information, also can disposably handle all wake-up information.
The wake-up that the processing method for the application that the embodiment of the present invention one provides passes through the application to sending wake request The analysis of information, the application of most power consumption is found, and carry out economize on electricity processing;The electricity of equipment is avoided by unnecessary consumption, is carried High system usage time, is brought great convenience for user, while reduces processing cost, and scheme is easily realized, no The time delay of application can be caused.
Specifically, the wake-up information includes waking up purpose, wakes up type and wake-up times;It is described to be believed according to described wake up Breath, include it is determined that needs economize on electricity the step of the pending application of processing:In the wake-up purpose to start background service, and it is described When wake-up times are more than with the wake-up type corresponding threshold value, obtain it is corresponding with the wake-up information apply for it is pending should With;
Otherwise, it is not pending application to obtain with corresponding apply of wake-up information.
When whether the wake-up purpose in judging wake-up information is to start background service, can directly judge to wake up in information Wake-up purpose for start background service, can also by judge wake up information in wake-up purpose for start foreground service indirectly Obtain.
Preferably, the wake-up type includes the first wake-up type for waking up deep sleep equipment and wake-up either shallow sleep is set Standby second wakes up type, and described first, which wakes up threshold value corresponding to type, is less than threshold value corresponding to the described second wake-up type.
Wherein, described the step of economize on electricity processing is carried out to the pending application, includes:Obtain for it is described it is pending should Processing strategy;Economize on electricity corresponding to being carried out according to the processing strategy to the pending application is handled.
Specifically, described obtain includes for the tactful step of the processing of the pending application:User is prompted to handle institute State pending application;Obtain the chosen processing strategy for the pending application and (namely obtain the section of user's selection Electric treatment mode).
It is described that the step of handling of being economized on electricity corresponding to the pending application progress is included according to the processing strategy:Stop The operation of the pending application;Or the unloading pending application;Or freeze the pending application.
Wherein, obtaining the step of the chosen processing strategy for the pending application can be specially:Judge quilt Whether the strategy of selection is to stop the operation of the pending application, if so, waiting to locate to described into according to the processing strategy Ought to be corresponding to carrying out the step of economize on electricity processing (operation for stopping the pending application);
If it is not, judge whether selected strategy is the unloading pending application, if so, into according to the processing plan Corresponding to slightly being carried out to the pending application the step of economize on electricity processing (the unloading pending application);
If it is not, judge whether selected strategy is to freeze the pending application, if so, into according to the processing plan (freeze the pending application) the step of economize on electricity processing corresponding to slightly being carried out to the pending application;
If it is not, then terminating flow, any operation (pending application corresponding to not handling) is not performed.
It if there is more processing strategies, can continue to judge according to aforesaid way, obtain chosen for described The processing strategy of pending application;Or terminate flow.
It is of course also possible to the chosen processing strategy for the pending application is directly obtained, not according to above-mentioned side Formula judges to obtain one by one.
In order to ensure the real-time effectiveness of scheme, the wake-up letter for obtaining the application that wake request is sent in preset duration The step of breath, includes:Obtain the wake-up information for the application that wake request is sent in the preset duration of the last record.
Namely carried out according to the wake-up information for the application that wake request is sent in the preset duration of state-of-the-art record at judgement Reason.
Embodiment two
As shown in Fig. 2 the processing method for the application that the embodiment of the present invention two provides, can be applied to the service side of terminal, institute Stating the processing method of application includes:
Step 21:When the wake request of application is monitored in preset duration, wake request corresponding to generation records;
Step 22:Waken up according to corresponding to the generation number that the wake request records obtains the wake request record secondary Number;
Step 23:Obtain sending in the preset duration and call out according to wake request record and corresponding wake-up times The wake-up information of the application of awake request.
The wake request record includes Apply Names, wakes up purpose and wakes up type.Step 23 concretely basis Apply Names, wake up purpose, wake up type and wake-up times, obtain waking up corresponding to each application purpose, wake up type with And wake-up times, that is, wake up information.
The processing method for the application that the embodiment of the present invention two provides, can be timely and effective by way of active monitors Statistics application wake-up information, provide data foundation for the processing of application side so that application side can be accurately obtained needs The pending application of economize on electricity processing, and then economize on electricity processing corresponding to progress.
Specifically, the generation number recorded according to the wake request obtains calling out corresponding to the wake request record The step of awake number, includes:If generation the wake request record it is existing, increase it is corresponding with wake request record Generation number;If the wake request record of generation is not present, retain wake request record, and increase with it is described Generation number corresponding to wake request record;When monitoring duration reaches the preset duration, according to the obtained generation time Number obtains the wake-up times.
Wherein, increase generation number can be to add one to generation number, or generation number be added other default Numerical value, it is not limited thereto.
Further, the processing method also includes:The application of wake request will be sent in the latter preset duration Wake up the wake-up information for the application that wake request is sent in the previous preset duration of information can be caused to cover.
Which offers a saving substantial amounts of memory space, only remains in the preset duration of state-of-the-art record and sends wake request The wake-up information of application;
It is of course also possible to retain the application that wake request is sent in the preset duration of last time (previous, former inferior) record Wake-up information, or retain the wake-up information for the application that wake request is sent in the preset duration of whole records, herein not It is construed as limiting.
Traveling one is entered to the processing method of application provided in an embodiment of the present invention with reference to application side and service side both sides Walk explanation.
Scheme provided in an embodiment of the present invention includes service side and application side.Service side part and be mainly responsible for statistics application Wake up information, including the wake-up type of application, the wake-up times for waking up different wake-up types in purpose and detection cycle.Application side Part is then that the statistics waken up is obtained from service side, and the application for judging frequently to wake up (needs economize on electricity to handle pending Using), and notify user to carry out respective handling.In short, following flow can be included:
First, the wake-up purpose of some application is obtained first, if purpose is to start some background services.Then obtain again Obtain it and wake up type.
Second, if the type waken up is general type, i.e., the equipment that need not wake up depth sleep, then it is waken up secondary Number is judged, if wake-up times are more than N1, assert that this is too frequent using wake-up system.
3rd, if the type that application wakes up is the equipment for waking up deep sleep, its wake-up times is judged, such as Its wake-up times of fruit are more than N2 (N1>N2), then it is also considered as the application and has frequently waken up equipment.
Finally, if detecting the application of frequent wake-up device, note that user processes.Then according to user's Selection, freezes to the application, the operation such as unloading.
The explanation of concrete application example is carried out to the above below.
Service side
The wake-up information of statistics application is mainly responsible in service side part in the embodiment of the present invention, as shown in figure 3, including:
Step 31:Start application during start and wake up monitoring service;
When system boot, start and frequently wake up detection monitoring service.
Step 32:Wake request is monitored whether, if so, then entering step 33, if it is not, then continuing executing with this step;
Monitor whether wake request be present.If it is not, wait.If then going to step 33.
Step 33:Generation records using wake request;
Monitor using when sending wake request, generation application wakes up record.These records mainly include application The type (wake-up type) of the wake request of title, the purpose (wake-up purpose) of the wake request of application and application.
It is to start the visible foreground application of user to wake up purpose and be primarily referred to as wake-up system, or is started sightless Background service.
Wake up type be primarily referred to as be wake up deep sleep equipment, or in general wake up, that is, wake up either shallow sleep Equipment.
So-called either shallow sleep, refers to that system closes screen, closes some service, equipment and sensors for being of little use.But It is that CPU remains in that operation.
And deep sleep, refer to that system closes most equipment, CPU is also switched off, a reservation phone, the basic training such as short message Energy.
Step 34:Judge that the record of generation whether there is, if so, into step 35, if it is not, into step 36;
The record that judgment step 33 generates whether there is in the persistence form of system.If it does not exist, then go to step 36, if present in table, then go to step 35.
Step 35:The information being recorded in table is updated, into step 38;
The record generated according to step 33, data are taken out from table, update content associated with the data, main to include waking up Wake-up times corresponding to purpose and wake-up type.Because the record has been present, it is necessary on the basis of original wake-up times On, by wake-up times plus one.
Step 36:By in the record deposit table of generation.
Step 37:According to type is waken up, this is added one using the wake-up times of corresponding type;
Wake-up times corresponding to the wake-up type in table are added one by the wake-up type in the record generated according to step 33.
Step 38:Wait next wake request, return to step 32;
After the wake request for having handled some application, the arrival of next wake request is waited;Then to new wake-up Request, is handled again by above-mentioned flow.
Application side
Application side part in the embodiment of the present invention is mainly responsible for obtaining statistics from service side draw, at data Reason, according to the information after processing, judges the application frequently waken up, and prompt user to be handled accordingly;As shown in figure 4, Including:
Step 41:Registration period detection service;
The purpose is to obtain data from service side within certain cycle, and process.
Step 42:Judge whether detection service is triggered, if so, into step 44, if it is not, into step 43;
Judge whether the periodic service of registration is triggered.If otherwise going to step 43, continue to wait.If it is, Then go to step 44.
Step 43:Etc. to be triggered, return to step 42;
Step 44:The wake-up information thrown and applied in detection cycle is obtained from service side;
Obtain in detection cycle, the wake-up information of all applications, and be buffered in list from service side.
Step 45:Notice service side understands this statistics, restarts to count;
The data in this measurement period are removed in notice service side, restart the wake request information of statistics application.
Step 46:Judge whether the bar number for waking up information is more than zero, if so, into step 47, if it is not, return to step 43;
Whether the bar number for the wake-up information that judgment step 44 caches is more than zero.If it is not, then going to step 43, wait next Trigger the cycle.If it is, go to step 47.
Step 47:A wake-up information is obtained, obtains the wake-up purpose in the wake-up information;
Obtain a wake-up information.Obtain the wake-up purpose of the application of information representative.
Step 48:Whether the wake-up purpose for judging to obtain is to start foreground application, if so, into step 49, if it is not, into Step 410;
Whether the wake-up purpose of the application is to start a visible foreground application of user.If it is, go to step 49.Such as Fruit is no, then goes to step 410.
Step 49:Ignore the wake-up information, pending information bar number is subtracted one;Return to step 46;
The information bar number in wake-up information data list to caching subtracts one;Then 46 are gone to step.
Step 410:Obtain the wake-up type in the wake-up information;
The type of wake request in the data that obtaining step 47 obtains.
Step 411:Judge whether the wake-up type is to wake up the equipment in deep sleep, if so, into step 412, if It is no, into step 413;
Judge whether from the wake-up type that step 410 obtains be to wake up deep sleep equipment.If so, 412 are then gone to step, if It is no, then go to step 413.
Step 412:Judge whether the number that depth wakes up is more than M1, if so, into step 414, if it is not, return to step 49;
The number (wake-up times) for applying depth wake request is obtained, if the number is more than threshold value M1, judging should Using frequently to wake up systematic difference, then 414 are gone to step;If it is not, then go to step 49.
Step 413:The wake-up type in the wake-up information is proved to wake up either shallow sleeping device, that is, common wake-up, Judge whether the number that commonly wakes up is more than M2, if so, into step 414, if it is not, into step 416;
The number (wake-up times) for applying common wake request is obtained, if the number is more than threshold value M2 (M2>M1), then The application is judged frequently to wake up systematic difference, then goes to step 414 further processing.
Herein, M1 and M2 is a statistical value.Wherein M1 value is less than M2 value.Because M1 represent be equipment from The threshold value of the number waken up in deep sleep, this common wake-up more power consumption of behavior ratio, therefore M1 in the embodiment of the present invention Value is preferably smaller than M2 value.
Step 414:Prompting user is handled the frequent wake-up systematic difference;
Step 415:Turn frequently to wake up handling process;
Handling process of the user to the application is gone to, it is specifically shown in Fig. 5.After having handled, 416 are gone to step.
Step 416:Pending information bar number subtracts one;Return to step 46;
After user has handled this information, the quantity of the total number of pending information is subtracted one, then goes to step 46.
Frequent wake-up processing
The handling process that process part is mainly the application of the frequent wake-up to detecting frequently is waken up, it belongs to application side Sub-process in flow chart, its detailed process as shown in figure 5, including:
Step 51:Obtain the frequent wake-up processing mode of user's selection;
Obtain the processing mode of the frequent wake-up systematic difference of user's selection.
Step 52:Judge that user is chosen whether to shut down procedure operation, if so, step 53 is carried out, if it is not, into step 54;
Whether the processing mode of user's selection is judged to stop the operation of the application, if so, then going to step 53.Otherwise turn to walk Rapid 54.
Step 53:Stop application operation;
Calling system interface, stops the operation of the application, it is out of service will the process of the application stop, the application is from interior Deposit middle removing.
Step 54:Judge that user chooses whether to apply for unloading, if so, step 55 is carried out, if it is not, into step 56;
Judge that the processing mode of user's selection whether to unload the application, if so, then going to step 55, otherwise turns rapid and turns 56.
Step 55:Unloading application;
Calling system interface, unloads the application, unloading will the application deleted from system.
Step 56:Judge that user is chosen whether to freeze to apply, if so, step 57 is carried out, if it is not, then terminate, without Any processing;
Judge that the processing mode of user's selection whether to freeze the application, is to go to step 57, otherwise the application do not entered Any processing of row.
Step 57:Freeze to apply;
Calling system interface, freeze the application.It is so-called to freeze, that is, the application is disabled, i.e. the application is still present in system In, but may not operate.
From the foregoing, it will be observed that both of which of the prior art can not detect system answering with the presence or absence of frequently wake-up system With;And a kind of method that the embodiment of the present invention monitors using active, the system of detecting, which has, frequently wakes up systematic difference, then Notify user to be handled accordingly, fundamentally solve problem, save the electricity of mobile phone.
In summary, the embodiment of the present invention is to the wake request of application by counting, and then according to statistics Analysis, carry out by different level, the other processing of classification, find the application of most power consumption, and prompt user to be handled;Set so as to avoid Standby electricity is improved system usage time, brought great convenience for user by unnecessary consumption;Meanwhile the present invention is real The scheme of example offer is applied without special hardware device, is handled from the angle of software, reduces processing cost.
Embodiment three
As shown in fig. 6, the terminal that the embodiment of the present invention three provides includes:
First acquisition module 61, for obtaining the wake-up information for the application that wake request is sent in preset duration;
First determining module 62, for according to the wake-up information, it is determined that the pending application for the processing that needs to economize on electricity;
First processing module 63, for carrying out economize on electricity processing to the pending application.
Wherein, preset duration (using the data cycle) can be with preset duration in next embodiment (statistics cycle) one Cause.
The specific implementation of first determining module 62 is not construed as limiting, can according to predefined procedure (such as with wake up information pair The priority orders for the application answered) each wake-up information of processing, it also can disposably handle all wake-up information.
The analysis for the wake-up information that the terminal that the embodiment of the present invention two provides passes through the application to sending wake request, The application of most power consumption is found, and carries out economize on electricity processing;The electricity of equipment is avoided by unnecessary consumption, improves system use Time, brought great convenience for user, while reduce processing cost, and scheme is easily realized, will not cause application Time delay.
Specifically, the wake-up information includes waking up purpose, wakes up type and wake-up times;The first determining module bag Include:First determination sub-module, for it is described wake-up purpose for start background service, and the wake-up times be more than called out with described Corresponding to type of waking up during threshold value, it is pending application to obtain with corresponding apply of wake-up information;
Otherwise, it is not pending application to obtain with corresponding apply of wake-up information.
, can be direct when whether the wake-up purpose during the first determination sub-module judges wake-up information is to start background service Judge to wake up the wake-up purpose in information to start background service, can also be opened by judging to wake up the wake-up purpose in information Dynamic foreground service obtains indirectly.
Preferably, the wake-up type includes the first wake-up type for waking up deep sleep equipment and wake-up either shallow sleep is set Standby second wakes up type, and described first, which wakes up threshold value corresponding to type, is less than threshold value corresponding to the described second wake-up type.
Wherein, the first processing module includes:First acquisition submodule, for obtaining for the pending application Processing strategy;First processing submodule, at economize on electricity corresponding to being carried out according to the processing strategy to the pending application Reason.
Specifically, first acquisition submodule includes:Tip element, for prompt user processing it is described it is pending should With;Acquiring unit, the processing strategy for the pending application for obtaining chosen namely obtain user's selection Economize on electricity processing mode).
The first processing submodule includes:Stop element, for stopping the operation of the pending application;Or unload Carrier unit, for unloading the pending application;Or freezing unit, for freezing the pending application.
Wherein, acquiring unit can be specifically used for:Judge whether selected strategy is the fortune for stopping the pending application OK, if so, the operation operation of the pending application (stop) into the first processing submodule;
If it is not, judge whether selected strategy is the unloading pending application, if so, the behaviour of the first processing submodule Make (the unloading pending application);
If it is not, judge whether selected strategy is to freeze the pending application, if so, the behaviour of the first processing submodule Make (freezing the pending application);
If it is not, then acquiring unit terminates flow, not performing any operation, (the first processing submodule is waited to locate corresponding to not handling It ought to use).
If there is more processing strategies, acquiring unit can continue to judge according to aforesaid way, obtain chosen For the processing strategy of the pending application;Or terminate flow.
Certainly, acquiring unit can also directly obtain the chosen processing strategy for the pending application, disobey Judge to obtain one by one according to aforesaid way.
In order to ensure the real-time effectiveness of scheme, first acquisition module includes:Second acquisition submodule, for obtaining The wake-up information of the application of wake request is sent in the preset duration of the last time record.
It is, the first determining module need to send the wake-up of the application of wake request in the preset duration according to state-of-the-art record Information carries out judgement processing.
Wherein, the reality realized embodiment and be applied to the terminal of the processing method of the above-mentioned application for being related to application side Apply in example, can also reach identical technique effect.
Example IV
As shown in fig. 7, the terminal that the embodiment of the present invention four provides includes:
First generation module 71, for monitored in preset duration application wake request when, generate corresponding to wake up Request record;
Second processing module 72, the generation number for being recorded according to the wake request obtain the wake request record Corresponding wake-up times;
3rd processing module 73, it is described default for being obtained according to wake request record and corresponding wake-up times The wake-up information of the application of wake request is sent in duration.
The wake request record includes Apply Names, wakes up purpose and wakes up type.3rd processing module specifically may be used According to Apply Names, wake-up purpose, wake-up type and wake-up times, to obtain waking up purpose corresponding to each application, waking up Type and wake-up times, that is, wake up information.
The terminal that the embodiment of the present invention four provides, being capable of timely and effectively statistics application by way of active monitors Wake-up information, for using processing data foundation is provided, and then be accurately obtained need economize on electricity processing pending application, progress Corresponding economize on electricity processing.
Specifically, the Second processing module includes:Adding unit, if having been deposited for the wake request record generated Then increasing generation number corresponding with wake request record;First processing units, if please for the wake-up generated Ask record to be not present, then retain the wake request record, and increase generation number corresponding with wake request record;The Two processing units, for when monitoring duration reaches the preset duration, being called out according to obtaining the obtained generation number Awake number.
Wherein, increase generation number can be to add one to generation number, or generation number be added other default Numerical value, it is not limited thereto.
Further, the terminal also includes:Overlay module, for wake request will to be sent in the latter preset duration Application the previous preset duration of wake-up information can be caused to cover in send wake request application wake-up information.
Which offers a saving substantial amounts of memory space, only remains in the preset duration of state-of-the-art record and sends wake request The wake-up information of application;
It is of course also possible to retain the application that wake request is sent in the preset duration of last time (previous, former inferior) record Wake-up information, or retain the wake-up information for the application that wake request is sent in the preset duration of whole records, herein not It is construed as limiting.
Wherein, the reality realized embodiment and be applied to the terminal of the processing method of the above-mentioned application for being related to service side Apply in example, can also reach identical technique effect.
It should be noted that this many functional part described in this description is all referred to as module/submodule, so as to more Add the independence for especially emphasizing its implementation.
In the embodiment of the present invention, module/submodule/unit can be realized with software, so as to by various types of processors Perform.For example, one mark executable code module can include computer instruction one or more physics or Logical block, for example, it can be built as object, process or function.Nevertheless, the executable code of institute's mark module It need not be physically located together, but the different instructions being stored in different positions can be included, when in these command logics When being combined together, it forms module and realizes the regulation purpose of the module.
In fact, executable code module can be the either many bar instructions of individual instructions, and can even be distributed On multiple different code segments, it is distributed among distinct program, and is distributed across multiple memory devices.Similarly, grasp Making data can be identified in module, and can be realized according to any appropriate form and be organized in any appropriate class In the data structure of type.The operation data can be collected as individual data collection, or can be distributed on diverse location (being included in different storage device), and only can be present at least in part as electronic signal in system or network.
When module can be realized using software, it is contemplated that the level of existing hardware technique, it is possible to implemented in software Module, in the case where not considering cost, those skilled in the art can build corresponding to hardware circuit come realize correspondingly Function, the hardware circuit includes conventional ultra-large integrated (VLSI) circuit or gate array and such as logic core The existing semiconductor of piece, transistor etc either other discrete elements.Module can also use programmable hardware device, such as Field programmable gate array, programmable logic array, programmable logic device etc. are realized.
Above-described is the preferred embodiment of the present invention, it should be pointed out that is come for the ordinary person of the art Say, under the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications should also regard For protection scope of the present invention.

Claims (12)

  1. A kind of 1. processing method of application, it is characterised in that including:
    Obtain the wake-up information for the application that wake request is sent in preset duration;
    According to the wake-up information, it is determined that needing the pending application handled of economizing on electricity;
    Economize on electricity processing is carried out to the pending application.
  2. 2. processing method as claimed in claim 1, it is characterised in that the wake-up information includes waking up purpose, wakes up type And wake-up times;
    It is described according to the wake-up information, it is determined that the step of pending application for the processing that needs to economize on electricity includes:
    In the wake-up purpose to start background service, and the wake-up times are more than threshold value corresponding with the wake-up type When, it is pending application to obtain with corresponding apply of wake-up information.
  3. 3. processing method as claimed in claim 2, it is characterised in that the type that wakes up includes waking up deep sleep equipment First wakes up type and wakes up the second wake-up type of either shallow sleeping device, and threshold value corresponding to the first wake-up type is less than institute State threshold value corresponding to the second wake-up type.
  4. 4. processing method as claimed in claim 1, it is characterised in that described that processing of economizing on electricity is carried out to the pending application Step includes:
    Obtain the processing strategy for the pending application;
    Economize on electricity corresponding to being carried out according to the processing strategy to the pending application is handled.
  5. 5. processing method as claimed in claim 4, it is characterised in that the processing plan obtained for the pending application Slightly the step of, includes:
    User is prompted to handle the pending application;
    Obtain the chosen processing strategy for the pending application.
  6. 6. processing method as claimed in claim 4, it is characterised in that it is described according to it is described processing strategy to it is described it is pending should The step of handling of being economized on electricity corresponding to carrying out includes:
    Stop the operation of the pending application;Or
    Unload the pending application;Or
    Freeze the pending application.
  7. 7. processing method as claimed in claim 1, it is characterised in that described obtain sends answering for wake request in preset duration The step of wake-up information, includes:
    Obtain the wake-up information for the application that wake request is sent in the preset duration of the last record.
  8. A kind of 8. terminal, it is characterised in that including:
    First acquisition module, for obtaining the wake-up information for the application that wake request is sent in preset duration;
    First determining module, for according to the wake-up information, it is determined that the pending application for the processing that needs to economize on electricity;
    First processing module, for carrying out economize on electricity processing to the pending application.
  9. A kind of 9. processing method of application, it is characterised in that including:
    When the wake request of application is monitored in preset duration, wake request corresponding to generation records;
    The wake-up times according to corresponding to the generation number that the wake request records obtains the wake request record;
    Obtained sending answering for wake request in the preset duration according to wake request record and corresponding wake-up times Wake-up information.
  10. 10. processing method as claimed in claim 9, it is characterised in that the generation recorded according to the wake request time Counting the step of obtaining wake-up times corresponding to the wake request record includes:
    If the wake request of generation records existing, increase generation number corresponding with wake request record;
    If the wake request record of generation is not present, retain the wake request record, and increase please with the wake-up Seek generation number corresponding to record;
    When monitoring duration reaches the preset duration, the wake-up times are obtained according to the obtained generation number.
  11. 11. processing method as claimed in claim 9, it is characterised in that also include:
    It will be sent out in the previous preset duration of wake-up information can be caused to cover for the application for sending wake request in the latter preset duration Go out the wake-up information of the application of wake request.
  12. A kind of 12. terminal, it is characterised in that including:
    First generation module, for monitored in preset duration application wake request when, corresponding to generation wake request remember Record;
    Second processing module, the generation number for being recorded according to the wake request are obtained corresponding to the wake request record Wake-up times;
    3rd processing module, for being obtained according to wake request record and corresponding wake-up times in the preset duration Send the wake-up information of the application of wake request.
CN201610362165.2A 2016-05-26 2016-05-26 Application processing method and terminal Active CN107436672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610362165.2A CN107436672B (en) 2016-05-26 2016-05-26 Application processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610362165.2A CN107436672B (en) 2016-05-26 2016-05-26 Application processing method and terminal

Publications (2)

Publication Number Publication Date
CN107436672A true CN107436672A (en) 2017-12-05
CN107436672B CN107436672B (en) 2021-01-08

Family

ID=60453538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610362165.2A Active CN107436672B (en) 2016-05-26 2016-05-26 Application processing method and terminal

Country Status (1)

Country Link
CN (1) CN107436672B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413726A (en) * 2018-12-24 2019-03-01 维沃移动通信有限公司 Power consumption control method and mobile terminal
CN110008007A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Application program freezing method, device, storage medium and terminal
CN110175450A (en) * 2019-05-30 2019-08-27 阿里巴巴集团控股有限公司 A kind of processing method of information, device and equipment
WO2020093284A1 (en) * 2018-11-07 2020-05-14 深圳市欢太科技有限公司 Application information processing method, computer-readable storage medium and electronic device
CN112230575A (en) * 2020-09-17 2021-01-15 惠州拓邦电气技术有限公司 Low-power-consumption switch detection control method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN104346563A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105227784A (en) * 2014-06-19 2016-01-06 中兴通讯股份有限公司 A kind of power-saving processing method of mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN104346563A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105227784A (en) * 2014-06-19 2016-01-06 中兴通讯股份有限公司 A kind of power-saving processing method of mobile terminal and mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008007A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Application program freezing method, device, storage medium and terminal
CN110008007B (en) * 2017-12-29 2021-08-17 Oppo广东移动通信有限公司 Application program freezing method and device, storage medium and terminal
WO2020093284A1 (en) * 2018-11-07 2020-05-14 深圳市欢太科技有限公司 Application information processing method, computer-readable storage medium and electronic device
CN112771469A (en) * 2018-11-07 2021-05-07 深圳市欢太科技有限公司 Application information processing method, computer-readable storage medium, and electronic device
CN112771469B (en) * 2018-11-07 2023-12-05 深圳市欢太科技有限公司 Application information processing method, computer-readable storage medium, and electronic device
CN109413726A (en) * 2018-12-24 2019-03-01 维沃移动通信有限公司 Power consumption control method and mobile terminal
CN109413726B (en) * 2018-12-24 2021-05-07 维沃移动通信有限公司 Power consumption control method and mobile terminal
CN110175450A (en) * 2019-05-30 2019-08-27 阿里巴巴集团控股有限公司 A kind of processing method of information, device and equipment
CN110175450B (en) * 2019-05-30 2023-11-21 创新先进技术有限公司 Information processing method, device and equipment
CN112230575A (en) * 2020-09-17 2021-01-15 惠州拓邦电气技术有限公司 Low-power-consumption switch detection control method and device and electronic equipment
CN112230575B (en) * 2020-09-17 2022-04-08 惠州拓邦电气技术有限公司 Low-power-consumption switch detection control method and device and electronic equipment

Also Published As

Publication number Publication date
CN107436672B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN107436672A (en) The processing method and terminal of a kind of application
CN104221445B (en) A kind of method and terminal waking up terminal system
CN103502946B (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
WO2020224658A1 (en) Standby optimization method and apparatus, and computer device and storage medium
CN105302279B (en) A kind of management application accesses the method and system of network
CN106020415B (en) Application control method and device under smart machine standby mode
CN106055077A (en) Wake-up lock-based processing method and device
WO2015131679A1 (en) Task process processing method and device
CN105388991B (en) Timing wake-up processing system and method
WO2013091561A1 (en) Energy-saving method, device and communication terminal
CN104166542A (en) Method and device for detecting electricity consumption of application
US20090312072A1 (en) Method for predicting available time remaining on battery in mobile devices based on usage patterns
CN104184884B (en) A kind of control device and method, mobile terminal of mobile terminal power consumption
CN104714620B (en) A kind of method and device adjusting intelligent terminal wakeup frequency
CN107302789A (en) A kind of method and system for improving Android device battery durable ability
CN107491160A (en) A kind of application method of dual operating systems, storage device and intelligent terminal
CN104375929B (en) A kind of information processing method and electronic equipment
CN103345415A (en) Terminal energy-saving method and device for management timer
CN107943269A (en) Schedule job control method, device, terminal device and storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN105282832A (en) Terminal power saving method and apparatus
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN106371831A (en) Awakening control method and device and terminal
KR102060431B1 (en) Apparatus and method for managing power in multi-core system
CN110018903A (en) Method for managing resource, device, mobile terminal and computer readable 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