CN105843357A - Method of maintaining normal application operation in power-saving management and electronic equipment - Google Patents

Method of maintaining normal application operation in power-saving management and electronic equipment Download PDF

Info

Publication number
CN105843357A
CN105843357A CN201610145120.XA CN201610145120A CN105843357A CN 105843357 A CN105843357 A CN 105843357A CN 201610145120 A CN201610145120 A CN 201610145120A CN 105843357 A CN105843357 A CN 105843357A
Authority
CN
China
Prior art keywords
application
parameter
electronic equipment
application program
streaming media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610145120.XA
Other languages
Chinese (zh)
Other versions
CN105843357B (en
Inventor
刘俊峰
张钦波
陈亨
翟富强
王亮亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610145120.XA priority Critical patent/CN105843357B/en
Publication of CN105843357A publication Critical patent/CN105843357A/en
Application granted granted Critical
Publication of CN105843357B publication Critical patent/CN105843357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Abstract

The invention discloses a method of maintaining normal application operation in power-saving management and electronic equipment. The method includes the steps of acquiring a triggering instruction for saving the power consumption of the electronic equipment; managing M application programs of the electronic equipment in the current operation state by responding to the triggering instruction on the basis of a predetermined power-saving strategy in order to reduce the power consumption of the electronic equipment and save the power, wherein M is a positive integer which is equal to or greater than 1, and the predetermined power-saving strategy determines whether the streaming media output type application is maintained on the basis of at least two parameters when the application program is a streaming media output type application. The power is saved, and at the same time, the automatic and accurate judgment about whether the application operation needs to be maintained continuously is realized.

Description

Method and the electronic equipment of the normal work of application is maintained in economize on electricity processes
Technical field
The present invention relates to the treatment technology that economizes on electricity, be specifically related to a kind of maintenance in economize on electricity processes and apply normal work Method and electronic equipment.
Background technology
The electronic equipment such as mobile phone, panel computer can pass through installed operating system such as Android android system Run various application software such as music class application such as QQ music, social class application such as wechat is applied, Figure class is applied such as Baidu's map etc..Generally, for reaching the saving to electric quantity for electronic equipment, can be to Android In system, the application of unnecessary operation is closed.Specifically can use following two mode: 1) by artificial behaviour The application of unnecessary operation of opposing carries out manual-lock;2) when entering under screen lock state, electronic equipment can be by institute The whole application run carry out positive closing.Wherein, first kind of way needs artificial participation, not intelligence; Although the second way can reach to save the purpose of electricity, carry out closing by the application of unnecessary operation Also the application of unnecessary closedown is closed simultaneously, such as, will be carried out the QQ music of music Application has been also carried out closing, and user wants to carry out listening to of music, reduces the body of user beyond doubt Test.
Summary of the invention
For solving the technical problem of existing existence, the embodiment of the present invention provides one to maintain in economize on electricity processes should With method and the electronic equipment of normal work, at least can reach whether application continues while saving electricity Continuous automatically and accurately the judging of operation that maintain, lifting Consumer's Experience, highlight the functional diversity of electronic equipment.
The technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of method maintaining the normal work of application in economize on electricity processes, described method Including:
Obtain the triggering command for saving electric quantity for electronic equipment;
Respond described triggering command based on predetermined power-saving strategies for described electronic equipment current operating conditions M application program processes, and to reduce the power consumption saving electricity of described electronic equipment, M is for being more than or equal to The positive integer of 1;
Wherein, described predetermined power-saving strategies is based at least two when application program is the application of Streaming Media output class Whether individual parameter determination maintains described Streaming Media output class to apply.
In such scheme, the described at least two parameter of described Streaming Media output class application is for set from described electronics Standby upper acquisition.
In such scheme, the described triggering command of described response sets for described electronics based on predetermined power-saving strategies M application program of standby current operating conditions processes, including:
Obtaining the first attribute of each application program in described M application program, described first attribute characterization is The type of application program;
In M application program, determine the application program that application type is Streaming Media output class, obtain mesh Mark application;
At least obtain the first parameter of intended application, the second parameter;
According to the first parameter of intended application, the second parameter, it is determined whether maintain described intended application.
In such scheme,
Described first parameter characterization is whether intended application is output state, and under output state, intended application is defeated Going out the first data, described second parameter characterization is the active degree that intended application is run;
Judge whether the first parameter is positioned at the first preset range;
Judge whether the second parameter is positioned at the second preset range;
When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time, control described intended application and maintain the output of the first data;Wherein, the first parameter is positioned at the first predetermined model When enclosing interior, intended application is output state, the operation of intended application when the second parameter is positioned at the second preset range Reach predetermined active degree.
In such scheme, at least one of which parameter of described at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relation, determine corresponding with described runlevel information described at least one parameter;
First corresponding relation is set in advance, record have application runlevel and parameter value between corresponding Relation.
The embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes:
Detector, for obtaining the triggering command for saving electric quantity for electronic equipment;
Processor, for responding described triggering command based on predetermined power-saving strategies for current operating conditions M application program processes, and to reduce the power consumption saving electricity of described electronic equipment, M is for being more than or equal to The positive integer of 1;
Wherein, described predetermined power-saving strategies is based at least two when application program is the application of Streaming Media output class Whether individual parameter determination maintains described Streaming Media output class to apply.
In such scheme, the described at least two parameter of described Streaming Media output class application be described processor from Obtain on described electronic equipment.
In such scheme, described processor, it is additionally operable to:
Obtaining the first attribute of each application program in described M application program, described first attribute characterization is The type of application program;
In M application program, determine the application program that application type is Streaming Media output class, obtain mesh Mark application;
At least obtain the first parameter of intended application, the second parameter;
According to the first parameter of intended application, the second parameter, it is determined whether maintain described intended application.
In such scheme,
Described first parameter characterization is whether intended application is output state, and under output state, intended application is defeated Going out the first data, described second parameter characterization is the active degree that intended application is run;
Described processor, is additionally operable to:
Judge whether the first parameter is positioned at the first preset range;
Judge whether the second parameter is positioned at the second preset range;
When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time, control described intended application and maintain the output of the first data;Wherein, the first parameter is positioned at the first predetermined model When enclosing interior, intended application is output state, the operation of intended application when the second parameter is positioned at the second preset range Reach predetermined active degree.
In such scheme, described processor, it is additionally operable to:
For at least one of which parameter of described at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relation, determine corresponding with described runlevel information described at least one parameter;
First corresponding relation is set in advance, record have application runlevel and parameter value between corresponding Relation.
What the embodiment of the present invention provided maintains method and the electronic equipment of the normal work of application in economize on electricity processes, Described method includes: obtain the triggering command for saving electric quantity for electronic equipment;Respond described triggering command base Process for M application program of described electronic equipment current operating conditions in predetermined power-saving strategies, To reduce the power consumption saving electricity of described electronic equipment, M is the positive integer more than or equal to 1;Wherein, described Predetermined power-saving strategies for when application program is the application of Streaming Media output class based at least two parameter determination whether Described Streaming Media output class is maintained to apply.Utilize the embodiment of the present invention, at least can be while saving electricity Reach whether application continues to automatically and accurately judging of operation, promote Consumer's Experience, highlight electronics and set Standby functional diversity.
Accompanying drawing explanation
The first embodiment of the method maintaining the normal work of application in economize on electricity processes that Fig. 1 provides for the present invention Realize schematic flow sheet;
Second embodiment of the method maintaining the normal work of application in economize on electricity processes that Fig. 2 provides for the present invention Realize schematic flow sheet;
The application scenarios schematic diagram that Fig. 3 (a), (b) provide for the present invention;
The composition structural representation of the first embodiment of the electronic equipment that Fig. 4 provides for the present invention;
The composition structural representation of the second embodiment of the electronic equipment that Fig. 5 provides for the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, it will be appreciated that described below Bright preferred embodiment is merely to illustrate and explains the present invention, is not intended to limit the present invention.
Maintain in economize on electricity processes in method and the electronic equipment of applying normal work what present invention below provided Each embodiment in, involved electronic equipment can be: industrial control computer, personal computer etc. are each Type computer, integral computer, panel computer, mobile phone, electronic reader etc., it is also possible to for intelligence The Wearable such as glasses, intelligent watch, intelligent shoe.Currently preferred electronic equipment is mobile phone.
What the present invention provided maintains the first embodiment of the method for the normal work of application, application in economize on electricity processes In an electronic equipment, this electronic equipment runs each by the operating system such as Android android system installed Plant the application of application program such as Streaming Media output class, social class application such as wechat application, class application lantern slide of handling official business Ppt etc..Wherein, the application of Streaming Media output class at least includes that music class is applied such as QQ music, KuGoo sound Happy, and/or video playback class application etc..
The first embodiment of the method maintaining the normal work of application in economize on electricity processes that Fig. 1 provides for the present invention Realize schematic flow sheet;As it is shown in figure 1, described method includes:
Step 101: obtain the triggering command for saving electric quantity for electronic equipment;
Here, the main body performing step 101 is electronic equipment.This triggering command is used for indicating electronic equipment to hold Row economize on electricity flow process.When this triggering command can have at least two application program electronic equipment operation being detected Automatically generate;Can also operation based on user and generate.Such as, when user opens multiple application program, Find that the current application program run is more, need to maintain certain applications program to continue to run with certain applications program Close, the predetermined touch district in predetermined key or display screen or predetermined icon are pressed by user, touch-control, Click on the scheduled operations such as (click, double-click and repeatedly click on), slip, when electronic equipment detects scheduled operation Time, generate this triggering command.Described predetermined key can be the button such as switching on and shutting down that electronic equipment itself carries Button or volume adjusting button, it is also possible to be the specific keys arranged for electronic equipment.Described Touch Zone is permissible It it is certain region on display screen.Described predetermined icon can be entering for controlling electronic equipment of pre-setting The icon of row economize on electricity flow process.
Step 102: respond described triggering command current for described electronic equipment based on predetermined power-saving strategies M application program of running status processes, to reduce the power consumption saving electricity of described electronic equipment;Its In, described predetermined power-saving strategies is based at least two parameter when application program is the application of Streaming Media output class Determine whether to maintain described Streaming Media output class to apply.
Here, the main body performing step 102 is electronic equipment.After electronic equipment obtains described triggering command, Responding this triggering command, M the application program running current electronic device processes to reduce power and damages Consumption saves electricity, for the Streaming Media output class application in M the application program that current electronic device is run, Whether at least two parameter determination based on the application of Streaming Media output class maintains continuing to run with of this kind of application.Its In, M is the positive integer more than or equal to 1.The application of described Streaming Media output class at least includes that music class should With and/or video playback class application etc..Current M the application program run include electronic equipment foreground, after The all of application program that platform runs.
In aforementioned schemes, when, after the triggering command that electronic equipment gets for saving electricity, responding this triggering Instruction, processes to reduce power attenuation to current M the application program run and saves electricity, for M Streaming Media output class application in individual application program, at least two parameter based on the application of Streaming Media output class is true Determine whether maintain continuing to run with of this kind of application.At based on predetermined policy to M application program Reason, has reached the purpose saving electric quantity for electronic equipment.Apply simultaneously for Streaming Media output class, By reaching to be accurately judged to apply the purpose whether continuing to run, and oneself according to its at least two parameter Move and achieve the judgement that whether application is continued to runs, promote Consumer's Experience, highlight the merit of electronic equipment Can multiformity.
What the present invention provided maintains the second embodiment of the method for the normal work of application, application in economize on electricity processes In an electronic equipment, this electronic equipment runs each by the operating system such as Android android system installed Plant the application of application program such as Streaming Media output class, social class application such as wechat application, class application lantern slide of handling official business Ppt etc..Wherein, the application of Streaming Media output class at least includes that music class is applied such as QQ music, KuGoo sound Happy, and/or video playback class application etc..
Second embodiment of the method maintaining the normal work of application in economize on electricity processes that Fig. 2 provides for the present invention Realize schematic flow sheet;As in figure 2 it is shown, described method includes:
Step 201: obtain the triggering command for saving electric quantity for electronic equipment;
Here, the main body performing step 201 is electronic equipment.This triggering command is used for indicating electronic equipment to hold Row economize on electricity flow process.When this triggering command can have at least two application program electronic equipment operation being detected Automatically generate;Can also operation based on user and generate.Such as, when user opens multiple application program, Find that the current application program run is more, need to maintain certain applications program to continue to run with certain applications program Close, the predetermined touch district in predetermined key or display screen or predetermined icon are pressed by user, touch-control, Click on the scheduled operations such as (click, double-click and repeatedly click on), slip, when electronic equipment detects scheduled operation Time, generate this triggering command.Described predetermined key can be the button such as switching on and shutting down that electronic equipment itself carries Button or volume adjusting button, it is also possible to be the specific keys arranged for electronic equipment.Described Touch Zone is permissible It it is certain region on display screen.Described predetermined icon can be entering for controlling electronic equipment of pre-setting The icon of row economize on electricity flow process.
Step 202: respond described triggering command, obtains each application program in described M application program First attribute, described first attribute characterization is the type of application program;
Here, the main body performing step 202 is electronic equipment.It is each that electronic equipment reading system is run The type of application program.Current M the application program run includes the institute of electronic equipment foreground, running background Some application programs.
Step 203: in M application program, determines the application journey that application type is Streaming Media output class Sequence, obtains intended application;
Here, the main body performing step 203 is electronic equipment.In current M the application program run, Extract the application program that Application Type is Streaming Media output type, depending on the application of Streaming Media output type For intended application.
Step 204: at least obtain the first parameter of intended application, the second parameter;
Here, the main body performing step 204 is electronic equipment.Described first parameter characterization is that intended application is No for output state, under output state, intended application exports the first data, and described second parameter characterization is mesh The active degree of mark application.The described at least two parameter of intended application i.e. Streaming Media output class application is for from institute State acquisition on electronic equipment.During intended application is run, the system of electronic equipment such as Android system System can be to the active degree of each intended application and whether be in output state and be monitored.
Step 205: according to the first parameter of intended application, the second parameter, it is determined whether maintain described target Application.
Here, the main body performing step 205 is electronic equipment.Electronic equipment is reading for characterizing target Whether application is in for the first parameter of output state and for characterizing the of the active degree that intended application is run After two parameters, according to the two parameter, it is determined whether continue to the operation of intended application.
Further, described according to the first parameter of intended application, the second parameter, it is determined whether to remain described Intended application, including:
Judge whether the first parameter is positioned at the first preset range;Judge whether the second parameter is positioned at second and makes a reservation for In the range of;When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time interior, control described intended application and maintain the output of the first data;Wherein, the first parameter be positioned at first make a reservation for In the range of time intended application be output state, the fortune of intended application when the second parameter is positioned at the second preset range Row reaches predetermined active degree.Wherein, it is judged that whether the first parameter is positioned at the first preset range judges exactly The most whether intended application is whether the application of the state having data to export such as music class plays music, it is judged that It is data output state that first parameter is positioned at the just explanation current goal application of the first preset range, otherwise confirms For or not data output state.When representing that application has data output, numerical value " 0 " with numerical value " 1 " or " true " Or " false " represents that when application no data exports, the first preset range is numerical value " 1 " or " true ", otherwise Also may be used.Additionally, in this programme, it is judged that whether the value of the first parameter is less than or equal to 300 (the second predetermined models In enclosing) in, it is judged that during for being, illustrate that the operation of intended application has reached certain active degree.Certainly, Second preset range can also be taken as any be less than or equal to 300 integer.
In such scheme, at least one of which parameter of described at least two parameter, determine that Streaming Media is defeated Go out class and apply the runlevel information in M application program, in the first corresponding relation, determine with described At least one parameter described that runlevel information is corresponding, the first corresponding relation is set in advance, and record has Corresponding relation between application runlevel and parameter value.The active degree of operation is applied for sign As a example by second parameter, during M application program runs, there are certain runlevel, such as sound The happy broadcast message class application runlevel such as QQ music application is the highest, and the runlevel of PPT application is the most high, So having in the first corresponding relation between runlevel and the second parameter value at record, reading should with target By the second parameter as corresponding in the runlevel of QQ music application.This programme specifying, runlevel is the highest Application, its second parameter value is the least, and the i.e. second the least application of parameter value runs the most active.
In embodiments of the present invention, for the application for non-Streaming Media output type in M application program, It can be closed, to reach to reduce powder consumption of electronic equipment, the purpose of saving electricity.For Streaming Media The application of output type, decides whether to continue to run according at least two parameter of this application.By depending on Reach to be accurately judged to apply, according at least two parameter of intended application, the purpose whether continuing to run, and It is automatically obtained the judgement that whether application is continued to runs, has promoted Consumer's Experience, highlight electronic equipment Functional diversity.
Below in conjunction with Fig. 3 (a), (b), this programme is described further.
Assuming that in Fig. 3 (a), the Android system of mobile phone currently runs M=4 application i.e. application 1~application 4, it is QQ music application respectively, PPT application, browser application and calculator application;Wherein, QQ sound Happy application is applied for Streaming Media output class, and other three belong to the application of non-Streaming Media output class.
Mobile phone detects when the current quantity running application is more than or equal to 2, generates and is used for saving mobile phone electricity Triggering command, mobile phone responds this triggering command, first reads each from each application process running application The application type of application, obtains type parameter App Type, and filter out type parameter App Type=A should With, the application regarding type parameter App Type=A is applied as Streaming Media output class.Meanwhile, type ginseng is confirmed Number App Type ≠ A application be non-Streaming Media output class application, and control these non-Streaming Media output classes should With closing, to reach to reduce power consumption, the purpose of saving electricity.Screen for running in application from M By the system of mobile phone, the Streaming Media output class application gone out, further judges that this Streaming Media output class current should Music state, i.e. current system music state whether it is in by i.e. QQ music application Whether isMusicActive (the first parameter) is equal to true (the first preset range), if being not equal to true, Then thinking that current QQ music application is not at broadcast state, flow process terminates.If equal to true, then it is assumed that Current QQ music application is in broadcast state, and the system that reads the most again is through being monitored QQ music application And the runlevel information obtained, it is assumed that it is the highest runlevel, then from the first corresponding relation, looks into Look for second parameter corresponding with this highest runlevel, in the present embodiment, it is assumed that the second parameter is 100, and Judge that whether the second parameter is less than or equal to 300, it is judged that during for being, illustrate that the operation of QQ music application reaches Intended active degree, it is not necessary to close, need to continue to the properly functioning of QQ music application. As shown in Fig. 3 (b), mobile phone carries out the place of predetermined policy to 4 application programs being originally in running status After reason, retain QQ music application and proceed to run, other 3 application are closed, so Just the purpose that unnecessary application is carried out close, maintain necessary application to continue to run with is achieved, it is possible to reduce electricity Subset power wastage, saves electricity.Apply simultaneously for Streaming Media output class, by according to it at least Two parameters reach automatic and are accurately judged to apply the purpose whether continuing to run, and promote Consumer's Experience, Highlight the functional diversity of electronic equipment.
The first embodiment of the electronic equipment that the present invention provides, this electronic equipment is by the operating system of installation such as Android android system runs the application of various application programs such as Streaming Media output class, social class is applied such as wechat Application, office class are applied such as lantern slide ppt etc..Wherein, the application of Streaming Media output class at least includes that music is broadcast Put class application such as QQ music, KuGoo music, and/or video playback class application etc..
The composition structural representation of the first embodiment of the electronic equipment that Fig. 4 provides for the present invention;Such as Fig. 4 institute Showing, described electronic equipment includes: detector 41, processor 42;Wherein,
Detector 41, for obtaining the triggering command for saving electric quantity for electronic equipment;
This triggering command is used for indicating electronic equipment to perform economize on electricity flow process.This triggering command can be at detector 41 Detect that electronic equipment runs to automatically generate when having at least two application program;Can also be at detector 41 Detect that the scheduled operation of user generates.Such as, when user opens multiple application program, find current The application program run is more, needs to maintain certain applications program to continue to run with certain applications stop, uses Predetermined touch district in predetermined key or display screen or predetermined icon are pressed by family, touch-control, click (list Hit, double-click and repeatedly click on), the scheduled operation such as slip, when detector 41 detects this scheduled operation, Generate this triggering command.Described predetermined key can be the button such as switching on and shutting down button that electronic equipment itself carries Or volume adjusting button, it is also possible to it is the specific keys arranged for electronic equipment.Described Touch Zone can be aobvious Certain region in display screen.Described predetermined icon can be saving for controlling electronic equipment of pre-setting The icon of electric current journey.
Processor 42, for responding described triggering command based on predetermined power-saving strategies for current operating conditions M application program process, with reduce described electronic equipment power consumption save electricity, M is for being more than In the positive integer of 1;Wherein, described predetermined power-saving strategies is for when application program is the application of Streaming Media output class Described Streaming Media output class whether is maintained to apply based at least two parameter determination.
At electronic equipment, after specifically detector 41 obtains described triggering command, processor 42 responds this and touches Send instructions, current M the application program run is processed to reduce power attenuation and saves electricity, for Streaming Media output class application in current M the application program run, applies extremely based on Streaming Media output class Whether few two parameter determinations maintain continuing to run with of this kind of application.Wherein, M is the most whole more than or equal to 1 Number.The application of described Streaming Media output class at least includes the application of music class and/or video playback class application etc.. Current M the application program run includes all of application program of electronic equipment foreground, running background.
In aforementioned schemes, when, after the triggering command that electronic equipment gets for saving electricity, responding this triggering Instruction, processes to reduce power attenuation to current M the application program run and saves electricity, for M Streaming Media output class application in individual application program, at least two parameter based on the application of Streaming Media output class is true Determine whether maintain continuing to run with of this kind of application.At based on predetermined policy to M application program Reason, has reached the purpose saving electric quantity for electronic equipment.Apply simultaneously for Streaming Media output class, By reaching to be accurately judged to apply the purpose whether continuing to run, and oneself according to its at least two parameter Move and achieve the judgement that whether application is continued to runs, promote Consumer's Experience, highlight the merit of electronic equipment Can multiformity.
Second embodiment of the electronic equipment that the present invention provides, this electronic equipment is by the operating system of installation such as Android android system runs the application of various application programs such as Streaming Media output class, social class is applied such as wechat Application, office class are applied such as lantern slide ppt etc..Wherein, the application of Streaming Media output class at least includes that music is broadcast Put class application such as QQ music, KuGoo music, and/or video playback class application etc..
The composition structural representation of the second embodiment of the electronic equipment that Fig. 5 provides for the present invention;Such as Fig. 5 institute Showing, described electronic equipment includes: detector 51, processor 52;Wherein,
Detector 51, for obtaining the triggering command for saving electric quantity for electronic equipment;
This triggering command is used for indicating electronic equipment to perform economize on electricity flow process.This triggering command can be at detector 41 Detect that electronic equipment runs to automatically generate when having at least two application program;Can also be at detector 51 Detect that the scheduled operation of user generates.Such as, when user opens multiple application program, find current The application program run is more, needs to maintain certain applications program to continue to run with certain applications stop, uses Predetermined touch district in predetermined key or display screen or predetermined icon are pressed by family, touch-control, click (list Hit, double-click and repeatedly click on), the scheduled operation such as slip, when detector 51 detects this scheduled operation, Generate this triggering command.Described predetermined key can be the button such as switching on and shutting down button that electronic equipment itself carries Or volume adjusting button, it is also possible to it is the specific keys arranged for electronic equipment.Described Touch Zone can be aobvious Certain region in display screen.Described predetermined icon can be saving for controlling electronic equipment of pre-setting The icon of electric current journey.
Processor 52, is used for responding described triggering command, obtains each application in described M application program First attribute of program, described first attribute characterization is the type of application program, in M application program, Determining the application program that application type is Streaming Media output class, obtain intended application, at least obtaining target should The first parameter, the second parameter, according to the first parameter of intended application, the second parameter, it is determined whether dimension Hold described intended application.
Electronic equipment, specifically processor 52 read the type of each application program that system is run.Working as In M application program of front operation, it is Streaming Media output type that processor 52 extracts Application Type Application program, regard the application of Streaming Media output type as intended application.Described first parameter characterization is target Whether application is output state, and under output state, intended application exports the first data, described second parameter list Levy the active degree for intended application.The described at least two parameter of intended application i.e. Streaming Media output class application Obtain from the system of electronic equipment for processor 52.During intended application is run, electronic equipment System such as android system can be to the active degree of each intended application and whether be in output state and enter Row monitoring.Electronic equipment, specifically processor 52 are reading for characterizing whether intended application is in as defeated The first parameter of doing well and after the second parameter characterizing the active degree that intended application is run, foundation The two parameter, it is determined whether continue to the operation of intended application.Current M the application package run Include all of application program of electronic equipment foreground, running background.
Further, described processor 52 is according to the first parameter of intended application, the second parameter, it is determined whether Maintain described intended application, it is also possible to for:
Judge whether the first parameter is positioned at the first preset range;Judge whether the second parameter is positioned at second and makes a reservation for In the range of;When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time interior, control described intended application and maintain the output of the first data;Wherein, the first parameter be positioned at first make a reservation for In the range of time intended application be output state, the fortune of intended application when the second parameter is positioned at the second preset range Row reaches predetermined active degree.Wherein, processor 52 judges whether the first parameter is positioned at the first preset range It is exactly to judge the most whether intended application is whether the application of the state having data to export such as music class plays sound It is happy, it is judged that it is data output state that the first parameter is positioned at the just explanation current goal application of the first preset range, Otherwise confirm as not for data output state.When with numerical value " 1 " or " true " represent application have data output, When numerical value " 0 " or " false " represent application no data output, the first preset range is numerical value " 1 " or " true ", Vice versa.Additionally, in this programme, processor 52 judges that whether the value of the first parameter is less than or equal to 300 In (in the second preset range), it is judged that during for being, illustrate that the operation of intended application has reached certain enlivening Degree.Certainly, the second preset range can also be taken as any be less than or equal to 300 integer.
In such scheme, at least one of which parameter of described at least two parameter, determine that Streaming Media is defeated Go out class and apply the runlevel information in M application program, in the first corresponding relation, determine with described At least one parameter described that runlevel information is corresponding, the first corresponding relation is set in advance, and record has Corresponding relation between application runlevel and parameter value.The active degree of operation is applied for sign As a example by second parameter, during M application program runs, there are certain runlevel, such as sound The happy broadcast message class application runlevel such as QQ music application is the highest, and the runlevel of PPT application is the most high, So having in the first corresponding relation between runlevel and the second parameter value at record, reading should with target By the second parameter as corresponding in the runlevel of QQ music application.This programme specifying, runlevel is the highest Application, its second parameter value is the least, and the i.e. second the least application of parameter value runs the most active.
In embodiments of the present invention, for the application for non-Streaming Media output type in M application program, Processor 52 controls it and cuts out, to reach to reduce powder consumption of electronic equipment, the purpose of saving electricity.For The application of Streaming Media output type, processor 52 decides whether to continue dimension according at least two parameter of this application Hold operation.Reach to be accurately judged to apply whether to continue to by least two parameter according to intended application The purpose run, and it has been automatically obtained the judgement that whether application is continued to runs, promote Consumer's Experience, Highlight the functional diversity of electronic equipment.
Below in conjunction with Fig. 3 (a), (b), this programme is described further.
Assuming that in Fig. 3 (a), the Android system of mobile phone currently runs M=4 application i.e. application 1~application 4, it is QQ music application respectively, PPT application, browser application and calculator application;Wherein, QQ sound Happy application is applied for Streaming Media output class, and other three belong to the application of non-Streaming Media output class.
Mobile phone, specifically detector detect when the current quantity running application is more than or equal to 2, generate and use In the triggering command of saving mobile phone electricity, mobile phone, specifically processor respond this triggering command, first from each Run the application type reading each application in the application process of application, obtain type parameter App Type, and Filter out type parameter App Type=A application, regard the application of type parameter App Type=A as Streaming Media Output class is applied.Meanwhile, confirm that the application of type parameter App Type ≠ A is the application of non-Streaming Media output class, And control these non-Streaming Media output classes application close, with reach reduce power consumption, save electricity purpose. For running the Streaming Media output class application filtered out in application from M, further processor passes through mobile phone System judge whether this Streaming Media output class application i.e. QQ music application current is in music state, I.e. whether equal to true, (first makes a reservation for current system music state isMusicActive (the first parameter) Scope), if being not equal to true, then it is assumed that current QQ music application is not at broadcast state, and flow process terminates. If equal to true, then it is assumed that current QQ music application is in broadcast state, and then processor reads system again The runlevel information that system obtains through being monitored QQ music application, it is assumed that it is the highest runlevel, So from the first corresponding relation, search second parameter corresponding with this highest runlevel, in the present embodiment, Assuming that the second parameter is 100, and judge that whether the second parameter is less than or equal to 300, it is judged that during for being, explanation The operation of QQ music application has reached intended active degree, it is not necessary to close, and needs to continue to QQ music application properly functioning.As shown in Fig. 3 (b), mobile phone is in 4 of running status to script After application program carries out the process of predetermined policy, retain QQ music application and proceed to run, to it Its 3 application is closed, and the most just achieves and carries out unnecessary application closing, maintaining necessary application to continue The purpose of reforwarding row, it is possible to reduce powder consumption of electronic equipment waste, save electricity.Defeated simultaneously for Streaming Media Go out class application, whether continue to by reaching automatic according to its at least two parameter and being accurately judged to apply The purpose run, promotes Consumer's Experience, highlights the functional diversity of electronic equipment.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.And, the present invention can use and wherein include calculating one or more The computer-usable storage medium of machine usable program code (includes but not limited to disk memory and optical storage Device etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or side Flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or the knot of square frame Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing device is to produce a machine so that by computer or other can The instruction that the processor of programming data processing equipment performs produces for realizing in one flow process or multiple of flow chart The device of the function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention Enclose.

Claims (10)

1. the method maintaining the normal work of application in economize on electricity processes, described method includes:
Obtain the triggering command for saving electric quantity for electronic equipment;
Respond described triggering command based on predetermined power-saving strategies for described electronic equipment current operating conditions M application program processes, and to reduce the power consumption saving electricity of described electronic equipment, M is for being more than or equal to The positive integer of 1;
Wherein, described predetermined power-saving strategies is based at least two when application program is the application of Streaming Media output class Whether individual parameter determination maintains described Streaming Media output class to apply.
Method the most according to claim 1, it is characterised in that the institute of described Streaming Media output class application Stating at least two parameter is to obtain from described electronic equipment.
Method the most according to claim 1, it is characterised in that the described triggering command of described response based on Predetermined power-saving strategies processes for M application program of described electronic equipment current operating conditions, bag Include:
Obtaining the first attribute of each application program in described M application program, described first attribute characterization is The type of application program;
In M application program, determine the application program that application type is Streaming Media output class, obtain mesh Mark application;
At least obtain the first parameter of intended application, the second parameter;
According to the first parameter of intended application, the second parameter, it is determined whether maintain described intended application.
Method the most according to claim 3, it is characterised in that
Described first parameter characterization is whether intended application is output state, and under output state, intended application is defeated Going out the first data, described second parameter characterization is the active degree that intended application is run;
Judge whether the first parameter is positioned at the first preset range;
Judge whether the second parameter is positioned at the second preset range;
When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time, control described intended application and maintain the output of the first data;Wherein, the first parameter is positioned at the first predetermined model When enclosing interior, intended application is output state, the operation of intended application when the second parameter is positioned at the second preset range Reach predetermined active degree.
Method the most according to claim 1, it is characterised in that for its of described at least two parameter In at least one parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relation, determine corresponding with described runlevel information described at least one parameter;
First corresponding relation is set in advance, record have application runlevel and parameter value between corresponding Relation.
6. an electronic equipment, described electronic equipment includes:
Detector, for obtaining the triggering command for saving electric quantity for electronic equipment;
Processor, for responding described triggering command based on predetermined power-saving strategies for current operating conditions M application program processes, and to reduce the power consumption saving electricity of described electronic equipment, M is for being more than or equal to The positive integer of 1;
Wherein, described predetermined power-saving strategies is based at least two when application program is the application of Streaming Media output class Whether individual parameter determination maintains described Streaming Media output class to apply.
Electronic equipment the most according to claim 6, it is characterised in that described Streaming Media output class is applied Described at least two parameter be that described processor obtains from described electronic equipment.
Electronic equipment the most according to claim 6, it is characterised in that described processor, is additionally operable to:
Obtaining the first attribute of each application program in described M application program, described first attribute characterization is The type of application program;
In M application program, determine the application program that application type is Streaming Media output class, obtain mesh Mark application;
At least obtain the first parameter of intended application, the second parameter;
According to the first parameter of intended application, the second parameter, it is determined whether maintain described intended application.
Electronic equipment the most according to claim 8, it is characterised in that
Described first parameter characterization is whether intended application is output state, and under output state, intended application is defeated Going out the first data, described second parameter characterization is the active degree that intended application is run;
Described processor, is additionally operable to:
Judge whether the first parameter is positioned at the first preset range;
Judge whether the second parameter is positioned at the second preset range;
When being judged as that the first parameter is positioned at the first preset range and the second parameter is positioned at the second preset range Time, control described intended application and maintain the output of the first data;Wherein, the first parameter is positioned at the first predetermined model When enclosing interior, intended application is output state, the operation of intended application when the second parameter is positioned at the second preset range Reach predetermined active degree.
Electronic equipment the most according to claim 6, it is characterised in that described processor, is additionally operable to:
For at least one of which parameter of described at least two parameter,
Determine that Streaming Media output class applies the runlevel information in M application program;
In the first corresponding relation, determine corresponding with described runlevel information described at least one parameter;
First corresponding relation is set in advance, record have application runlevel and parameter value between corresponding Relation.
CN201610145120.XA 2016-03-14 2016-03-14 The method and electronic equipment for maintaining application to work normally in economize on electricity processing Active CN105843357B (en)

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 true CN105843357A (en) 2016-08-10
CN105843357B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066288A (en) * 2017-01-17 2017-08-18 北京光年无限科技有限公司 A kind of multi-modal exchange 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)

* Cited by examiner, † Cited by third party
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 北京金山安全软件有限公司 Application program electricity-saving processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 北京金山安全软件有限公司 Application program electricity-saving processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066288A (en) * 2017-01-17 2017-08-18 北京光年无限科技有限公司 A kind of multi-modal exchange method and device for intelligent robot
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

Also Published As

Publication number Publication date
CN105843357B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN105843357A (en) Method of maintaining normal application operation in power-saving management and electronic equipment
CN103941871A (en) Method and equipment for controlling hardware operating state of intelligent terminal
CN105072292A (en) Application control method and terminal
CN103593032A (en) Electronic device and control method thereof
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN103259929B (en) Method and device for controlling playing of multi-media file
CN105183469B (en) Focus localization method and device when application program switches
CN109564454A (en) Equipment heat management based on power
CN105101138A (en) Method and system for controlling traffic, and terminal
CN104932963A (en) Method and device for terminal management
CN105653418A (en) Terminal, terminal control method and terminal control device
CN106125883A (en) Intelligent terminal and control method thereof
CN106557135A (en) Temperature of processor regulates and controls method and device
CN106155797A (en) Terminal unit and the changing method of performance mode thereof
CN105334939A (en) Terminal power consumption control method and terminal power consumption control device
CN102279784A (en) Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment
CN107302633B (en) Application control method, device, storage medium and electronic equipment
CN103902011A (en) Electronic device controlling method and electronic device
CN105210007B (en) System and method for the rechargeable power supply management in the portable computing with two or more use patterns
CN106155870B (en) Terminal optimization processing method and device and terminal
CN104503881B (en) The method of handheld device consumption detection, device and handheld device
US20120331473A1 (en) Electronic device and task managing method
CN104699535B (en) A kind of information processing method and electronic equipment
CN109218899A (en) A kind of recognition methods, device and the intelligent sound box of interactive voice scene
CN105701426A (en) Electronic device subjected to shutdown protection and shutdown protection system and method

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant