CN105843357B - The method and electronic equipment for maintaining application to work normally in economize on electricity processing - Google Patents
The method and electronic equipment for maintaining application to work normally in economize on electricity processing Download PDFInfo
- Publication number
- CN105843357B CN105843357B CN201610145120.XA CN201610145120A CN105843357B CN 105843357 B CN105843357 B CN 105843357B CN 201610145120 A CN201610145120 A CN 201610145120A CN 105843357 B CN105843357 B CN 105843357B
- Authority
- CN
- China
- Prior art keywords
- application
- parameter
- electronic equipment
- streaming media
- application program
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of method for maintaining application to work normally in economize on electricity processing and electronic equipments, which comprises obtains the triggering command for saving electric quantity for electronic equipment;It responds M application program of the triggering command based on scheduled power-saving strategies for the electronic equipment current operating conditions to be handled, to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;Wherein, the predetermined power-saving strategies are to determine whether to maintain the Streaming Media output class application based at least two parameters when application program is the application of Streaming Media output class.The automatic and accurate judgement that operation whether is continued to application can be at least reached while saving electricity.
Description
Technical field
The present invention relates to economize on electricity processing techniques, and in particular to a method of maintain application to work normally in economize on electricity processing
And electronic equipment.
Background technique
The electronic equipments such as mobile phone, tablet computer can be run each by the operating system such as Android android system installed
Kind application software such as music class applies such as QQ music, social category to apply as wechat is applied, map class applies such as Baidu map
Deng.In general, can be closed to the application of operation unnecessary in android system to reach the saving to electric quantity for electronic equipment.
Following two mode specifically can be used: 1) being turned off manually by application of the manual operation to unnecessary operation;2) work as entrance
Under screen lock state, electronic equipment can will be run all using forcibly closing.Wherein, first way needs artificial ginseng
With it is not smart enough;Although the second way can achieve the purpose that save electricity, closed by the application of unnecessary operation
While also the application of unnecessary closing is closed, such as the QQ music application for carrying out music is also carried out
It closes, and user wants to carry out listening to for music, is undoubtedly reduction of the experience of user.
Summary of the invention
To solve existing technical problem, it is normal that the embodiment of the present invention provides a kind of maintenance application in economize on electricity processing
The method and electronic equipment of work can at least reach while saving electricity to whether application continues to the automatic of operation
And accurate judgement, user experience is promoted, the functional diversity of electronic equipment is highlighted.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of method for maintaining application to work normally in economize on electricity processing, which comprises
Obtain the triggering command for saving electric quantity for electronic equipment;
The triggering command is responded to answer based on M that scheduled power-saving strategies are directed to the electronic equipment current operating conditions
It is handled with program, to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;
Wherein, the predetermined power-saving strategies are when application program is the application of Streaming Media output class based at least two parameters
Determine whether to maintain the Streaming Media output class application.
In above scheme, at least two parameter of the Streaming Media output class application is to obtain from the electronic equipment
?.
In above scheme, it is current for the electronic equipment that the response triggering command is based on scheduled power-saving strategies
M application program of operating status is handled, comprising:
The first attribute of each application program in the M application program is obtained, first attribute characterization is using journey
The type of sequence;
In M application program, determines that application type is the application program of Streaming Media output class, obtain target application;
At least obtain the first parameter, the second parameter of target application;
The first parameter, the second parameter according to target application, it is determined whether maintain the target application.
In above scheme,
First parameter characterization is whether target application is output state, the target application output first under output state
Data, second parameter characterization are the active degree of target application operation;
Judge whether the first parameter is located in the first preset range;
Judge whether the second parameter is located in the second preset range;
When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, control
The target application maintains the output of the first data;Wherein, it is defeated that the first parameter, which is located at target application when in the first preset range,
It does well, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.
In above scheme, for the wherein at least one parameter of at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relationship, at least one described parameter corresponding with the runlevel information is determined;
First corresponding relationship be it is preset, record have using the corresponding relationship between runlevel and parameter value.
The embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment includes:
Detector, for obtaining the triggering command for saving electric quantity for electronic equipment;
Processor is answered for responding the triggering command based on M that scheduled power-saving strategies are directed to current operating conditions
It is handled with program, to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;
Wherein, the predetermined power-saving strategies are when application program is the application of Streaming Media output class based at least two parameters
Determine whether to maintain the Streaming Media output class application.
In above scheme, at least two parameter of Streaming Media output class application is the processor from the electricity
It is obtained in sub- equipment.
In above scheme, the processor is also used to:
The first attribute of each application program in the M application program is obtained, first attribute characterization is using journey
The type of sequence;
In M application program, determines that application type is the application program of Streaming Media output class, obtain target application;
At least obtain the first parameter, the second parameter of target application;
The first parameter, the second parameter according to target application, it is determined whether maintain the target application.
In above scheme,
First parameter characterization is whether target application is output state, the target application output first under output state
Data, second parameter characterization are the active degree of target application operation;
The processor, is also used to:
Judge whether the first parameter is located in the first preset range;
Judge whether the second parameter is located in the second preset range;
When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, control
The target application maintains the output of the first data;Wherein, it is defeated that the first parameter, which is located at target application when in the first preset range,
It does well, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.
In above scheme, the processor is also used to:
For the wherein at least one parameter of at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relationship, at least one described parameter corresponding with the runlevel information is determined;
First corresponding relationship be it is preset, record have using the corresponding relationship between runlevel and parameter value.
The method provided in an embodiment of the present invention for maintaining application to work normally in economize on electricity processing and electronic equipment, the side
Method includes: the triggering command obtained for saving electric quantity for electronic equipment;It responds the triggering command and is based on scheduled power-saving strategies
It is handled for M application program of the electronic equipment current operating conditions, to reduce the power consumption section of the electronic equipment
Electricity is saved, M is the positive integer more than or equal to 1;Wherein, the predetermined power-saving strategies are when application program is that Streaming Media output class is answered
Used time is based at least two parameters and determines whether to maintain the Streaming Media output class application.Using the embodiment of the present invention, at least can
It is enough that the automatic and accurate judgement that operation whether is continued to application reached while saving electricity, user experience is promoted, is dashed forward
The functional diversity of aobvious electronic equipment.
Detailed description of the invention
Fig. 1 is the realization of the first embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing
Flow diagram;
Fig. 2 is the realization of the second embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing
Flow diagram;
Fig. 3 (a), (b) are an application scenarios schematic diagram provided by the invention;
Fig. 4 is the composed structure schematic diagram of the first embodiment of electronic equipment provided by the invention;
Fig. 5 is the composed structure schematic diagram of the second embodiment of electronic equipment provided by the invention.
Specific embodiment
Below in conjunction with attached drawing to a preferred embodiment of the present invention will be described in detail, it should be understood that described below is excellent
Select embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
It is each in the method for maintaining application to work normally in economize on electricity processing and electronic equipment that following present invention provides
In embodiment, related electronic equipment can be with are as follows: the various types such as industrial control computer, personal computer computer, one
Body formula computer, tablet computer, mobile phone, electronic reader etc., can also be wearable for smart glasses, smart watches, intelligent shoe etc.
Equipment.Currently preferred electronic equipment is mobile phone.
The first embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing, is applied to an electricity
In sub- equipment, which runs various application programs by the operating system such as Android android system of installation and such as flows matchmaker
The application of body output class, social category are using the application of such as wechat, office class application lantern slide ppt.Wherein, Streaming Media output class application
It applies including at least music class such as QQ music, KuGoo music and/or video playback class application etc..
Fig. 1 is the realization of the first embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing
Flow diagram;As shown in Figure 1, which comprises
Step 101: obtaining the triggering command for saving electric quantity for electronic equipment;
Here, the main body for executing step 101 is electronic equipment.The triggering command is used to indicate electronic equipment and executes current
Journey.The triggering command can be automatically generated when detecting that electronic equipment operation has at least two application programs;It can also be with base
In user operation and generate.For example, find that currently running application program is more when user opens multiple application programs,
It needs that certain applications program is maintained to continue to run certain applications stop, user is to the predetermined touching in predetermined key or display screen
Control area or predetermined icon pressed, touch-control, click (click, double-click and repeatedly click), the predetermined operations such as sliding, when electronics is set
For when detecting predetermined operation, the triggering command is generated.The key that the predetermined key can carry for electronic equipment itself is such as
Switching on and shutting down key or volume adjustment button are also possible to the specific keys being arranged for electronic equipment.The Touch Zone can be aobvious
Some region in display screen.The predetermined icon can be the pre-set figure that economize on electricity process is carried out for controlling electronic devices
Mark.
Step 102: responding the triggering command based on scheduled power-saving strategies and currently run shape for the electronic equipment
M application program of state is handled, to reduce the Save power consumption electricity of the electronic equipment;Wherein, the predetermined economize on electricity plan
Slightly when application program is when Streaming Media output class is applied to determine whether that the Streaming Media is maintained to export based at least two parameters
Class application.
Here, the main body for executing step 102 is electronic equipment.After electronic equipment obtains the triggering command, response should
Triggering command is handled M application program of current electronic device operation to reduce power loss saving electricity, for working as
Streaming Media output class application in M application program of preceding electronic equipment operation, at least two based on the application of Streaming Media output class
A parameter determines whether to maintain continuing to run for this kind of application.Wherein, M is the positive integer more than or equal to 1.The Streaming Media output
Class, which is applied, includes at least the application of music class and/or video playback class application etc..Currently running M application program includes electricity
Sub- equipment foreground, running background all application programs.
In aforementioned schemes, after electronic equipment gets the triggering command for saving electricity, the triggering command is responded, it is right
Currently running M application program is handled to reduce power loss and save electricity, for the Streaming Media in M application program
Output class application, at least two parameters based on the application of Streaming Media output class determine whether to maintain continuing to run for this kind of application.
By handling M application program based on predetermined policy, achieve the purpose that save electric quantity for electronic equipment.Together
When, for Streaming Media output class application, whether continued to by reaching to be accurately judged to apply according to its at least two parameter
The purpose of operation, and the judgement that operation whether is continued to application is realized automatically, user experience is promoted, electronic equipment is highlighted
Functional diversity.
The second embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing, is applied to an electricity
In sub- equipment, which runs various application programs by the operating system such as Android android system of installation and such as flows matchmaker
The application of body output class, social category are using the application of such as wechat, office class application lantern slide ppt.Wherein, Streaming Media output class application
It applies including at least music class such as QQ music, KuGoo music and/or video playback class application etc..
Fig. 2 is the realization of the second embodiment of the method provided by the invention for maintaining application to work normally in economize on electricity processing
Flow diagram;As shown in Figure 2, which comprises
Step 201: obtaining the triggering command for saving electric quantity for electronic equipment;
Here, the main body for executing step 201 is electronic equipment.The triggering command is used to indicate electronic equipment and executes current
Journey.The triggering command can be automatically generated when detecting that electronic equipment operation has at least two application programs;It can also be with base
In user operation and generate.For example, find that currently running application program is more when user opens multiple application programs,
It needs that certain applications program is maintained to continue to run certain applications stop, user is to the predetermined touching in predetermined key or display screen
Control area or predetermined icon pressed, touch-control, click (click, double-click and repeatedly click), the predetermined operations such as sliding, when electronics is set
For when detecting predetermined operation, the triggering command is generated.The key that the predetermined key can carry for electronic equipment itself is such as
Switching on and shutting down key or volume adjustment button are also possible to the specific keys being arranged for electronic equipment.The Touch Zone can be aobvious
Some region in display screen.The predetermined icon can be the pre-set figure that economize on electricity process is carried out for controlling electronic devices
Mark.
Step 202: the triggering command is responded, the first attribute of each application program in the M application program is obtained,
First attribute characterization is the type of application program;
Here, the main body for executing step 202 is electronic equipment.Electronic equipment reads each application program that system is run
Type.Currently running M application program includes all application programs on electronic equipment foreground, running background.
Step 203: in M application program, determining that application type is the application program of Streaming Media output class, obtain mesh
Mark application;
Here, the main body for executing step 203 is electronic equipment.In currently running M application program, application is extracted
Program Type is the application program of Streaming Media output type, regards the application of Streaming Media output type as target application.
Step 204: at least obtaining the first parameter, the second parameter of target application;
Here, the main body for executing step 204 is electronic equipment.First parameter characterization is whether target application is output
State, target application exports the first data under output state, and second parameter characterization is the active degree of target application.Mesh
Mark application is that at least two parameter of Streaming Media output class application is obtained from the electronic equipment.Target application fortune
In capable process, whether the system of electronic equipment such as android system active degree to each target application and its can be in
Output state is monitored.
Step 205: the first parameter, the second parameter according to target application, it is determined whether maintain the target application.
Here, the main body for executing step 205 is electronic equipment.Electronic equipment is being read for whether characterizing target application
After the second parameter in the first parameter for output state and the active degree for characterizing target application operation, according to this
Two parameters, it is determined whether continue to the operation of target application.
Further, the first parameter, second parameter according to target application, it is determined whether the target is maintained to answer
With, comprising:
Judge whether the first parameter is located in the first preset range;Judge whether the second parameter is located at the second preset range
It is interior;When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, described in control
Target application maintains the output of the first data;Wherein, it is output shape that the first parameter, which is located at target application when in the first preset range,
State, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.Wherein, judge the first ginseng
Number whether be located at the first preset range in be exactly judge target application currently whether be have data export state such as music
Whether class application plays music, judges that the first parameter is located in the first preset range and just illustrates that current goal is applied as data output
Otherwise state is confirmed as not as data output state.There are data output, numerical value " 0 " when indicating to apply with numerical value " 1 " or " true "
Or " false " indicate using no data output when, the first preset range be numerical value " 1 " or " true ", vice versa.In addition, this
In scheme, judge whether the value of the first parameter is less than or equal in 300 (in the second preset ranges), when being judged as YES, illustrates mesh
The operation of mark application has reached certain active degree.Certainly, the second preset range can also be taken as any being less than or equal to 300
Integer.
In above scheme, for the wherein at least one parameter of at least two parameter, determine that Streaming Media output class is answered
Runlevel information in M application program, in the first corresponding relationship, determination is corresponding with the runlevel information
At least one described parameter, the first corresponding relationship be it is preset, record have using between runlevel and parameter value
Corresponding relationship.For for characterizing the second parameter using the active degree of operation, in the process of M application program operation
In, there are certain runlevels, such as music class to apply the runlevel highest such as QQ music application, PPT application
Runlevel is not high, then have in the first corresponding relationship between runlevel and the second parameter value in record, read with
Corresponding second parameter of the runlevel of target application such as QQ music application.The higher application of runlevel is provided in this programme,
Its second parameter value is smaller, i.e. the smaller application of the second parameter value runs more active.
In embodiments of the present invention, for be in M application program non-Streaming Media output type application, can be to it
It is closed, to achieve the purpose that reduce powder consumption of electronic equipment, save electricity.Application for Streaming Media output type, foundation
At least two parameters of the application decide whether to continue to run.Reach quasi- by least two parameters according to target application
Really judge the purpose for whether continuing to operation applied, and the judgement for whether continuing to operation to application realized automatically,
User experience is promoted, the functional diversity of electronic equipment is highlighted.
This programme is described further below with reference to Fig. 3 (a), (b).
It is assumed that in Fig. 3 (a), the Android system of mobile phone currently run M=4 application i.e. using 1~apply 4, be respectively
QQ music application, PPT application, browser application and calculator application;Wherein, QQ music application is the application of Streaming Media output class,
Other three belong to non-Streaming Media output class application.
When mobile phone detects that the quantity of current operation application is more than or equal to 2, the triggering for saving mobile phone electricity is generated
Instruction, mobile phone respond the triggering command, and the application type of each application is first read from the application process of each operation application, is obtained
To type parameter App Type, and type parameter App Type=A application is filtered out, depending on answering for type parameter App Type=A
With for Streaming Media output class application.Meanwhile confirming that the application of type parameter App Type ≠ A is non-Streaming Media output class application,
And control these non-Streaming Media output class applications and closed, to achieve the purpose that reduce power consumption, save electricity.For from M
The Streaming Media output class application filtered out in operation application, the further system by mobile phone judge current Streaming Media output
Class application is whether QQ music application is in music state, i.e. current system music state isMusicActive (the
One parameter) whether it is equal to true (the first preset range), if being not equal to true, then it is assumed that current QQ music application, which is not at, to be broadcast
State is put, process terminates.If being equal to true, then it is assumed that current QQ music application is in broadcast state, then reads system again
Runlevel information obtained from being monitored to QQ music application, it is assumed that it is highest runlevel, then from first pair
In should being related to, corresponding with the highest runlevel the second parameter is searched, in the present embodiment, it is assumed that the second parameter is 100, and is sentenced
Whether disconnected second parameter is less than or equal to 300, when being judged as YES, illustrates that the operation of QQ music application has reached expected and enlivened journey
Degree, does not need to be closed, needs to continue to the normal operation of QQ music application.As shown in Fig. 3 (b), mobile phone to originally at
After 4 application programs of operating status carry out the processing of predetermined policy, retains QQ music application and continue to run, it is right
Other 3 applications are closed, and the mesh closed unnecessary application, necessary application is maintained to continue to run so just is realized
, powder consumption of electronic equipment waste can be reduced, electricity is saved.Meanwhile for Streaming Media output class application, by according to it at least
Two parameters achieve the purpose that automatic and are accurately judged to promote user experience using whether operation is continued to, highlight electronics
The functional diversity of equipment.
The first embodiment of electronic equipment provided by the invention, the operating system such as Android which passes through installation
Android system runs various the application programs such as application of Streaming Media output class, social category and applies such as wechat application, office class application
Such as lantern slide ppt.Wherein, Streaming Media output class, which is applied, applies such as QQ music, KuGoo music including at least music class,
And/or video playback class application etc..
Fig. 4 is the composed structure schematic diagram of the first embodiment of electronic equipment provided by the invention;As shown in figure 4, described
Electronic equipment includes: detector 41, processor 42;Wherein,
Detector 41, for obtaining the triggering command for saving electric quantity for electronic equipment;
The triggering command is used to indicate electronic equipment and executes economize on electricity process.The triggering command can be detected in detector 41
Electronic equipment operation has when at least two application programs and automatically generates;The predetermined behaviour of user can also be detected in detector 41
Make and generates.For example, finding that currently running application program is more when user opens multiple application programs, needing to maintain portion
Point application program continues to run certain applications stop, and user is to predetermined touch area in predetermined key or display screen or predetermined
The predetermined operations such as icon pressed, touch-control, click (click, double-click and repeatedly click), sliding, when detector 41 detects this
When predetermined operation, the triggering command is generated.The key such as switching on and shutting down that the predetermined key can carry for electronic equipment itself are pressed
Key or volume adjustment button are also possible to the specific keys being arranged for electronic equipment.The Touch Zone can be on display screen
Some region.The predetermined icon can be the pre-set icon that economize on electricity process is carried out for controlling electronic devices.
Processor 42, for responding the triggering command M based on scheduled power-saving strategies for current operating conditions
Application program is handled, and to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;Wherein,
The predetermined power-saving strategies are to determine whether to maintain based at least two parameters when application program is the application of Streaming Media output class
The Streaming Media output class application.
In electronic equipment, be specifically after detector 41 obtains the triggering command, processor 42 responds the triggering command, right
Currently running M application program is handled to reduce power loss and save electricity, for currently running M application program
In Streaming Media output class application, based on Streaming Media output class application at least two parameters determine whether to maintain this kind of application
It continues to run.Wherein, M is the positive integer more than or equal to 1.The Streaming Media output class, which is applied, includes at least the application of music class
And/or video playback class application etc..Currently running M application program include electronic equipment foreground, running background it is all
Application program.
In aforementioned schemes, after electronic equipment gets the triggering command for saving electricity, the triggering command is responded, it is right
Currently running M application program is handled to reduce power loss and save electricity, for the Streaming Media in M application program
Output class application, at least two parameters based on the application of Streaming Media output class determine whether to maintain continuing to run for this kind of application.
By handling M application program based on predetermined policy, achieve the purpose that save electric quantity for electronic equipment.Together
When, for Streaming Media output class application, whether continued to by reaching to be accurately judged to apply according to its at least two parameter
The purpose of operation, and the judgement that operation whether is continued to application is realized automatically, user experience is promoted, electronic equipment is highlighted
Functional diversity.
The second embodiment of electronic equipment provided by the invention, the operating system such as Android which passes through installation
Android system runs various the application programs such as application of Streaming Media output class, social category and applies such as wechat application, office class application
Such as lantern slide ppt.Wherein, Streaming Media output class, which is applied, applies such as QQ music, KuGoo music including at least music class,
And/or video playback class application etc..
Fig. 5 is the composed structure schematic diagram of the second embodiment of electronic equipment provided by the invention;As shown in figure 5, described
Electronic equipment includes: detector 51, processor 52;Wherein,
Detector 51, for obtaining the triggering command for saving electric quantity for electronic equipment;
The triggering command is used to indicate electronic equipment and executes economize on electricity process.The triggering command can be detected in detector 41
Electronic equipment operation has when at least two application programs and automatically generates;The predetermined behaviour of user can also be detected in detector 51
Make and generates.For example, finding that currently running application program is more when user opens multiple application programs, needing to maintain portion
Point application program continues to run certain applications stop, and user is to predetermined touch area in predetermined key or display screen or predetermined
The predetermined operations such as icon pressed, touch-control, click (click, double-click and repeatedly click), sliding, when detector 51 detects this
When predetermined operation, the triggering command is generated.The key such as switching on and shutting down that the predetermined key can carry for electronic equipment itself are pressed
Key or volume adjustment button are also possible to the specific keys being arranged for electronic equipment.The Touch Zone can be on display screen
Some region.The predetermined icon can be the pre-set icon that economize on electricity process is carried out for controlling electronic devices.
Processor 52 obtains first of each application program in the M application program for responding the triggering command
Attribute, first attribute characterization is the type of application program, in M application program, determines that application type is Streaming Media
The application program of output class obtains target application, at least obtains the first parameter, the second parameter of target application, answers according to target
First parameter, the second parameter, it is determined whether maintain the target application.
The type for each application program that electronic equipment, specifically 52 reading system of processor are run.It is run currently
M application program in, processor 52 extract Application Type be Streaming Media output type application program, depending on Streaming Media
The application of output type is target application.First parameter characterization is whether target application is output state, in output state
Lower target application exports the first data, and second parameter characterization is the active degree of target application.Target application, that is, Streaming Media
At least two parameter of output class application is what processor 52 was obtained from the system of electronic equipment.It is run in target application
During, the system of electronic equipment such as android system can active degree to each target application and its whether in defeated
It does well and is monitored.Electronic equipment is specifically that processor 52 is being read for characterizing whether target application is in as output
After first parameter of state and the second parameter of the active degree for characterizing target application operation, according to the two parameters,
Determine whether to continue to the operation of target application.Currently running M application program includes electronic equipment foreground, running background
All application programs.
Further, first parameter, second parameter of the processor 52 according to target application, it is determined whether described in maintenance
Target application, can be with are as follows:
Judge whether the first parameter is located in the first preset range;Judge whether the second parameter is located at the second preset range
It is interior;When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, described in control
Target application maintains the output of the first data;Wherein, it is output shape that the first parameter, which is located at target application when in the first preset range,
State, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.Wherein, processor 52 is sentenced
Disconnected first parameter whether be located in the first preset range be exactly judge target application currently whether be there are data to export state such as
Whether the application of music class plays music, judges that the first parameter is located at and just illustrates that current goal is applied in the first preset range and be
Otherwise data output state is confirmed as not as data output state.There are data defeated when indicating to apply with numerical value " 1 " or " true "
Out, when numerical value " 0 " or " false " are indicated using no data output, the first preset range is numerical value " 1 " or " true ", otherwise also
It can.In addition, in the present solution, processor 52 judges whether the value of the first parameter is less than or equal in 300 (in the second preset ranges),
When being judged as YES, illustrate that the operation of target application has reached certain active degree.Certainly, the second preset range can also be taken as
It is any be less than or equal to 300 integer.
In above scheme, for the wherein at least one parameter of at least two parameter, determine that Streaming Media output class is answered
Runlevel information in M application program, in the first corresponding relationship, determination is corresponding with the runlevel information
At least one described parameter, the first corresponding relationship be it is preset, record have using between runlevel and parameter value
Corresponding relationship.For for characterizing the second parameter using the active degree of operation, in the process of M application program operation
In, there are certain runlevels, such as music class to apply the runlevel highest such as QQ music application, PPT application
Runlevel is not high, then have in the first corresponding relationship between runlevel and the second parameter value in record, read with
Corresponding second parameter of the runlevel of target application such as QQ music application.The higher application of runlevel is provided in this programme,
Its second parameter value is smaller, i.e. the smaller application of the second parameter value runs more active.
In embodiments of the present invention, for be in M application program non-Streaming Media output type application, processor 52
It controls it to be closed, to achieve the purpose that reduce powder consumption of electronic equipment, save electricity.For answering for Streaming Media output type
With processor 52 decides whether to continue to run according at least two parameters of the application.Extremely by foundation target application
Few two parameters achieve the purpose that be accurately judged to apply whether continue to operation, and are realized automatically to whether application continues
The judgement of operation is maintained, user experience is promoted, highlights the functional diversity of electronic equipment.
This programme is described further below with reference to Fig. 3 (a), (b).
It is assumed that in Fig. 3 (a), the Android system of mobile phone currently run M=4 application i.e. using 1~apply 4, be respectively
QQ music application, PPT application, browser application and calculator application;Wherein, QQ music application is the application of Streaming Media output class,
Other three belong to non-Streaming Media output class application.
When mobile phone, specifically detector detect that the quantity of current operation application is more than or equal to 2, generation is for saving hand
The triggering command of electromechanics amount, mobile phone are specifically the processor response triggering command, first from the application process of each operation application
The application type for reading each application obtains type parameter App Type, and filters out type parameter App Type=A application,
The application of type parameter App Type=A is regarded as Streaming Media output class application.Meanwhile confirming type parameter App Type ≠ A's
Using for non-Streaming Media output class application, and control these non-Streaming Media output class applications and closed, with reach reduce power consumption,
Save the purpose of electricity.For the Streaming Media output class application filtered out from M operation application, further processor passes through
The system of mobile phone judges that current Streaming Media output class application is whether QQ music application is in music state, i.e., current system
Music state isMusicActive (the first parameter) is united whether equal to true (the first preset range), if be not equal to
True, then it is assumed that current QQ music application is not at broadcast state, and process terminates.If being equal to true, then it is assumed that current QQ sound
Happy application is in broadcast state, and then processor reads runlevel obtained from system is monitored QQ music application again
Information, it is assumed that it is highest runlevel, then searching and the highest runlevel corresponding second from the first corresponding relationship
Parameter, in the present embodiment, it is assumed that the second parameter is 100, and judges whether the second parameter is less than or equal to 300, when being judged as YES, is said
The operation of bright QQ music application has reached expected active degree, does not need to be closed, and needs to continue to QQ music application
Normal operation.As shown in Fig. 3 (b), mobile phone carries out the processing of predetermined policy to 4 application programs originally in operating status
Later, it retains QQ music application to continue to run, other 3 applications be closed, so just realizing will be unnecessary
Using the purpose closed, necessary application is maintained to continue to run, powder consumption of electronic equipment waste can be reduced, electricity is saved.Together
When, for Streaming Media output class application, by reach automatic according to its at least two parameter and be accurately judged to using whether after
The continuous purpose for maintaining operation, promotes user experience, highlights the functional diversity of electronic equipment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of method for maintaining application to work normally in economize on electricity processing, which comprises
Obtain the triggering command for saving electric quantity for electronic equipment;
It is a using journey for the M of the electronic equipment current operating conditions based on scheduled power-saving strategies to respond the triggering command
Sequence is handled, and to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;
Wherein, the predetermined power-saving strategies are to work as to determine that application program is Streaming Media output class application according to the type of application program
When, determine whether to maintain the Streaming Media output class application based at least two parameters;
At least two parameter at least characterizes the output state and active degree of the Streaming Media output class application.
2. the method according to claim 1, wherein at least two ginseng of Streaming Media output class application
Number is obtained from the electronic equipment.
3. the method according to claim 1, wherein the response triggering command is based on scheduled economize on electricity plan
Slightly handled for M application program of the electronic equipment current operating conditions, comprising:
The first attribute of each application program in the M application program is obtained, first attribute characterization is application program
Type;
In M application program, determines that application type is the application program of Streaming Media output class, obtain target application;
At least obtain the first parameter, the second parameter of target application;
The first parameter, the second parameter according to target application, it is determined whether maintain the target application.
4. according to the method described in claim 3, it is characterized in that,
First parameter characterization is whether target application is output state, the first number of target application output under output state
According to second parameter characterization is the active degree of target application operation;
Judge whether the first parameter is located in the first preset range;
Judge whether the second parameter is located in the second preset range;
When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, described in control
Target application maintains the output of the first data;Wherein, it is output shape that the first parameter, which is located at target application when in the first preset range,
State, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.
5. the method according to claim 1, wherein the wherein at least one at least two parameter is joined
Number,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relationship, at least one described parameter corresponding with the runlevel information is determined;
First corresponding relationship be it is preset, record have using the corresponding relationship between runlevel and parameter value.
6. a kind of electronic equipment, the electronic equipment include:
Detector, for obtaining the triggering command for saving electric quantity for electronic equipment;
Processor, it is a using journey for the M of current operating conditions based on scheduled power-saving strategies for responding the triggering command
Sequence is handled, and to reduce the Save power consumption electricity of the electronic equipment, M is the positive integer more than or equal to 1;
Wherein, the predetermined power-saving strategies are to work as to determine that application program is Streaming Media output class application according to the type of application program
When, determine whether to maintain the Streaming Media output class application based at least two parameters;
At least two parameter at least characterizes the output state and active degree of the Streaming Media output class application.
7. electronic equipment according to claim 6, which is characterized in that described at least the two of the Streaming Media output class application
A parameter processor is obtained from the electronic equipment.
8. electronic equipment according to claim 6, which is characterized in that the processor is also used to:
The first attribute of each application program in the M application program is obtained, first attribute characterization is application program
Type;
In M application program, determines that application type is the application program of Streaming Media output class, obtain target application;
At least obtain the first parameter, the second parameter of target application;
The first parameter, the second parameter according to target application, it is determined whether maintain the target application.
9. electronic equipment according to claim 8, which is characterized in that
First parameter characterization is whether target application is output state, the first number of target application output under output state
According to second parameter characterization is the active degree of target application operation;
The processor, is also used to:
Judge whether the first parameter is located in the first preset range;
Judge whether the second parameter is located in the second preset range;
When being judged as that the first parameter is located in the first preset range and the second parameter is located in the second preset range, described in control
Target application maintains the output of the first data;Wherein, it is output shape that the first parameter, which is located at target application when in the first preset range,
State, the operation of target application reaches predetermined active degree when the second parameter is located in the second preset range.
10. electronic equipment according to claim 6, which is characterized in that the processor is also used to:
For the wherein at least one parameter of at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relationship, at least one described parameter corresponding with the runlevel information is determined;
First corresponding relationship be it is preset, record have using the corresponding relationship between runlevel and parameter value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610145120.XA CN105843357B (en) | 2016-03-14 | 2016-03-14 | The method and electronic equipment for maintaining application to work normally in economize on electricity processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610145120.XA CN105843357B (en) | 2016-03-14 | 2016-03-14 | The method and electronic equipment for maintaining application to work normally in economize on electricity processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105843357A CN105843357A (en) | 2016-08-10 |
CN105843357B true CN105843357B (en) | 2019-05-31 |
Family
ID=56587076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610145120.XA Active CN105843357B (en) | 2016-03-14 | 2016-03-14 | The method and electronic equipment for maintaining application to work normally in economize on electricity processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843357B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107066288B (en) * | 2017-01-17 | 2020-06-26 | 北京光年无限科技有限公司 | Multi-mode interaction method and device for intelligent robot |
WO2018170819A1 (en) * | 2017-03-23 | 2018-09-27 | 李卓希 | Method and system for controlling power consumption of mobile terminal |
CN109765986A (en) * | 2019-01-28 | 2019-05-17 | 上海与德通讯技术有限公司 | Power-saving control method, terminal device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002236530A (en) * | 2000-12-11 | 2002-08-23 | Visteon Global Technologies Inc | Electric power management fault countermeasure method for automobile multimedia system |
CN104486510A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal |
CN105094284A (en) * | 2015-07-31 | 2015-11-25 | 北京金山安全软件有限公司 | Power-saving processing method and device for application program |
-
2016
- 2016-03-14 CN CN201610145120.XA patent/CN105843357B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002236530A (en) * | 2000-12-11 | 2002-08-23 | Visteon Global Technologies Inc | Electric power management fault countermeasure method for automobile multimedia system |
CN104486510A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal |
CN105094284A (en) * | 2015-07-31 | 2015-11-25 | 北京金山安全软件有限公司 | Power-saving processing method and device for application program |
Also Published As
Publication number | Publication date |
---|---|
CN105843357A (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503689B (en) | Application interface display methods and device | |
CN105511631B (en) | Gesture identification method and device | |
CN106507445B (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
CN103002148B (en) | Music switching method based on mobile terminal in dormacy and mobile terminal | |
CN106775053B (en) | The determination method and device of sensitivity of touch screen | |
CN106814639A (en) | Speech control system and method | |
CN103324518B (en) | A kind of operation mapping method and device | |
CN105279417A (en) | Application starting control method and user terminal | |
CN105843357B (en) | The method and electronic equipment for maintaining application to work normally in economize on electricity processing | |
CN104050035A (en) | Processing method and device for application program | |
CN104598134A (en) | Fingerprint operating method and system for mobile terminal | |
CN103853309B (en) | A kind of method controlling electronic equipment and electronic equipment | |
CN103513869A (en) | Method and device for displaying terminal lock screen interface and Widget | |
CN104598151A (en) | Recognition method and recognition device for blank screen gestures | |
CN104575537A (en) | Music switching method and user equipment | |
CN105468247A (en) | Working mode switching method and mobile terminal | |
CN104866226A (en) | Terminal device and method for controlling same | |
CN103888605A (en) | Information processing method and electronic device | |
CN105045519B (en) | The screen control method and user terminal of a kind of user terminal | |
CN103259929B (en) | Method and device for controlling playing of multi-media file | |
CN104238794A (en) | Method and terminal for responding to touch screen operation, and mobile terminal | |
CN106126090B (en) | The control method and electronic equipment of a kind of electronic equipment | |
CN104238853B (en) | Message method and device | |
CN103135934A (en) | Touch-screen mobile device and method and device for switching application program quickly | |
CN106155870B (en) | Terminal optimization processing 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 |