Summary of the invention
Embodiments of the invention provide a kind of and control the method for kwh loss, device and terminal, it is possible in terminalReducing the loss of terminal power when being in low electricity, solution must not effectively improve the flying power of end cellProblem.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, embodiments of the invention provide a kind of method controlling kwh loss, for terminal, instituteStating terminal and preset at least two charge level, the corresponding different application of different charge level uses frequency range,Including:
Obtain the electricity of described end cell;
Add up the use frequency of application in described terminal;
Electricity according to described battery determines the charge level and the current institute of described terminal that described terminal is presently inThe application that the charge level at place is corresponding uses frequency range;
The application closing charge level that application uses frequency not to be presently in described terminal corresponding uses frequencyIn the range of application.
Second aspect, embodiments of the invention provide a kind of device controlling kwh loss, and described device is presetAt least two charge level, the corresponding different application of different charge level uses frequency range, including:
Acquiring unit, for obtaining the electricity of end cell;
Statistic unit, for adding up the use frequency of application in described terminal;
Determine unit, for according to the electricity of described battery determine charge level that described terminal is presently in andThe application that charge level that described terminal is presently in is corresponding uses frequency range;
Closing unit, for closing the charge level correspondence that application uses frequency not to be presently in described terminalApplication use the application in frequency range.
The third aspect, embodiments of the invention provide a kind of terminal controlling kwh loss, including such as second partyDevice described in face.
Compared with prior art, the embodiment of the present invention provide a kind of control the method for kwh loss, device andTerminal, in the present invention, terminal presets at least two charge level, the corresponding different application of different charge levelUse frequency range;Terminal obtains the electricity of described end cell, and adds up the use frequency wherein applied;Then charge level that terminal is presently in and the charge level that terminal is presently in are determined according to the electricity of batteryCorresponding application uses frequency range;Close the charge level pair that application uses frequency not to be presently in terminalThe application answered uses the application in frequency range.So, terminal can according to the residue situation of battery electric quantity,In conjunction with the use frequency of application in terminal, it is automatically switched off some application being not frequently used, reduces terminal pairThe consumption of electricity, such as, when the grade that terminal power is corresponding is to close the application using frequency relatively low, eventuallyEnd is automatically switched off the application using frequency relatively low, reduces its consumption to electricity to greatest extent, effectively carriesThe flying power of high end cell.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearlyChu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather thanWhole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creationThe all other embodiments obtained under property work premise, broadly fall into the scope of protection of the invention.
Advantage for making technical solution of the present invention is clearer, makees the present invention with embodiment below in conjunction with the accompanying drawingsDescribe in detail.
One embodiment of the invention provides a kind of method controlling kwh loss, and for terminal, described terminal is presetAt least two charge level, the corresponding different application of different charge level uses frequency range, as it is shown in figure 1,Described method includes:
101, terminal obtains the electricity of end cell.
102, the use frequency of application in terminal statistics terminal.
103, terminal determines what charge level that terminal is presently in and terminal were presently according to the electricity of batteryThe application that charge level is corresponding uses frequency range.
104, the application that terminal closes charge level that application uses frequency not to be presently in terminal corresponding usesApplication in frequency range.
Optionally, terminal can also include at least two operating system, when described terminal switching operating system,The application closing charge level that application uses frequency not to be presently in described terminal corresponding uses frequency rangeInterior application.
Further, close, described, the charge level pair that application uses frequency not to be presently in described terminalAfter the application answered uses the application in frequency range, what in the system after entrance switching, use frequency was the highest shouldInterface, or close application use the charge level pair that is not presently in described terminal of frequency describedAfter the application answered uses the application in frequency range, enter terminal described in the system before switching and showThe interface of application.
Optionally, the mode of the electricity of the described end cell of described acquisition can be monitoring electricity from described terminalThe application of pond electricity obtains the electricity of described end cell.
In the present invention, terminal presets at least two charge level, and the corresponding different application of different charge level makesUse frequency range;Terminal obtains the electricity of described end cell, and adds up the use frequency wherein applied;SoCharge level that terminal is presently in and the charge level pair that terminal is presently in is determined afterwards according to the electricity of batteryThe application answered uses frequency range;Close the charge level correspondence that application uses frequency not to be presently in terminalApplication use the application in frequency range.So, terminal can be tied according to the residue situation of battery electric quantityClose the use frequency of application in terminal, be automatically switched off some application, reduce the terminal consumption to electricity, exampleAs, when the grade that terminal power is corresponding is to close the application using frequency relatively low, terminal is automatically switched off useThe application that frequency is relatively low, reduces its consumption to electricity to greatest extent, continuing of effective raising end cellBoat ability.
Further embodiment of this invention provides a kind of method controlling kwh loss, for terminal, as a example by mobile phone,Running two operating systems in mobile phone, one is security system, and one is non-security system, as in figure 2 it is shown,Described method includes:
201, the charge level of battery preset by mobile phone.
Wherein, its battery electric quantity is pre-set at least two charge level by mobile phone, and each grade is corresponding differentApplication uses frequency range, and the embodiment of the present invention is as a example by three charge level, and the first charge level is electricity100%-70%, the second charge level is 69%-30%, and the 3rd charge level is 29%-0%, the first electricityGrade correspondence application use frequency range for being not less than 3, second charge level correspondence apply use frequency modelEnclosing for being not less than 5, the use frequency range of the second charge level correspondence application is for being not less than 10.
It should be noted that the value of each charge level, and the model of each charge level correspondence application use frequencyEnclose and can carry out sets itself according to user's routine use custom.
202, the use frequency of mobile phone statistics application.
Wherein, the use frequency of application, the number of times of application can be opened according to user and Time Calculation draws,Concrete mode does not limits at this.
203, mobile phone obtains the electricity of battery.
Wherein, the mode of the electricity that mobile phone obtains battery can mounting monitor or relevant detection in mobile phoneApplication, the electricity practical situation of main monitoring cell-phone battery.Such as, inside the framework of Android systemHaving the Service:BatteryStatsSerive being responsible for electricity statistics specially, data are to be stored in system directoryBatterystats.bin file, then meets at this data-analyzing machine of BatteryStatsImpl to carry out electric quantity dataAnalyzing, the setting of system is just obtained by the statistical information of electricity, it is thus achieved that after the relevant data of battery,The electricity of battery can be calculated by correlation formula.
204, mobile phone determines its charge level being presently in and the electricity etc. being presently according to the electricity of batteryThe application use frequency range that level is corresponding.
Wherein, electricity, after the electricity obtaining battery, is compared by mobile phone with each charge level, show that mobile phone is worked asThe application that charge level residing for front electricity is corresponding with the charge level residing for current electric quantity uses frequency range,Such as, mobile phone current electric quantity is 50%, and corresponding charge level is the second charge level, the use frequency of corresponding applicationRate scope is for being not less than 5.
205, mobile phone cuts out application use frequency and does not uses frequency in the application that the charge level being presently in is correspondingIn the range of application.
Such as, mobile phone current electric quantity is 50%, the use frequency range of corresponding application for being not less than 5, then mobile phoneThe application using frequency less than 5 can be automatically switched off, to reduce the mobile phone consumption to electricity.
Further, the present invention is as a example by mobile phone is as dual operating systems, and user the most often cutsChanging operating system, when mobile phone switching operating system, can perform following steps, the embodiment of the present invention is with handsAs a example by machine is switched to SOS from non-secure operating system, perform step 206.
206, the frequency application less than predeterminated frequency is used during mobile phone cuts out non-secure operating system.
Wherein, described predeterminated frequency is that the application that charge level that described terminal is presently in is corresponding uses frequencyScope.
207, the interface of the application that frequency is the highest is used during mobile phone enters SOS.
Or, mobile phone in the security system enter switching before described non-secure operating system be currently running display existThe interface of the application in terminal.
In the present invention, at least two charge level preset by mobile phone, and the corresponding different application of different charge level makesUse frequency range;Mobile phone obtains the electricity of described battery of mobile phone, and adds up the use frequency wherein applied;SoCharge level that mobile phone is presently in and the charge level pair that mobile phone is presently in is determined afterwards according to the electricity of batteryThe application answered uses frequency range;Close the charge level correspondence that application uses frequency not to be presently at mobile phoneApplication use the application in frequency range.So, mobile phone can be tied according to the residue situation of battery electric quantityClose the use frequency of application in mobile phone, be automatically switched off some application, reduce the mobile phone consumption to electricity, exampleAs, when the grade that mobile phone electricity is corresponding is to close the application using frequency relatively low, mobile phone is automatically switched off useThe application that frequency is relatively low, reduces its consumption to electricity to greatest extent, continuing of effective raising battery of mobile phoneBoat ability.
Further embodiment of this invention provides a kind of device 30 controlling kwh loss, described device 30 to preset at leastTwo charge level, the corresponding different application of different charge level uses frequency range, as it is shown on figure 3, instituteState device 30 to include:
Acquiring unit 31, for obtaining the electricity of end cell;
Statistic unit 32, for adding up the use frequency of application in described terminal;
Determine unit 33, for determining, according to the electricity of described battery, the charge level that described terminal is presently inThe application corresponding with the charge level that described terminal is presently in uses frequency range;
Closing unit 34, for closing the charge level pair that application uses frequency not to be presently in described terminalThe application answered uses the application in frequency range.
Further, described terminal includes that at least two operating system, described closing unit 34 are additionally operable to work as instituteWhen stating terminal switching operating system, close the charge level that application uses frequency not to be presently in described terminalCorresponding application uses the application in frequency range.
Further, as shown in Figure 4, described device 30 also includes:
Enter unit 35, for closing, described, the electricity that application uses frequency not to be presently in described terminalAfter application corresponding to grade uses the application in frequency range, enter and the system after switching uses frequencyThe interface of high application.
Further, described entrance unit 35 is additionally operable in described application use frequency of closing not in described terminalAfter the application that the charge level that is presently in is corresponding uses the application in frequency range, enter and before switching beThe interface of the application that terminal described in system is showing.
In the present invention, device 30 presets at least two charge level, the corresponding different application of different charge levelUse frequency range;Device 30 obtains the electricity of described end cell, and adds up the use frequency wherein applied;Then charge level that terminal is presently in and the charge level that terminal is presently in are determined according to the electricity of batteryCorresponding application uses frequency range;Close the charge level pair that application uses frequency not to be presently in terminalThe application answered uses the application in frequency range.So, device 30 can according to the residue situation of battery electric quantity,In conjunction with the use frequency of application in terminal, it is automatically switched off some application, reduces the terminal consumption to electricity,Such as, when the grade that terminal power is corresponding is to close the application using frequency relatively low, device 30 is automatically switched offUse the application that frequency is relatively low, reduce its consumption to electricity to greatest extent, effectively improve end cellFlying power.
Further embodiment of this invention provides a kind of terminal 40 controlling kwh loss, as it is shown in figure 5, described terminal40 include device as shown in Figure 3 or Figure 4.
The device controlling kwh loss that the embodiment of the present invention provides can realize the method for above-mentioned offer to be implementedExample, concrete function realizes the explanation referring in embodiment of the method, does not repeats them here.The embodiment of the present inventionThere is provided controls the method for kwh loss, device and terminal, goes for terminal, but is not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculatingIn machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,Or random store-memory body (Random Access Memory, RAM) etc. ROM).
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited toThis, any those familiar with the art, in the technical scope that the invention discloses, can readily occur inChange or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present inventionShould be as the criterion with scope of the claims.