CN105955441B - Application management method and device - Google Patents
Application management method and device Download PDFInfo
- Publication number
- CN105955441B CN105955441B CN201610251826.4A CN201610251826A CN105955441B CN 105955441 B CN105955441 B CN 105955441B CN 201610251826 A CN201610251826 A CN 201610251826A CN 105955441 B CN105955441 B CN 105955441B
- Authority
- CN
- China
- Prior art keywords
- preset duration
- power consumption
- duration
- abnormal power
- consumption behavior
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Abstract
The disclosure is directed to a kind of application management method and devices, belong to network technique field.The disclosure is when detecting application switching to running background, every the first preset duration, determine that this applies the multiple operations executed in the first preset duration, based on multiple operation, judge that this is applied and obtains object run from multiple operation when this, which is applied, there is abnormal power consumption behavior in the first preset duration with the presence or absence of abnormal power consumption behavior in the first preset duration, the object run is to belong to the operation of abnormal power consumption behavior, and control using stopping performance objective operation.In the application switching to running background, when detecting that the application has abnormal power consumption behavior, the terminal control application stops executing the exception power consumption behavior, in this way, having achieved the effect that save energy.
Description
Technical field
This disclosure relates to network technique field more particularly to a kind of application management method and device.
Background technique
With the fast development of network technology, various types of applications can be installed in terminal, for example, map application and
Instant messaging application etc..But after using application, user's ordinary practice presses Home or back key back to main screen at the terminal
Curtain is not closed using practical in this case, i.e., the application is still in the running background of terminal.And it applies in terminal
When running background, the system resource of the terminal can may be also accessed, for example, accessing data network or using GPS (Global
Position System, global positioning system) etc., the problems such as will so causing the consumption of terminal power.Therefore, it is necessary to right
Using being managed.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of application management method and device.
In a first aspect, providing a kind of application management method, which comprises
When detecting application switching to running background, every the first preset duration, described apply described first is determined
The multiple operations executed in preset duration;
Based on the multiple operation, described apply in first preset duration with the presence or absence of abnormal power consumption row is judged
For;
When described apply in first preset duration in the presence of abnormal power consumption behavior, obtained from the multiple operation
Object run, the object run are to belong to the operation of abnormal power consumption behavior;
The application is controlled to stop executing the object run.
With reference to first aspect, described based on the multiple in the first possible implementation of above-mentioned first aspect
Operation judges described apply in first preset duration with the presence or absence of abnormal power consumption behavior, comprising:
Determine the occupancy duration of the multiple operation occupied terminal resource in first preset duration;
Occupancy duration based on the multiple operation judges described apply in first preset duration with the presence or absence of different
Normal power consumption behavior.
The possible implementation of with reference to first aspect the first, in second of possible implementation of above-mentioned first aspect
In, the occupancy duration based on the multiple operation judges described apply in first preset duration with the presence or absence of different
Normal power consumption behavior, comprising:
When the sum of occupancy duration of the multiple operation is greater than or equal to the second preset duration, described apply in institute is determined
It states in the first preset duration and there is abnormal power consumption behavior.
The possible implementation of with reference to first aspect the first, in the third possible implementation of above-mentioned first aspect
In, the occupancy duration based on the multiple operation judges described apply in first preset duration with the presence or absence of different
Normal power consumption behavior, including such as at least one of under type:
When in the multiple operation include access data network operation when, judge the operational access data network when
It is long whether to be greater than or equal to third preset duration, when the duration of the operational access data network is pre- more than or equal to the third
If when duration, determining that described apply has abnormal power consumption behavior in first preset duration;
When in the multiple operation including the operation using global position system GPS, the whole world is operated with described in judgement
Whether the duration of position system GPS is greater than or equal to the 4th preset duration, when it is described operate with global position system GPS when
When length is greater than or equal to four preset duration, determine that described apply has abnormal power consumption row in first preset duration
For;
When including waking up the operation of terminal in the multiple operation, whether the duration for judging that the operation wakes up terminal is big
In or be equal to the 5th preset duration, when it is described operation wake up terminal duration be greater than or equal to five preset duration when, really
There is abnormal power consumption behavior in first preset duration in fixed described apply;
Wherein, the third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or wait
In first preset duration.
With reference to first aspect, described based on the multiple in the 4th kind of possible implementation of above-mentioned first aspect
Operation judges described apply in first preset duration with the presence or absence of abnormal power consumption behavior, comprising:
Judge in the multiple operation with the presence or absence of specified operation;
When there are when the specified operation, determine described apply in the first preset duration memory in the multiple operation
In abnormal power consumption behavior.
The 4th kind of possible implementation with reference to first aspect, in the 5th kind of possible implementation of above-mentioned first aspect
In, the specified operation includes: operation, the operation or institute using global position system GPS of the access data network
State the operation for waking up terminal.
With reference to first aspect, in the 6th kind of possible implementation of above-mentioned first aspect, the control application
Stop executing the object run, comprising:
Determine the operation interface of the object run;
It controls the application to stop calling the operation interface, stops executing the object run to control the application.
With reference to first aspect, in the 7th kind of possible implementation of above-mentioned first aspect, the control application
Before stopping executing the object run, the method also includes:
Based on the object run, abnormal power consumption notification information is shown;
When detecting setting instruction based on the abnormal power consumption notification information, the set interface of the application is shown;
When detecting halt instruction based on the set interface, executes the control application and stop executing the mesh
The step of mark operation.
Second aspect, provides a kind of application management device, and described device includes:
Determining module, for when detecting application switching to running background, every the first preset duration, determine described in answer
The multiple operations executed in first preset duration;
Judgment module judges described apply described for the multiple operation determined by module based on the determination
With the presence or absence of abnormal power consumption behavior in first preset duration;
Obtain module, for when it is described apply there is abnormal power consumption behavior in first preset duration when, from described
Object run is obtained in the multiple operation determined by determining module, the object run is the behaviour for belonging to abnormal power consumption behavior
Make;
First control module stops executing the target behaviour acquired in the acquisition module for controlling the application
Make.
In conjunction with second aspect, in the first possible implementation of above-mentioned second aspect, the judgment module, packet
It includes:
First determination unit, for determining that the multiple operation occupied terminal resource in first preset duration accounts for
Use duration;
First judging unit judges described apply described first in advance for the occupancy duration based on the multiple operation
If with the presence or absence of abnormal power consumption behavior in duration.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of above-mentioned second aspect
In, the judgment module, comprising:
Second determination unit is greater than or equal to the second preset duration for the sum of the occupancy duration when the multiple operation
When, determine that described apply has abnormal power consumption behavior in first preset duration.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of above-mentioned second aspect
In, the judgment module includes such as at least one of lower unit:
Second judgment unit, for judging the behaviour when in the multiple operation including the operation of access data network
Whether the duration for making access data network is greater than or equal to third preset duration, grows up when the operational access data network
When the third preset duration, determine that described apply has abnormal power consumption behavior in first preset duration;
Third judging unit, for judging when in the multiple operation including the operation using global position system GPS
Whether the duration for operating with global position system GPS is greater than or equal to the 4th preset duration, operates with entirely when described
When the duration of ball position system GPS is greater than or equal to four preset duration, described apply when described first is default is determined
There is abnormal power consumption behavior in long;
4th judging unit, for when including waking up the operation of terminal in the multiple operation, judging that the operation is called out
Whether the duration for terminal of waking up is greater than or equal to the 5th preset duration, when the operation wakes up the duration of terminal more than or equal to described
When five preset durations, determine that described apply has abnormal power consumption behavior in first preset duration;
Wherein, the third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or wait
In first preset duration.
In conjunction with second aspect, in the 4th kind of possible implementation of above-mentioned second aspect, the judgment module, packet
It includes:
5th judging unit, for judging in the multiple operation with the presence or absence of specified operation;
Third determination unit, for when there are when the specified operation, determine described apply in institute in the multiple operation
It states in the first preset duration and there is abnormal power consumption behavior.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible realization side of above-mentioned second aspect
In formula, the specified operation include: the operation of the access data network, the operation using global position system GPS or
The operation for waking up terminal.
In conjunction with second aspect, in the 6th kind of possible implementation of above-mentioned second aspect, first control module
For:
Determine the operation interface of the object run;
It controls the application to stop calling the operation interface, stops executing the object run to control the application.
In conjunction with second aspect, in the 7th kind of possible implementation of above-mentioned second aspect, described device further include:
First display module shows abnormal power consumption notification information for being based on the object run;
Second display module, for when detecting setting instruction based on the abnormal power consumption notification information, described in display
The set interface of application;
Second control module, for executing described in the control when detecting halt instruction based on the set interface
Using the step of stopping the execution object run.
The embodiment of the present disclosure provide technical solution can include the following benefits: when detect application switching to backstage
When operation, terminal determines that this applies the multiple operations executed in the first preset duration every the first preset duration, more based on this
A operation, terminal judge that this is applied in the first preset duration with the presence or absence of abnormal power consumption behavior, preset when this is applied first
When there is abnormal power consumption behavior in duration, terminal obtains object run from multiple operation, which is to belong to exception
The operation of power consumption behavior, also, terminal control this application stop performance objective operation, in this way, by control application stop execute
The operation for belonging to abnormal power consumption behavior, has achieved the effect that save energy.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of application management method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the application management method shown according to another exemplary embodiment.
Fig. 3 is a kind of block diagram of application management device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of the application management device shown according to another exemplary embodiment.
Fig. 5 is a kind of block diagram of judgment module 320 shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the judgment module 320 shown according to another exemplary embodiment.
Fig. 7 is a kind of block diagram of the judgment module 320 shown according to another exemplary embodiment.
Fig. 8 is a kind of block diagram of the judgment module 320 shown according to another exemplary embodiment.
Fig. 9 is a kind of block diagram of application management device 900 shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In the embodiments of the present disclosure, at least one can be installed in the terminal and answered by terminal as executing subject
With, and the terminal can run the application.Wherein, which can be such as computer, tablet computer or mobile phone or the like
Equipment.
Fig. 1 is a kind of flow chart of application management method shown according to an exemplary embodiment, as shown in Figure 1, this is answered
With management method for including the following steps in terminal.
In a step 101, when detecting application switching to running background, every the first preset duration, the application is determined
The multiple operations executed in the first preset duration.
In a step 102, it is based on multiple operation, judges that this is applied in the first preset duration with the presence or absence of abnormal power consumption
Behavior.
In step 103, when this, which is applied, there is abnormal power consumption behavior in the first preset duration, from multiple operation
Object run is obtained, which is to belong to the operation of abnormal power consumption behavior.
At step 104, it controls the application and stops performance objective operation.
In the embodiments of the present disclosure, when detecting application switching to running background, terminal is every the first preset duration, really
Fixed this applies the multiple operations executed in the first preset duration, is based on multiple operation, it is pre- first that terminal judges that this is applied
If with the presence or absence of abnormal power consumption behavior, when this, which is applied, there is abnormal power consumption behavior in the first preset duration, terminal in duration
Object run is obtained from multiple operation, which is to belong to the operation of abnormal power consumption behavior, also, terminal control should
Using performance objective operation is stopped, in this way, stopping executing the operation for belonging to abnormal power consumption behavior by control application, section is reached
Save the effect of power consumption.
In another embodiment of the present disclosure, be based on multiple operation, judge this apply in the first preset duration whether
There are abnormal power consumption behaviors, comprising:
Determine the occupancy duration of multiple operation occupied terminal resource in the first preset duration;
Occupancy duration based on multiple operation, judgement are applied in the first preset duration with the presence or absence of abnormal power consumption row
For.
In another embodiment of the present disclosure, it is somebody's turn to do the occupancy duration based on multiple operations, it is default first to judge that this is applied
With the presence or absence of abnormal power consumption behavior in duration, comprising:
When the sum of occupancy duration of multiple operation is greater than or equal to the second preset duration, it is pre- first to determine that this is applied
If there is abnormal power consumption behavior in duration.
In another embodiment of the present disclosure, it is somebody's turn to do the occupancy duration based on multiple operations, judgement is applied when first is default
With the presence or absence of abnormal power consumption behavior in long, including such as at least one of under type:
When in multiple operation including the operation of access data network, judge that the duration of the operational access data network is
It is no to be greater than or equal to third preset duration, when the duration of the operational access data network is greater than or equal to the third preset duration
When, determine that this is applied in the first preset duration in the presence of abnormal power consumption behavior;
When in multiple operation including the operation using global position system GPS, judge that this operates with global location
Whether the duration of system GPS is greater than or equal to the 4th preset duration, when the duration for operating with global position system GPS is greater than
Or when being equal to four preset durations, determine that this is applied in the first preset duration in the presence of abnormal power consumption behavior;
When in multiple operation include wake up terminal operation when, judge the operation wake up terminal duration whether be greater than or
The application is determined when the duration that the operation wakes up terminal is greater than or equal to five preset durations equal to the 5th preset duration
There is abnormal power consumption behavior in the first preset duration;
Wherein, above-mentioned third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or are equal to first in advance
If duration.
In another embodiment of the present disclosure, it should be based on multiple operation, judge that this is applied is in the first preset duration
It is no to there is abnormal power consumption behavior, comprising:
Judge in multiple operation with the presence or absence of specified operation;
When there is specified operation in multiple operation, determine that this is applied in the first preset duration in the presence of abnormal power consumption row
For.
In another embodiment of the present disclosure, which includes: the operation for accessing data network, using global location
The operation of system GPS or the operation for waking up terminal.
In another embodiment of the present disclosure, control application stops performance objective operation, comprising:
Determine the operation interface of object run;
Control application stops calling the operation interface, stops executing the object run to control the application.
In another embodiment of the present disclosure, before controlling application stopping performance objective operation, this method further include:
Based on object run, abnormal power consumption notification information is shown;
When detecting setting instruction based on the exception power consumption notification information, the set interface of application is shown;
When detecting halt instruction based on the set interface, the step of the control application stopping performance objective operation is executed
Suddenly.
All the above alternatives, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real
It applies example and this is no longer repeated one by one.
Fig. 2 is a kind of flow chart of application management method shown according to an exemplary embodiment, as shown in Fig. 2, this is answered
With management method for including the following steps in terminal.
In step 201, when detecting application switching to running background, every the first preset duration, the application is determined
The multiple operations executed in the first preset duration.
Under normal conditions, when application switching to running background, illustrate that user is not using the application, still, the application
Actually there are no being closed, due to applying in running background, it is also possible to will continue to execute some operations, for example, access
Data network etc..In performed multiple operations, it is likely that there are some operations for belonging to abnormal power consumption behavior, i.e., such
The operation for belonging to abnormal power consumption behavior frequently can lead to the consumption of terminal power.Therefore, in order to save electricity, terminal needs
The application is managed.
Wherein, above-mentioned first preset duration can also be made by oneself according to actual needs by terminal default setting by user
Justice setting, the embodiment of the present disclosure do not limit this.
Wherein, whether above-mentioned application switches to running background and can be judged in the following way: when detecting that this answers
When display interface is closed, terminal can determine the application switching to running background.
Certainly, it should be noted that in the embodiments of the present disclosure, be only with by detection application display interface whether by
It closes to judge using whether running background is switched to, in another embodiment, it is also possible to judge to apply otherwise
Whether running background is switched to, and the embodiment of the present disclosure does not limit this.
In step 202, it is based on multiple operation, judges that this is applied in the first preset duration with the presence or absence of abnormal power consumption
Behavior.
After terminal determines multiple operations performed by applying in the first preset duration, sentenced based on multiple operation
It is disconnected, that is, to judge in multiple operation with the presence or absence of the operation for belonging to abnormal power consumption behavior.Wherein, according to abnormal power consumption behavior
Definition is different, and it may include following any possible with the presence or absence of abnormal power consumption behavior that judgement, which is applied in the first preset duration,
Implementation:
First way: the occupancy duration of multiple operation occupied terminal resources in the first preset duration is determined, based on more
The occupancy duration of a operation, judgement are applied in the first preset duration with the presence or absence of abnormal power consumption behavior.
Can also include any possible implementation in following (1)-(2) in above-mentioned first way:
(1), it when the sum of occupancy duration of multiple operations is greater than or equal to the second preset duration, determines and applies first in advance
If there is abnormal power consumption behavior in duration.
Wherein, above-mentioned second preset duration can also be write from memory by user's customized setting according to actual needs by terminal
Recognize setting, the embodiment of the present disclosure does not limit this.
Specifically, terminal obtains each of multiple operations operation occupied terminal resource in the first preset duration respectively
Occupancy duration, be then added to by corresponding each the occupancys duration of multiple operation, the sum of occupancy duration obtained, if gained
The sum of occupancy duration arrived is greater than or equal to the second preset duration, that is, determines to apply there is exception in first preset duration
Otherwise power consumption behavior can determine that this is applied and abnormal power consumption behavior is not present in second preset duration.
(2), based on the occupancy duration of multiple operations, judgement is applied in the first preset duration with the presence or absence of abnormal power consumption row
For, including such as at least one of under type:
A, when in multiple operations include access data network operation when, judge operational access data network duration whether
It is determined more than or equal to third preset duration when the duration of operational access data network is greater than or equal to third preset duration
It applies and there is abnormal power consumption behavior in the first preset duration.
B, when in multiple operations including the operation using global position system GPS, judgement operates with global positioning system
Whether the duration of system GPS is greater than or equal to the 4th preset duration, when the duration for operating with global position system GPS is greater than or waits
When four preset durations, determine to apply there is abnormal power consumption behavior in the first preset duration.
C, when including waking up the operation of terminal in multiple operations, judge whether the duration of operation wake-up terminal is greater than or waits
It determines and applies first in advance when the duration that operation wakes up terminal is greater than or equal to five preset durations in the 5th preset duration
If there is abnormal power consumption behavior in duration.
Wherein, above-mentioned third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or are equal to first in advance
If duration.And above-mentioned third preset duration, the 4th preset duration and the 5th preset duration can be by users according to practical need
Customized setting is asked, can also not limited this by terminal default setting, the embodiment of the present disclosure.
In above-mentioned several possible implementations, for different operation included in multiple operations, the difference is limited
The corresponding occupancy duration of operation, so that when the corresponding occupancy duration of the different operation has exceeded limitation range, Ke Yiyou
It is pointedly managed, that is, improve the specific aim of application management.
It should be noted that in the embodiments of the present disclosure, above-mentioned is only to be operated in the first preset duration based on multiple
The occupancy duration of occupied terminal resource judges that this is applied and is lifted in the first preset duration with the presence or absence of abnormal power consumption behavior
Example explanation.In another embodiment, it is also possible to whether there is in the first preset duration to judge that this is applied otherwise
Abnormal power consumption behavior, for example, it is also possible to pass through multiple operation occupied terminal CPU (Central Processing Unit, center
Processor) occupancy judge, specifically, it can be determined that whether the occupancies that multiple operations occupy central processor CPUs big
It is determining to apply when the occupancy that operation occupies central processor CPU is greater than or equal to preset threshold in or equal to preset threshold
There is abnormal power consumption behavior in the first preset duration, the embodiment of the present disclosure does not limit this.
Wherein, above-mentioned preset threshold can also be defaulted by terminal and be set by user's customized setting according to actual needs
It sets, the embodiment of the present disclosure does not limit this.
The second way: judging with the presence or absence of specified operation in multiple operations, when there is specified operation in multiple operations,
Determine to apply there is abnormal power consumption behavior in the first preset duration.
Wherein, which includes operation, the operation or wake-up using global position system GPS of access data network
The operation of terminal.
In the above-mentioned second way, when application switching to running background, it can determine that the application is not usually required to again
Above-mentioned specified operation is executed, therefore, when detecting using still when executing specified operation, that is, can determine that the application may execute
Abnormal power consumption behavior.
For example, when the map application does not switch to running background, possible user is used for map application
The map application, in the process, the map application may exist using GPS operation, still, when map application switching extremely
When running background, illustrate that user is not using the map application, it can determining that the map application does not need to execute again makes
With the operation of GPS, at this point, if it is different to can determine that the map application executes when the map application also has the behavior using GPS
Normal power consumption behavior.
It should be noted that in the embodiments of the present disclosure, only including the operation of access data network with specified operation, using
The operation of global position system GPS wakes up the operation of terminal to be illustrated, and in another embodiment, this specifies operation
It is also possible that other operations, the embodiment of the present disclosure does not limit this.
In step 203, when this, which is applied, there is abnormal power consumption behavior in the first preset duration, from multiple operation
Object run is obtained, which is to belong to the operation of abnormal power consumption behavior.
If determining the operation for existing in multiple operation and belonging to abnormal power consumption behavior by the above method, terminal is obtained
This belongs to the operation of abnormal power consumption behavior, and the operation that will acquire is determined as object run.For example, if abnormal power consumption behavior is to visit
Ask the operation of data network, then terminal obtains the operation of the access data network from multiple operations, and will access data network
Operation be determined as object run.
In step 204, it is based on the object run, shows abnormal power consumption notification information.
In one possible implementation, when terminal gets object run, it can automatically control application and stop
Execute the object run.But in actual application, it in order to increase user experience effect, usually also needs by user
Agreement, terminal just can control using stop performance objective operation, for this purpose, when terminal acquisition object run after, current
Abnormal power consumption notification information is shown in display interface.
Wherein, quickly know which is applied for the ease of user and performing which abnormal power consumption behavior, the exception from the background
It may include the application identities and the corresponding operation mark of object run of the application in power consumption notification information, wherein the application
Mark may include the ID (Identity, identity number) of application, answer for unique identification one application, the application identities
Title etc..Wherein, operation mark is for unique identification one operation.
In step 205, when detecting setting instruction based on the exception power consumption notification information, the setting of the application is shown
Interface.
It should be noted that above-mentioned setting instruction is for showing to setting circle for applying performed operation to be configured
Face, and setting instruction can be triggered by user, which can be triggered by specified operation, which can be point
Operation, slide etc. are hit, the disclosure is not specifically limited in this embodiment.
For example, in one possible implementation, terminal can show that abnormal power consumption is logical in a manner of prompt information frame
Know information, further include the option for thering is display to apply set interface in the prompt information frame, if user agrees to carry out the application
When management, the option can be clicked, when detecting that user clicks the option, terminal detects that the setting instructs.
In step 206, it when detecting halt instruction based on the set interface, controls the application and stops performance objective behaviour
Make.
It should be noted that the halt instruction, which is used to indicate terminal control application, stops performance objective operation, which refers to
Order can be triggered by user, which can be triggered by specified operation, and the disclosure is not specifically limited in this embodiment.
For example, the exception power consumption behavior is to access the operation of data network, in one possible implementation, above-mentioned
Include that the access data network is corresponding in setting display interface to forbid executing option, user can click this and forbid executing choosing
, when detect user click this forbid execute option when, halt instruction can be confirmly detected.
Wherein, control application stops the operation that performance objective operation can be accomplished in that determining object run
Interface, control application stop call operation interface, stop performance objective operation with control application.
Certainly, it should be noted that in open the present embodiment, be only in a manner of by stopping call operation interface,
Control application stops performance objective operation to be illustrated, and in another embodiment, can also control otherwise
System application stops performance objective operation, and the disclosure does not limit this.
In the embodiments of the present disclosure, when detecting application switching to running background, terminal is every the first preset duration, really
Fixed this applies the multiple operations executed in the first preset duration, is based on multiple operation, it is pre- first that terminal judges that this is applied
If with the presence or absence of abnormal power consumption behavior, when this, which is applied, there is abnormal power consumption behavior in the first preset duration, terminal in duration
Object run is obtained from multiple operation, which is to belong to the operation of abnormal power consumption behavior, also, terminal control should
Using performance objective operation is stopped, in this way, stopping executing the operation for belonging to abnormal power consumption behavior by control application, section is reached
Save the effect of power consumption.
Fig. 3 is a kind of application management device block diagram shown according to an exemplary embodiment.Referring to Fig. 3, which includes
Determining module 310, judgment module 320 obtain module 330 and control module 340.
The determining module 310, for every the first preset duration, determining when detecting application switching to running background
Apply the multiple operations executed in the first preset duration;
The judgment module 320, is used for multiple operations based on determined by determining module 310, and judgement is applied default first
With the presence or absence of abnormal power consumption behavior in duration;
Obtain module 330, for when apply there is abnormal power consumption behavior in the first preset duration when, from determining module
Object run is obtained in multiple operations determined by 310, which is to belong to the operation of abnormal power consumption behavior;
First control module 340 obtains object run acquired in module 330 for controlling to execute using stopping.
In the embodiments of the present disclosure, when detecting application switching to running background, terminal is every the first preset duration, really
Fixed this applies the multiple operations executed in the first preset duration, is based on multiple operation, it is pre- first that terminal judges that this is applied
If with the presence or absence of abnormal power consumption behavior, when this, which is applied, there is abnormal power consumption behavior in the first preset duration, terminal in duration
Object run is obtained from multiple operation, which is to belong to the operation of abnormal power consumption behavior, also, terminal control should
Using performance objective operation is stopped, in this way, stopping executing the operation for belonging to abnormal power consumption behavior by control application, section is reached
Save the effect of power consumption.
Fig. 4 to Fig. 8 is please referred to, in another embodiment of the present disclosure, judgment module 320, comprising:
First determination unit 320a, for determining multiple operations in the first preset duration when the occupancy of occupied terminal resource
It is long;
First judging unit 320b, for the occupancy duration based on multiple operations, judgement is applied in the first preset duration
With the presence or absence of abnormal power consumption behavior.
In another embodiment of the present disclosure, judgment module 320, comprising:
Second determination unit 320c is greater than or equal to the second preset duration for the sum of the occupancy duration when multiple operations
When, determine to apply there is abnormal power consumption behavior in the first preset duration.
In another embodiment of the present disclosure, judgment module 320, including such as at least one of lower unit:
Second judgment unit 320d, for judging that operation is visited when in multiple operations including the operation of access data network
Ask whether the duration of data network is greater than or equal to third preset duration, when the duration of operational access data network is greater than or equal to
When third preset duration, determine to apply there is abnormal power consumption behavior in the first preset duration;
Third judging unit 320e, for judging when in multiple operations including the operation using global position system GPS
Whether the duration for operating with global position system GPS is greater than or equal to the 4th preset duration, when operating with global positioning system
When the duration of system GPS is greater than or equal to four preset durations, determine to apply there is abnormal power consumption behavior in the first preset duration;
4th judging unit 320f, for judging that operation wakes up eventually when including waking up the operation of terminal in multiple operations
Whether the duration at end is greater than or equal to the 5th preset duration, when the duration that operation wakes up terminal is greater than or equal to the 5th preset duration
When, determine to apply there is abnormal power consumption behavior in the first preset duration;
Wherein, above-mentioned third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or are equal to first in advance
If duration.
In another embodiment of the present disclosure, judgment module 320, comprising:
5th judging unit 320g, for judging in multiple operations with the presence or absence of specified operation;
Third determination unit 320h, for when there is specified operation in multiple operations, determination to be applied when first is default
There is abnormal power consumption behavior in long.
In another embodiment of the present disclosure, specified operation includes: the operation for accessing data network, using global positioning system
The operation of system GPS or the operation for waking up terminal.
In another embodiment of the present disclosure, the first control module 340 is used for:
Determine the operation interface of object run;
Control application stops call operation interface, stops performance objective operation with control application.
In another embodiment of the present disclosure, the device further include:
First display module 350 shows abnormal power consumption notification information for being based on object run;
Second display module 360, for showing application when detecting setting instruction based on abnormal power consumption notification information
Set interface;
Second control module 370 is held for when detecting halt instruction based on set interface, executing control using stopping
The step of row object run.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is a kind of block diagram of application management device 900 shown according to an exemplary embodiment.For example, device 900 can
To be mobile phone, computer, terminal, tablet device etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply
Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and
Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just
Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate
Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown
Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 906 provides power supply for the various assemblies of device 900.Power supply module 906 may include power management system
System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of power supply.
Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 908 includes a front camera and/or rear camera.When device 900 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike
Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set
Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented
Estimate.For example, sensor module 914 can detecte the state that opens/closes of device 900, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 900, and sensor module 914 can be with 900 1 components of detection device 900 or device
Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900
Temperature change.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device
900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device executes, so that mobile terminal is able to carry out a kind of application management method as shown in Figure 1 or 2.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (16)
1. a kind of application management method, which is characterized in that the described method includes:
When detecting application switching to running background, every the first preset duration, determine that described apply is preset described first
The multiple operations executed in duration;
Based on the multiple operation, described apply in first preset duration with the presence or absence of abnormal power consumption behavior is judged;
When described apply in first preset duration in the presence of abnormal power consumption behavior, target is obtained from the multiple operation
Operation, the object run is to belong to the operation of abnormal power consumption behavior;
The application is controlled to stop executing the object run.
2. judging described apply the method according to claim 1, wherein described be based on the multiple operation
With the presence or absence of abnormal power consumption behavior in first preset duration, comprising:
Determine the occupancy duration of the multiple operation occupied terminal resource in first preset duration;
Occupancy duration based on the multiple operation judges described apply in first preset duration with the presence or absence of abnormal consumption
Electric behavior.
3. according to the method described in claim 2, it is characterized in that, the occupancy duration based on the multiple operation, judgement
It is described to apply in first preset duration with the presence or absence of abnormal power consumption behavior, comprising:
When the sum of occupancy duration of the multiple operation is greater than or equal to the second preset duration, described apply described the is determined
There is abnormal power consumption behavior in one preset duration.
4. according to the method described in claim 2, it is characterized in that, the occupancy duration based on the multiple operation, judgement
It is described to apply with the presence or absence of abnormal power consumption behavior in first preset duration, including such as at least one of under type:
When in the multiple operation including the operation of access data network, judge that the duration of the operational access data network is
It is no to be greater than or equal to third preset duration, when the duration of the operational access data network, which is greater than or equal to the third, to be preset
When long, determine that described apply has abnormal power consumption behavior in first preset duration;
When in the multiple operation including the operation using global position system GPS, global location is operated with described in judgement
Whether the duration of system GPS is greater than or equal to the 4th preset duration, when it is described operate with global position system GPS when grow up
When four preset duration, determine that described apply has abnormal power consumption behavior in first preset duration;
When in the multiple operation include wake up terminal operation when, judge it is described operation wake-up terminal duration whether be greater than or
Institute is determined when the duration that the operation wakes up terminal is greater than or equal to five preset duration equal to the 5th preset duration
It states to apply and there is abnormal power consumption behavior in first preset duration;
Wherein, the third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or are equal to institute
State the first preset duration.
5. judging described apply the method according to claim 1, wherein described be based on the multiple operation
With the presence or absence of abnormal power consumption behavior in first preset duration, comprising:
Judge in the multiple operation with the presence or absence of specified operation;
When there are when the specified operation, determine described to apply in first preset duration that there are different in the multiple operation
Normal power consumption behavior.
6. according to the method described in claim 5, it is characterized in that, it is described it is specified operation include: access data network operation,
Use the operation of global position system GPS or the operation of wake-up terminal.
7. the method according to claim 1, wherein the control application stops executing the target behaviour
Make, comprising:
Determine the operation interface of the object run;
It controls the application to stop calling the operation interface, stops executing the object run to control the application.
8. the method according to claim 1, wherein the control application stops executing the object run
Before, the method also includes:
Based on the object run, abnormal power consumption notification information is shown;
When detecting setting instruction based on the abnormal power consumption notification information, the set interface of the application is shown;
When detecting halt instruction based on the set interface, executes the control application and stop executing the target behaviour
The step of making.
9. a kind of application management device, which is characterized in that described device includes:
Determining module, for every the first preset duration, determining described apply when detecting application switching to running background
The multiple operations executed in first preset duration;
Judgment module judges described apply described first for the multiple operation determined by module based on the determination
With the presence or absence of abnormal power consumption behavior in preset duration;
Obtain module, for when it is described apply there is abnormal power consumption behavior in first preset duration when, from the determination
Object run is obtained in the multiple operation determined by module, the object run is to belong to the operation of abnormal power consumption behavior;
First control module stops executing the object run acquired in the acquisition module for controlling the application.
10. device according to claim 9, which is characterized in that the judgment module, comprising:
First determination unit, for determining the multiple operation in first preset duration when occupancy of occupied terminal resource
It is long;
First judging unit judges described apply when described first is default for the occupancy duration based on the multiple operation
With the presence or absence of abnormal power consumption behavior in long.
11. device according to claim 10, which is characterized in that the judgment module, comprising:
Second determination unit, for when the sum of occupancy duration of the multiple operation be greater than or equal to the second preset duration when, really
There is abnormal power consumption behavior in first preset duration in fixed described apply.
12. device according to claim 10, which is characterized in that the judgment module includes such as at least one in lower unit
It is a:
Second judgment unit, for judging that the operation is visited when in the multiple operation including the operation of access data network
Ask whether the duration of data network is greater than or equal to third preset duration, be greater than when the duration of the operational access data network or
When equal to the third preset duration, determine that described apply has abnormal power consumption behavior in first preset duration;
Third judging unit, for when in the multiple operation including the operation using global position system GPS, described in judgement
Whether the duration for operating with global position system GPS is greater than or equal to the 4th preset duration, when the whole world that operates with is determined
When the duration of position system GPS is greater than or equal to four preset duration, described apply in first preset duration is determined
There are abnormal power consumption behaviors;
4th judging unit, for judging that the operation wakes up eventually when including waking up the operation of terminal in the multiple operation
Whether the duration at end is greater than or equal to the 5th preset duration, when the duration that the operation wakes up terminal is greater than or equal to the described 5th
When preset duration, determine that described apply has abnormal power consumption behavior in first preset duration;
Wherein, the third preset duration, the 4th preset duration and the 5th preset duration are respectively less than or are equal to institute
State the first preset duration.
13. device according to claim 9, which is characterized in that the judgment module, comprising:
5th judging unit, for judging in the multiple operation with the presence or absence of specified operation;
Third determination unit, for when there are when the specified operation, determine described apply described in the multiple operation
There is abnormal power consumption behavior in one preset duration.
14. device according to claim 13, which is characterized in that the specified operation includes: the behaviour for accessing data network
Make, using the operation of global position system GPS or the operation of wake-up terminal.
15. device according to claim 9, which is characterized in that first control module is used for:
Determine the operation interface of the object run;
It controls the application to stop calling the operation interface, stops executing the object run to control the application.
16. device according to claim 9, which is characterized in that described device further include:
First display module shows abnormal power consumption notification information for being based on the object run;
Second display module, for showing the application when detecting setting instruction based on the abnormal power consumption notification information
Set interface;
Second control module, for when detecting halt instruction based on the set interface, executing the control application
Stop the step of executing the object run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610251826.4A CN105955441B (en) | 2016-04-21 | 2016-04-21 | Application management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610251826.4A CN105955441B (en) | 2016-04-21 | 2016-04-21 | Application management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105955441A CN105955441A (en) | 2016-09-21 |
CN105955441B true CN105955441B (en) | 2019-08-06 |
Family
ID=56914644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610251826.4A Active CN105955441B (en) | 2016-04-21 | 2016-04-21 | Application management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105955441B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109257196A (en) * | 2017-07-12 | 2019-01-22 | 阿里巴巴集团控股有限公司 | A kind of abnormality eliminating method and equipment |
CN107506019A (en) * | 2017-08-07 | 2017-12-22 | 北京小米移动软件有限公司 | Management method and device, terminal, the storage medium of application program |
CN107797645B (en) * | 2017-10-12 | 2020-12-04 | 北京小米移动软件有限公司 | Resource control method and device |
CN108647127B (en) * | 2018-05-04 | 2022-03-11 | 腾讯科技(深圳)有限公司 | Application power consumption monitoring method and device |
CN109669743B (en) * | 2018-11-15 | 2022-04-01 | 深圳市网心科技有限公司 | Terminal-based operation method and system, terminal, and storage medium |
CN111209160B (en) * | 2019-12-31 | 2024-03-22 | 深圳云天励飞技术有限公司 | Power consumption abnormality analysis method and device, terminal equipment and readable storage medium |
CN114355826A (en) * | 2022-01-21 | 2022-04-15 | 思翼科技(深圳)有限公司 | Unmanned aerial vehicle remote controller |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2390758A1 (en) * | 2010-05-25 | 2011-11-30 | Samsung Electronics Co., Ltd. | Method and apparatus for managing an application being executed in a portable terminal |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
CN104156053A (en) * | 2014-07-29 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Abnormal power consumption control method, abnormal power consumption control device 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 |
CN105354130A (en) * | 2015-10-14 | 2016-02-24 | 上海青橙实业有限公司 | Application management method and mobile terminal |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
-
2016
- 2016-04-21 CN CN201610251826.4A patent/CN105955441B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2390758A1 (en) * | 2010-05-25 | 2011-11-30 | Samsung Electronics Co., Ltd. | Method and apparatus for managing an application being executed in a portable terminal |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
CN104298584A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring application program with abnormal power consumption and mobile terminal |
CN104156053A (en) * | 2014-07-29 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Abnormal power consumption control method, abnormal power consumption control device and mobile terminal |
CN105354130A (en) * | 2015-10-14 | 2016-02-24 | 上海青橙实业有限公司 | Application management method and mobile terminal |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105955441A (en) | 2016-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105955441B (en) | Application management method and device | |
CN105677460B (en) | Applied program processing method and device | |
CN105049923B (en) | Wake up the method and device of electronic equipment | |
CN105807873B (en) | Temprature control method and device | |
CN104050035B (en) | The processing method and processing device of application program | |
EP3151117B1 (en) | Method and device for delaying information broadcasting | |
CN107436777B (en) | Mobile terminal, application crash processing method and processing device | |
CN105162945B (en) | Method for information display and device | |
WO2016029642A1 (en) | Background application program control method, device and terminal device | |
CN105975301B (en) | Memory method for cleaning and device, electronic equipment | |
CN105553963B (en) | The control method and device of positioning service | |
CN104837154B (en) | The control method and device of wireless access points | |
CN107608561A (en) | Touch-screen control method and device | |
CN106354242A (en) | Mode switching method and device | |
CN105792328B (en) | Terminal device method for connecting network, device and terminal device | |
CN105979088A (en) | Message pushing method and device | |
CN106385488B (en) | Restore the method and device of normal mode of operation | |
CN110262692A (en) | A kind of touch screen scanning method, device and medium | |
CN106657645A (en) | Call request processing method and device, calling method and device, and related terminal | |
CN110349578A (en) | Equipment wakes up processing method and processing device | |
CN105390120A (en) | Bright screen control method and device | |
CN105653903B (en) | The management method and device of application program permission | |
CN106231072B (en) | Control method, device and the terminal device of prompting message | |
CN104780574A (en) | Method and device for network switchover | |
CN106455002A (en) | Wireless search method and device, and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |