Summary of the invention
Based on this, it is necessary to for the big problem of power consumption under current mobile terminal in standby state, provide a kind of intelligence and set
Application control method under standby standby mode.
In addition, there is a need the problem big for power consumption under current mobile terminal in standby state, a kind of intelligence is provided and is set
Application control device under standby standby mode.
A kind of application control method under smart machine standby mode, comprising steps of
Whether detection smart machine is in standby;
If smart machine is in standby, the application in operating status is obtained;
Judge it is described it is in operating status in application whether using to preset functional module and it is described apply whether be
The preset application needed using corresponding functional module;
If it is described it is in operating status in using to preset functional module and it is described application be not preset
The application using corresponding functional module is needed, then closes the application.
The preset functional module includes GPS module, default sensor module and wake-up in one of the embodiments,
At least one of lock.
In one of the embodiments, it is described judge it is described it is in operating status in application whether use preset function
It can module and described application the step of whether being the preset application needed using corresponding functional module, comprising:
Judge it is described it is in operating status in application whether hold wake-up lock, if so,
Detect it is described it is in operating status in application hold wake up lock time whether more than the first preset time, if
It is then to determine the application or not to need to hold wake-up lock.
If in one of the embodiments, it is described it is in operating status in using arrive preset function
Module and described application the step of not being the preset application needed using corresponding functional module, then closing the application it
Afterwards, further includes:
Obtain the duration that smart machine is in the standby state;
The duration is detected whether more than the second preset time, if so,
Detect whether the application meets the following conditions: the interfaces windows of the application are shown in foreground, described apply
It is not completed using wake-up lock, described apply in transmission flow and the task of the application;
If described apply while being unsatisfactory for above-mentioned condition, the application is closed.
In one of the embodiments, after detecting the step of whether application meets above-mentioned condition, further includes:
If the application meets any one in the condition, freeze the application.
If in one of the embodiments, it is described it is in operating status in using arrive preset function
Module and described application the step of not being the preset application needed using corresponding functional module, then closing the application it
Afterwards, further includes:
Detect it is described it is in operating status in application whether be common application;
If it is described it is in operating status in application be common application, freeze the application.
A kind of application control device under smart machine standby mode, comprising:
Standby detection module, for detecting whether smart machine is in standby;
Using obtain module, for obtain smart machine under standby mode it is in operating status in application;
Judgment module, for judge it is described it is in operating status in application whether use preset functional module and institute
State whether application is the preset application needed using corresponding functional module;
Application control module, for closing not as the preset application needed using corresponding functional module.
The preset functional module includes GPS module, default sensor module and wake-up in one of the embodiments,
At least one of lock.
In one of the embodiments, the judgment module be used for judge it is described it is in operating status in application whether hold
There is wake-up to lock, if so,
Detect it is described it is in operating status in application hold wake up lock time whether more than the first preset time, if
It is then to determine the application or not to need to hold wake-up lock.
Described device in one of the embodiments, further include:
Stand-by time obtains module, the duration being in the standby state for obtaining smart machine;
Stand-by time detection module, for whether detecting the duration more than the second preset time;
Using detection module, for detect the application that the duration is more than the second preset time whether meet with
Lower condition: the interfaces windows of the application be shown in foreground, it is described apply using wake up lock, it is described apply transmission flow with
And the task of the application does not complete;
The application control module is also used to close while being unsatisfactory for the application of above-mentioned condition.
The application control module is also used to freeze to meet any one in the condition in one of the embodiments,
The application.
Described device further includes common application detection module in one of the embodiments, described in fortune for detecting
Whether the application in row state is common application;
The application control module is also used to freeze the common application.
Application control method and apparatus under above-mentioned smart machine standby mode, in the standby state, smart machine passes through
Judgement obtains: in operating status using arrive preset functional module, and the application be not it is preset need using
The application of corresponding functional module, then smart machine determines that the application using the functional module, leads to abnormal power consumption, be extremely
The shorter factor of stand-by time.Therefore, for the application for using preset functional module, and the application is not preset needs
Using the application of corresponding functional module, smart machine thoroughly closes the application.In this way, effectively reducing smart machine standby mode
Under power consumption, extend stand-by time, it is energy saving.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, smart machine below is with intelligent end
For end, in conjunction with accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that described herein specific
Embodiment is only used to explain the present invention, is not intended to limit the present invention.
Fig. 1 is please referred to, for the application control method flow schematic diagram under the smart machine standby mode of an embodiment.Such as figure
A kind of application control method shown in 1, under smart machine standby mode, comprising:
Whether step S110, detection smart machine are in standby.
Specifically, for the smart machine in the present embodiment by taking intelligent terminal as an example, which can be smart phone.?
Before executing operation relevant to the application control method, whether detection intelligent terminal first is in standby.If it is confirmed that
Intelligent terminal is in standby, then continues subsequent step.If intelligent terminal is not in standby mode, will continue
It is detected, so that when entering standby mode, control is applied in time.
Step S120 obtains the application in operating status if smart machine is in standby.
Specifically, intelligent terminal can still have the application in operating status in the standby state.Some of them is answered
With still executing operation on backstage;Some applications are in idle condition;Also some applications should not use and but use intelligent terminal
In certain functional modules, intelligent terminal exception power consumption when will lead to standby in this way.Therefore when intelligent terminal is in standby shape
When state, intelligent terminal can obtain the application in operating status, and to these application execution corresponding operation, reach saving electricity
The purpose of pond electricity.
Step S130, judge in operating status application whether using to preset functional module and apply whether be
The preset application needed using corresponding functional module.
Specifically, intelligent terminal in the standby state, the case where in order to save battery capacity, judge application.Intelligence is eventually
After end gets the application in operating status, judging, which whether there is in these applications, uses answering for preset functional module
With, and whether the application is the preset application needed using corresponding functional module.If the application in operating status
Do not use preset functional module or it is in operating status in using to preset functional module and the application
It is the preset application needed using corresponding functional module, then intelligent terminal allows the application to continue to run or execute and be somebody's turn to do
Using corresponding operation.
Step S140, if in operating status using to preset functional module and application be not preset
It needs then to close application using the application of corresponding functional module.
Specifically, if in operating status using to preset functional module and application be not preset need
The application that use corresponding functional module then shows that the application uses corresponding functional module extremely, and intelligent terminal closes immediately
Close the application.In the standby state, some third party softwares often frequently call one for the update of data to intelligent terminal
Application in a little intelligent terminals, but these softwares are not the preset software needed using the application, so as to cause power consumption
Greatly, intelligent terminal can close these softwares to amount immediately.In addition, malicious application, malicious application also can if it exists in intelligent terminal
Using preset functional module is arrived, battery power consumption is not only resulted in quickly, and malicious application can also carry out malice to smart machine
Operation.If intelligent terminal detects the presence of malicious application, while terminating the malicious application, also this is maliciously answered
Use complete deletion.
Application control method under above-mentioned smart machine standby mode, in the standby state, smart machine is by judging
Arrive: in operating status using to preset functional module, and the application is not preset needs using corresponding
The application of functional module, then smart machine determines that the application using the functional module, leads to abnormal power consumption, when being standby extremely
Between shorter factor.Therefore, for the application for using preset functional module, and the application is not preset needs use pair
The application for the functional module answered, smart machine thoroughly close the application.In this way, effectively reducing the consumption under smart machine standby mode
Electricity extends stand-by time, energy saving.
In one embodiment, preset functional module includes GPS module, default sensor module and wakes up in lock extremely
Few one.
Specifically, intelligent terminal in the standby state, if using to GPS module, default sensor module and calling out
It wakes up and locks, whether intelligent terminal judges using being the preset application needed using corresponding functional module, if the application is not
It is the preset application needed using corresponding functional module, intelligent terminal can close the application.Wherein, sensor module is preset
It can be light sensor module, gravity sensor module or distance sensor module etc..Such as navigation type application can accordingly make
Use GPS module, screen intensity, which adjusts application, can accordingly use preset light sensor module, video class application and/or
Game class application can accordingly use wake-up to lock.
For example, intelligent terminal has determined whether using using lasting if preset functional module is GPS module
GPS module.If there is application continues using GPS module, whether it is navigation type application that intelligent terminal is judged and applied.If made
It is navigation type application with the application of GPS module, then illustrating that the operation of the application not will cause abnormal power consumption.If using GPS
The application of module is not navigation type application, illustrates that the application will cause abnormal power consumption, answers so that intelligent terminal can thoroughly close this
With.In this way by judging the service condition of GPS module, judgement obtains whether there is abnormal power consumption, and closing leads to abnormal power consumption
Application, reduce electric quantity consumption.
Under normal conditions, the navigation type in intelligent terminal applies the application accordingly to use GPS module, and navigation type, which is applied, is
People, which go on a journey, provides accurate information of road surface.But the other application that user installs in an intelligent terminal, it can also call GPS mould
Block, the current position data of confirmation user, and some information are provided according to the position data, these are applied in running background,
Also GPS module can be constantly called, but the application is not the application that preset needs accordingly use GPS module, and
Under standby mode, these applications will cause the abnormal power consumption of intelligent terminal.
In one embodiment, judge whether the application in operating status uses preset functional module and application
The step of whether being the preset application needed using corresponding functional module, comprising:
Judge whether the application in operating status holds wake-up lock, if so,
It detects the application in operating status and whether holds the time for waking up lock more than the first preset time, if so,
Determine application of the application not to need to hold wake-up lock.
Specifically, waking up lock (wakelock) is to prevent screen dimmed in intelligent terminal or intelligent terminal entrance is prevented to sleep
The functional module of sleep mode, thus have using wake up lock when, power consumption is very big.For example, when user is watched with intelligent terminal
When video, Video Applications can continue to call to wake up lock, prevent screen dimmed or close, influence to watch.In addition, in standby mode
Under, lock is waken up using calling as long as having, then the meeting of intelligent terminal is waken up, screen opening.It is called using long-time and wakes up lock,
Battery capacity can be significantly consumed, power consumption increases.
Further, it is provided with the first preset time in an intelligent terminal, the first preset time is using under normal circumstances
Call the time threshold for waking up lock.If the time span for waking up and locking is held in the application in operating status is less than first in advance
If the value of time, then without the screen that goes out.Behaviour is prevented from applying in the time span of the first preset time twice or is performed a plurality of times in this way
Make, frequently opens screen, cause more electric quantity consumption.
It has been more than time threshold that the time span for waking up and locking is held in application in operating status, illustrates that the application is held
Lock overlong time is waken up, will lead to intelligent terminal cannot go out screen, lead to abnormal power consumption.So intelligent terminal will close this and answer
With achieving the purpose that power saving.
Referring to figure 2., show for the application control method flow under the smart machine standby mode of another embodiment of the present invention
It is intended to.In step S140: if in operating status using to preset functional module and application be not preset
It needs then to close after application using the application of corresponding functional module, further includes:
Step S150 obtains the duration that smart machine is in the standby state.
Specifically, intelligent terminal is according to the various durations of standby mode, confirms to the application in operating status
Whether the processing scheme of subsequent step is executed.
Whether step S160 detects the duration more than the second preset time.
Specifically, the second preset time is provided in intelligent terminal, the second preset time is that intelligent terminal executes this process
The time threshold using processing scheme.If the standby mode duration is less than the second preset time, intelligent terminal is to place
Application in operating status only carries out the processing scheme in step S140, for being unsatisfactory for executing the processing scheme of step S140
Condition application wouldn't process.Further, in this embodiment the second preset time be 5 minutes.In other embodiments
In, the second preset time is not limited to this, or other time length, such as 3 minutes.
Step S170 detects to apply whether meet the following conditions: application if the duration is more than the second preset time
Interfaces windows be shown in foreground, apply using wake up lock, apply transmission flow and application task do not complete.
Specifically, it if the time duration of intelligent terminal standby mode alreadys exceed the second preset time, is being in
In the application of operating status, the application without any operation is idle application, is necessary application in the application of the task of execution.It is idle
Using CPU can be occupied, so as to cause unnecessary electric quantity consumption.If currently running application meets in above four conditions
Any one, then the application is necessary application.If currently running apply while being unsatisfactory for above four conditions, the application
For free time application.
Step S180 closes application if apply while being unsatisfactory for above-mentioned condition.
Specifically, when determining the application for free time application, intelligent terminal will close the application, to save unnecessary electricity
Consumption extends stand-by time.In addition, under intelligent terminal standby mode, in the time span of the second preset time (including second
The time span of preset time), the free time is applied, user may reuse the application.Therefore in the second preset time,
Even if there is idle application, intelligent terminal will not close the application immediately.
It should be noted that in other embodiments, step S150~S180 can also be carried out after step S120, and
It synchronous with step S130~S140 can carry out, as long as the application for leading to unnecessary electric quantity consumption can be handled, reach saving electricity
The purpose of pond electricity.
In one embodiment, after detecting the step of whether application meets above-mentioned condition, further includes: if application is full
Any one in sufficient above-mentioned condition, then freeze to apply.
Specifically, freeze to carry out freezing to handle by that will apply using referring to, so that application is in torpor, pause fortune
Row, is not take up CPU, to save battery capacity.If using any one met in aforementioned four condition, which is
Necessity application.Necessity is applied, user only do not need may to need when waking up screen using, user in stand-by time after
It is continuous to use these applications.So intelligent terminal can by these application carry out freezing to handle, but these freeze application there are still
In backstage, user can at any time restore the application that these freeze, and continue to run these applications, without again
Starting, the operation of application can be restored by not needing additionally consumption electricity in this way, and it is convenient to facilitate.
It referring to figure 3., is the application control method flow schematic diagram under the smart machine standby mode of another embodiment.?
Step S140: if in operating status using to preset functional module and application be not it is preset need using
The application of corresponding functional module, then close after application, further includes:
Step S190, whether the application detected in operating status is common application.
Specifically, the application in operating status in intelligent terminal is divided into system application and common application.System application,
That is the system software of intelligent terminal, for managing software and hardware resources, control program executes, and improves man-machine interface, rationalization's intelligence
Terminal works process and good running environment can be provided using intelligent terminal for user, be essential most heavy in intelligent terminal
The application wanted, therefore, in intelligent terminal booting, no matter whether intelligent terminal is in standby, and system application can all continue
Operation.It is to meet user's different field, different problems that common application, the i.e. application software of intelligent terminal, which are in intelligent terminal,
Application demand and the application provided, such as game class application, social category application, therefore, intelligent terminal can control according to demand
The operating status of common application, to save battery capacity.
Step S200 freezes to apply if the application in operating status is common application.
Specifically, if intelligent terminal in the standby state, detects the common application of operation, then freeze described general
Logical application, so that common application is in torpor, operation suspension is not take up CPU, to save battery capacity.And work as user
When needing using these common applications, user can restore the common application that these freeze, and make these applications after reforwarding
Row, without restarting, the operation of application can be restored by not needing additionally consumption electricity in this way, and it is convenient to facilitate.
In addition, if intelligent terminal, which thaws, to be applied when having the application in freezing to need to be implemented application affairs.When needing to be implemented
When application affairs, user wakes up screen, restores to the application that these freeze, and continues to run these applications, prevents again
Start these applications and largely consumes battery capacity.Application affairs include that broadcast, service or content provide.Specifically, it answers
With event such as short message, phone, quarter-bell etc..
It referring to figure 4., is the application control apparatus structure block diagram under the smart machine standby mode of one embodiment of the invention.
A kind of application control device under smart machine standby mode, comprising: standby detection module 110, using obtaining module 120, sentence
Disconnected module 130 and application control module 140.
Standby detection module 110, for detecting whether smart machine is in standby.
Using obtain module 120, for obtain smart machine under standby mode it is in operating status in application.
Whether judgment module 130, the application for judging in operating status use preset functional module and answer
With whether being the preset application needed using corresponding functional module.
Application control module 140, for closing not as the preset application needed using corresponding functional module.
Above-mentioned application control device, in the standby state, judgment module 130 are obtained by judgement: in operating status
Using preset functional module is arrived, and the application is not the preset application needed using corresponding functional module, that
Abnormal power consumption should be will lead to using the functional module, and be the factor for causing stand-by time shorter.Therefore, for not being pre-
If the application needed using corresponding functional module, application control module 140 thoroughly closes the application.In this way, effectively reducing
Power consumption under smart machine standby mode extends stand-by time, energy saving.
In one embodiment, preset functional module includes GPS module, default sensor module and wakes up in lock extremely
Few one.
In one embodiment, judgment module is used to judge whether the application in operating status to hold wake-up lock, if
It is, then
It detects the application in operating status and whether holds the time for waking up lock more than the first preset time, if so,
Determine application of the application not to need to hold wake-up lock.
It referring to figure 5., is the application control apparatus structure frame under the smart machine standby mode of another embodiment of the present invention
Figure.The device includes: standby detection module 110, using acquisition module 120, judgment module 130 and application control module 140.Its
In, standby detection module 110 is closed using the setting and connection that obtain module 120, judgment module 130 and application control module 140
System referring to figure 3. shown in embodiment.
As shown in figure 5, the device further include: stand-by time obtains module 150, stand-by time detection module 160 and application
Detection module 170.
Stand-by time obtains module 150, the duration being in the standby state for obtaining smart machine.
Stand-by time detection module 160, for whether detecting the duration more than the second preset time.
Using detection module 170, for detecting whether the application that the duration is more than the second preset time meets following item
Part: the interfaces windows of application are shown in foreground, apply and locked, applied in the task for transmitting flow and application using wake-up
It does not complete.
Application control module 140 is also used to close while being unsatisfactory for the application of above-mentioned condition.
In one embodiment, application control module is also used to freeze to meet the application of any one in above-mentioned condition.
Fig. 6 is please referred to, for the application control apparatus structure block diagram under the smart machine standby mode of another embodiment.The dress
Set includes: standby detection module 110, using acquisition module 120, judgment module 130 and application control module 140.Wherein, standby
Detection module 110 please join using the setting and connection relationship that obtain module 120, judgment module 130 and application control module 140
According to embodiment shown in Fig. 3.
The device further include: common application detection module 190, for detect it is described it is in operating status in application whether
For common application.
Application control module 140 is also used to freeze common application.
In one embodiment, when needing to be implemented application affairs if there is the application in freezing, application control module is thawed
Using.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.