CN109803358A - Mobile terminal electric quantity controlling method, device, computer equipment and storage medium - Google Patents

Mobile terminal electric quantity controlling method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109803358A
CN109803358A CN201811528215.5A CN201811528215A CN109803358A CN 109803358 A CN109803358 A CN 109803358A CN 201811528215 A CN201811528215 A CN 201811528215A CN 109803358 A CN109803358 A CN 109803358A
Authority
CN
China
Prior art keywords
application program
mobile terminal
power threshold
saving mode
battery saving
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.)
Pending
Application number
CN201811528215.5A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811528215.5A priority Critical patent/CN109803358A/en
Publication of CN109803358A publication Critical patent/CN109803358A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of mobile terminal electric quantity controlling method, device, computer equipment and storage mediums.The present invention is based on the application program for being mounted on the mobile terminal, electric quantity controlling method includes: the current residual electricity for obtaining mobile terminal;The current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program;When the current residual electricity of the mobile terminal is less than the power threshold defaulted in application program, start preset battery saving mode in the application program.So, the electricity performance indicator of monitoring mobile terminal can be passed through, pointedly reduce the current consumption rate of the application program, since power threshold is by application setting, i.e. in the terminal, one application program enters the operation that battery saving mode has no effect on another application program, so that mobile terminal more effectively more targetedly can carry out power-saving control to application program, while improving the usage experience and reliability of application program.

Description

Mobile terminal electric quantity controlling method, device, computer equipment and storage medium
Technical field
The present invention relates to Internet technical fields, specifically, the present invention relates to a kind of, the mobile terminal based on cuisines is electric Amount control method, device, computer equipment and storage medium.
Background technique
The appearance of mobile terminal has brought wide the knowledge visual field and the life visual field, while also bringing Convenient and fast communication exchange mode, life increasingly be unable to do without mobile terminal.Nowadays the function of mobile terminal tends to diversification, mobile The application program installed in terminal is also more and more, this makes a great problem of mobile terminal urgent need to resolve be how to reduce shifting The power consumption of dynamic end cell.
In the prior art, most of mobile terminals are all to consider to carry out electricity to the mobile terminal from mobile terminal system level Amount control, this electricity saving method can only control some general operations, and it is poor to the specific aim of control object to exist, power saving The technical problems such as effect is bad.
Summary of the invention
The purpose of the present invention aims to solve at least one of above-mentioned technological deficiency, especially can only to some general operations into Row control, it is poor to the specific aim of control object to exist, the bad technological deficiency of power saving effect.
In order to solve the above technical problems, the present invention provides a kind of mobile terminal electric quantity controlling method, the electricity controlling party Method is based on the application program for being mounted on the mobile terminal, comprising the following steps:
Obtain the current residual electricity of mobile terminal;
The current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program;
When the current residual electricity of the mobile terminal is less than the power threshold defaulted in application program, described in starting Preset battery saving mode in application program.
Optionally, according to preset power saving grade be arranged battery saving mode, including level-one battery saving mode, level-one battery saving mode with And level-one battery saving mode;
It is described when the current residual electricity of the mobile terminal is less than and defaults in power threshold in application program, starting In the application program the step of preset battery saving mode before, further includes:
All application programs in the mobile terminal are grouped, and establish the mapping between grouping and battery saving mode Relationship carries out battery saving mode setting to the application program according to the mapping relations.
Optionally, it is pre-seted according to the battery saving mode according to the setting of default power saving grade corresponding with the battery saving mode Power threshold, including it is and corresponding first power threshold of the level-one battery saving mode, corresponding with the second level battery saving mode Second power threshold, third power threshold corresponding with the three-level battery saving mode;
It is described when the current residual electricity of the mobile terminal is less than and defaults in power threshold in application program, starting In the application program the step of preset battery saving mode, comprising:
When the current residual electricity of the mobile terminal is less than the first power threshold, start in the application program with institute State the corresponding level-one battery saving mode of the first power threshold;
When the current residual electricity of the mobile terminal is less than the second power threshold, start in the application program with institute State the corresponding second level battery saving mode of the second power threshold;
When the current residual electricity of the mobile terminal be less than third power threshold when, start in the application program with institute State the corresponding three-level battery saving mode of third power threshold.
Optionally, the current residual electricity by the mobile terminal with default in power threshold in application program into Before the step of row compares, further includes:
Judge whether the current operating conditions of the application program are in front stage operation state;
The current residual electricity by the mobile terminal is compared with the power threshold defaulted in application program The step of, comprising:
When the current operating conditions of the application program are not at front stage operation state, by the current of the mobile terminal Remaining capacity is compared with the power threshold defaulted in application program.
Optionally, the power threshold of the application program is set according to the operating status of application program, including with front stage operation Corresponding 4th power threshold of state and the 5th power threshold corresponding with non-front stage operation state, and the 4th power threshold Less than the 5th power threshold;
The current residual electricity by the mobile terminal is compared with the power threshold defaulted in application program The step of, can also include:
When the current operating conditions of the application program are in front stage operation state, by the current surplus of the mobile terminal Remaining electricity is compared with the 4th power threshold;
When the current operating conditions of the application program are in non-operating status, by the current surplus of the mobile terminal Remaining electricity is compared with the 5th power threshold.
Optionally, the current residual electricity by the mobile terminal with default in power threshold in application program into Before the step of row compares, further includes:
Obtain the average consumption rate of application program;
The average consumption rate value is compared with preset consumption rate range, it is opposite to obtain the average consumption rate The consumption rate range answered;
According to power threshold in application program described in the correspondence setting between consumption rate value range and power threshold Size.
In order to solve the above technical problems, the present invention also provides a kind of mobile terminal electric quantity control unit, it is described mobile whole End electric quantity control unit include:
Module is obtained, for obtaining the current residual electricity of mobile terminal;
Processing module, for the current residual electricity of the mobile terminal and the power threshold in application program will to be defaulted in It is compared;
Execution module is less than the electricity threshold defaulted in application program for the current residual electricity when the mobile terminal When value, start preset battery saving mode in the application program.
Optionally, according to preset power saving grade be arranged battery saving mode, including level-one battery saving mode, level-one battery saving mode with And level-one battery saving mode;The mobile terminal electric quantity control unit further include:
Grouping module for being grouped to all application programs in the mobile terminal, and establishes grouping and power saving Mapping relations between mode carry out battery saving mode setting to the application program according to the mapping relations.
Optionally, it is pre-seted according to the battery saving mode according to the setting of default power saving grade corresponding with the battery saving mode Power threshold, including it is and corresponding first power threshold of the level-one battery saving mode, corresponding with the second level battery saving mode Second power threshold, third power threshold corresponding with the three-level battery saving mode;The mobile terminal electric quantity control unit is also Include:
First implementation sub-module, for opening when the current residual electricity of the mobile terminal is less than the first power threshold Move level-one battery saving mode corresponding with first power threshold in the application program;
Second implementation sub-module, for opening when the current residual electricity of the mobile terminal is less than the second power threshold Move second level battery saving mode corresponding with second power threshold in the application program;
Third implementation sub-module, for opening when the current residual electricity of the mobile terminal is less than third power threshold Move three-level battery saving mode corresponding with the third power threshold in the application program.
Optionally, the mobile terminal electric quantity control unit further include:
First processing submodule, for judging whether the current operating conditions of the application program are in front stage operation shape State;
Second processing submodule, for when the current operating conditions of the application program are not at front stage operation state, The current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program.
Optionally, the power threshold of the application program is set according to the operating status of application program, including with front stage operation Corresponding 4th power threshold of state and the 5th power threshold corresponding with non-front stage operation state, and the 4th power threshold Less than the 5th power threshold;The mobile terminal electric quantity control unit further include:
Third handles submodule, for inciting somebody to action when the current operating conditions of the application program are in front stage operation state The current residual electricity of the mobile terminal is compared with the 4th power threshold;
Fourth process submodule, for inciting somebody to action when the current operating conditions of the application program are in non-operating status The current residual electricity of the mobile terminal is compared with the 5th power threshold.
Optionally, the mobile terminal electric quantity control unit further include:
First acquisition submodule, for obtaining the average consumption rate of application program;
5th processing submodule, for the average consumption rate value to be compared with preset consumption rate range, to obtain Take the corresponding consumption rate range of the average consumption rate;
6th processing submodule, for being answered according to the correspondence setting between consumption rate value range and power threshold With the size of power threshold in program.
In order to solve the above technical problems, the present invention also provides a kind of computer equipment, including memory and processor, it is described Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that the place Manage the step of device executes above-mentioned mobile terminal electric quantity controlling method.
In order to solve the above technical problems, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, institute When stating computer-readable instruction and being executed by one or more processors, so that one or more processors execute above-mentioned mobile terminal The step of electric quantity controlling method.
The beneficial effects of the present invention are:
The current residual electricity that the present invention passes through acquisition mobile terminal;Then by the current residual electricity of the mobile terminal It is compared with the power threshold defaulted in application program, judges whether the current residual electricity of mobile terminal is less than and default in Power threshold in application program;It is defaulted in the application program when the current residual electricity that judging result is mobile terminal is less than Power threshold when, as battery saving mode start unit of the application program automatic trigger built in it, to start in the application program Preset battery saving mode.So, the current consumption rate that can pointedly reduce the application program, moreover, because electricity Threshold value is by application setting, i.e., in the terminal, an application program enters battery saving mode and has no effect on another The operation of application program, so that mobile terminal more effectively more targetedly can carry out power-saving control to application program, The usage experience and reliability of application program are improved simultaneously.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the basic skills flow diagram of mobile terminal electric quantity controlling method provided in an embodiment of the present invention;
Fig. 2 is method flow when starting battery saving mode in mobile terminal electric quantity controlling method provided in an embodiment of the present invention Schematic diagram;
Fig. 3 is the current operation shape in mobile terminal electric quantity controlling method provided in an embodiment of the present invention according to application program State determines whether to start the method flow schematic diagram of preset battery saving mode in the application program;
Fig. 4 is the current operation shape in mobile terminal electric quantity controlling method provided in an embodiment of the present invention according to application program State determines when to start the method flow schematic diagram of preset battery saving mode in the application program;
Fig. 5 is to be arranged in method for controlling mobile terminal provided in an embodiment of the present invention according to the average consumption rate of application program The method flow schematic diagram of application program power threshold;
Fig. 6 is mobile terminal electric quantity control unit basic structure block diagram provided in an embodiment of the present invention;
Fig. 7 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and the serial number of the operation is only used for distinguishing each different operation, serial number not generation itself Table it is any execute sequence.In addition, these processes may include more or fewer operations, and these operations can be in order It executes or executes parallel.It should be noted that the description such as herein " first ", " second ", be for distinguish different message, Equipment, module etc. do not represent sequencing, also do not limit " first " and " second " and are different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other embodiment obtained under the premise of no creative work, It shall fall within the protection scope of the present invention.
Embodiment
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
The user terminal referred in the present embodiment is above-mentioned terminal.
Referring to Fig. 1, the basic skills process that Fig. 1 is mobile terminal electric quantity controlling method provided in an embodiment of the present invention is shown It is intended to.
As shown in Figure 1, the mobile terminal electric quantity controlling method, comprising the following steps:
S100: the current residual electricity of mobile terminal is obtained.
The voltameter for monitoring battery dump energy is built-in in mobile terminal.By being installed on answering for mobile terminal With electricity monitoring unit is arranged in program, it will be used to monitor battery dump energy in the electricity monitoring unit and the mobile terminal Voltameter is attached, so that the application program can monitor in real time the electric quantity change of mobile terminal, to acquire The current residual electricity of the mobile terminal.
S200: the current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program It is right.
It is directed to the application program for being mounted on the mobile terminal, is previously provided with power threshold, the power threshold is used In judging whether to start preset battery saving mode in the application program.The electricity that the application program passes through monitoring mobile terminal in real time After amount variation acquires the current residual electricity of the mobile terminal, by the current residual electricity of the mobile terminal and in advance Power threshold in the application program is compared, with compare the current residual electricity whether be less than it is described preset Power threshold, to determine whether to start preset battery saving mode in the application program according to comparison result.
In some embodiments, the power threshold defaulted in application program can be according to the type of the application program It is configured, or is configured according to the use state of the application program.
S300: it when the current residual electricity of the mobile terminal is less than the power threshold defaulted in application program, opens Move preset battery saving mode in the application program.
In the present embodiment, it is mounted on to preset in the application program of the mobile terminal and is equipped with different modes, including it is normal Operational mode and battery saving mode.For the application program, by the current residual electricity of the mobile terminal and the application is defaulted in Power threshold in program is compared, when the comparison result obtained is the current residual electricity more than or equal to described preset When power threshold, the normal operation mode of the application program is kept;And when the comparison result obtained is the current residual electricity When less than the preset power threshold, as battery saving mode start unit of the application program automatic trigger built in it, with starting Battery saving mode in the application program.
The current residual electricity that mobile terminal electric quantity controlling method described in above-described embodiment passes through acquisition mobile terminal;So The current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program afterwards, is judged mobile whole Whether the current residual electricity at end is less than the power threshold defaulted in application program;When judging result is the current of mobile terminal Remaining capacity is less than when defaulting in power threshold in the application program, as power saving mould of the application program automatic trigger built in it Formula start unit, to start preset battery saving mode in the application program.So, this can pointedly be reduced using journey The current consumption rate of sequence, moreover, because power threshold is by application setting, i.e., in the terminal, one is applied journey Sequence enters the operation that battery saving mode has no effect on another application program, so that mobile terminal more effectively can be more directed to Property power-saving control is carried out to application program, while improving the usage experience and reliability of application program.
In some embodiments, at least default in the application program to be equipped with a kind of battery saving mode, the battery saving mode can To include level-one battery saving mode, second level battery saving mode, three-level battery saving mode etc..Wherein, the level-one battery saving mode specifically executes Power-save operation be to reduce network request number and frequency;The power-save operation that the second level battery saving mode specifically executes is that disabling should The non-core heart function of application program;The power-save operation that the three-level battery saving mode specifically executes is to forbid the operation of the application program Deng.
In some embodiments, it when only pre-seting a kind of battery saving mode in the application program, can be answered according to described It carries out battery saving mode to the application program with the grouping in the be subordinated to mobile terminal of program to pre-set, so that mobile whole Realize that different application starts different battery saving modes in end, embodying the control of mobile terminal electricity has stronger specific aim.
Specifically, before the step S300, further includes:
S400: being grouped all application programs in the mobile terminal, establishes between grouping and battery saving mode Mapping relations carry out battery saving mode setting to the application program according to the mapping relations.
In the present embodiment, all application programs being installed in the mobile terminal are grouped, for example, according to The use frequent degree at family is divided into three groups such as " common " grouping, " general " group and " few to use " group.Wherein, described " normal With " corresponding to the level-one battery saving mode, " general " group corresponds to second level battery saving mode for grouping, " few to use " organize corresponds to In the three-level battery saving mode, to form the mapping relations between grouping and battery saving mode.Then, according to the application program Grouping group, corresponding battery saving mode is carried out to the application program and is pre-seted, so that when the current of the mobile terminal remains The corresponding entrance per a application program when remaining electricity is less than the power threshold defaulted in application program, in the mobile terminal The battery saving mode pre-seted according to its own realizes that different application enters different battery saving modes, embodies mobile terminal electricity Amount control has stronger specific aim.
For example, for example, if certain chat application is often used by a user, belonging to " often in a certain mobile terminal With " application program in grouping, at this point, the battery saving mode pre-seted in the application program is then level-one battery saving mode, when sentencing When the current residual electricity of the disconnected mobile terminal out is less than the power threshold defaulted in the application program, start this using journey Preset level-one battery saving mode in sequence, to reduce the network request number of times and frequency of the application program;If this chat application journey Sequence seldom user uses, and belongs to the application program in " few to use " group, at this point, the battery saving mode pre-seted in the application program It is then three-level battery saving mode, when the current residual electricity for judging the mobile terminal is less than the electricity defaulted in the application program When measuring threshold value, start preset three-level battery saving mode in the application program, directly by the closing application program.
Referring to Fig. 2, Fig. 2 is when starting battery saving mode in mobile terminal electric quantity controlling method provided in an embodiment of the present invention Method flow schematic diagram.In some embodiments, when pre-seting a variety of battery saving modes in the application program, for institute It states each battery saving mode pre-seted in application program and is correspondingly arranged a power threshold, in turn, according to the mobile terminal Current residual electricity meet power threshold condition when, start the power threshold condition pair in the application program with the satisfaction The battery saving mode answered.
As shown in Fig. 2, the step S300 can also include step S310, step S320 and step S330.Wherein, S310: when the current residual electricity of the mobile terminal is less than the first power threshold, start in the application program with it is described The corresponding level-one battery saving mode of first power threshold;S320: when the current residual electricity of the mobile terminal is less than the second electricity When threshold value, start second level battery saving mode corresponding with second power threshold in the application program;S330: when the movement When the current residual electricity of terminal is less than third power threshold, start corresponding with the third power threshold in the application program Three-level battery saving mode.
In the present embodiment, multiple battery saving modes are set in the application program according to preset power saving grade, according to Power saving effect is ascending to be divided into level-one battery saving mode, second level battery saving mode and three-level battery saving mode.The power saving of each grade The power-save operation that scheme control application program executes is different, wherein the level-one battery saving mode specifically controls application program execution Power-save operation be reduce the application program operation when network request number and frequency;The second level battery saving mode specifically controls The power-save operation that application program executes is the part non-core heart function disabled in the application program;The three-level battery saving mode is specific The power-save operation that control application program executes is that the application program is forbidden to run.Moreover, according to being arranged in the application program Battery saving mode, each battery saving mode are correspondingly arranged a power threshold, including the first electricity threshold corresponding with level-one battery saving mode Value and corresponding second power threshold of second level battery saving mode, third power threshold corresponding with three-level battery saving mode.Wherein, One power threshold > the second power threshold > third power threshold.Therefore, according between above-mentioned battery saving mode and power threshold Corresponding relationship, by by the current residual electricity of the mobile terminal acquired respectively with first power threshold, Two power thresholds and third power threshold are compared, to start corresponding battery saving mode in the application program.
Further, in some embodiments, the starting of the second level battery saving mode is attached to level-one battery saving mode and has opened Under dynamic precondition, and the starting of three-level battery saving mode is then attached under the precondition that second level battery saving mode has been turned on.Cause This, in the present embodiment can by the current residual electricity of the mobile terminal acquired successively with the first electricity threshold Value, second power threshold and the third power threshold are compared, thus successively start it is right in the application program The battery saving mode answered.
Specifically comparison process includes:
The current residual electricity is compared with first power threshold;
When the current residual electricity is greater than first power threshold, the normal work of the application program originally is kept Operation mode;
When the current residual electricity be less than or equal to first power threshold when, start in the application program with it is described Corresponding first battery saving mode of first power threshold, and the current residual electricity is compared with the second power threshold;
When the current residual electricity is greater than second power threshold, the first province of the application program originally is kept Power mode;
When the current residual electricity be less than or equal to second power threshold when, start in the application program with it is described Corresponding second battery saving mode of second power threshold, and the current residual electricity is compared with third power threshold;
When the current residual electricity is greater than the third power threshold, the second province of the application program originally is kept Power mode;
When the current residual electricity be less than or equal to the third power threshold when, start in the application program with it is described The corresponding third battery saving mode of third power threshold.
Above-described embodiment by successively with first power threshold, second power threshold and the third electricity Threshold value is compared, and gradually increases power saving effect, and user is allowed to control when using the application program with a progressive electricity User can be improved to the usage experience of application program in process.
Fig. 3 please be participate in, Fig. 3 is in mobile terminal electric quantity controlling method provided in an embodiment of the present invention according to application program Current operating conditions determine whether to start the method flow schematic diagram of preset battery saving mode in the application program.
As shown in figure 3, can also include step S500 before the step S200 in some embodiments.Specific steps It is as follows:
S500: judge whether the current operating conditions of the application program are in front stage operation state.
In the terminal, the operating status of application program is divided into three kinds, including front stage operation state, background operation state And closed state.The application program is being currently used in the front stage operation state representation user;The background operation state It is only current temporarily without using the application program to characterize user, but the application program is still in opening state;The closed state Characterization user is not turned on the application program.
It is being compared with the power threshold defaulted in application program in the current residual electricity of the mobile terminal Before, by obtaining the current operating conditions in the terminal of the application program, and judge the application program Whether current operating conditions are in front stage operation state, start preset battery saving mode in the application program at this time if can know Whether user will affect to the normal use of the application program.
After the step S500, the step S200 may include step S210.
S210: when the current operating conditions of the application program are not at front stage operation state, by the mobile terminal Current residual electricity be compared with the power threshold defaulted in application program.
When the current operating conditions of the application program are not at front stage operation state, by the current of the mobile terminal Remaining capacity is compared with the power threshold defaulted in application program, so that in the current residual electricity of the mobile terminal When amount is less than the power threshold defaulted in application program, starts preset battery saving mode in the application program, in this way will not The normal operation of the currently used application program of user is influenced, so that keeping away while carrying out electricity control to mobile terminal Exempt to influence user to the normal use of mobile terminal.
Above-described embodiment is according to the current operating conditions of application program, only when application program is not at front stage operation state When, it just considers whether to start its preset battery saving mode, and when application program is in front stage operation state, then keep the application User can be improved to the usage experience and reliability of application program in the normal operation mode of program.Change an angle explanation, needle To the application program for being not at front stage operation state, it is made to start battery saving mode, electricity control can be not only carried out to mobile terminal, but also User be will not influence to the normal use of mobile terminal.
Referring to Fig. 4, Fig. 4 is in mobile terminal electric quantity controlling method provided in an embodiment of the present invention according to application program Current operating conditions determine when to start the method flow schematic diagram of preset battery saving mode in the application program.
As shown in figure 4, in some embodiments, the application program can also be arranged according to the operating status of application program Power threshold, including and corresponding 4th power threshold of front stage operation state and the 5th electricity corresponding with non-front stage operation state Threshold value, and the 4th power threshold is less than the 5th power threshold.Wherein, the non-front stage operation state includes that backstage is transported Row state and closed state.The present embodiment controls when the application program starts by the current operating conditions according to application program Preset battery saving mode allows mobile terminal more effectively more targetedly to carry out power-saving control to application program, simultaneously Also improve the usage experience and reliability of application program.
After the step S500, the step S200 can also include step S220 and step S230.Wherein, S220: when the current operating conditions of the application program are in front stage operation state, by the current residual of the mobile terminal Electricity is compared with the 4th power threshold.S230: when the current operating conditions of the application program are running background shape When state, the current residual electricity of the mobile terminal is compared with the 5th power threshold.
In the present embodiment, by the operating status of application program in the terminal be divided into front stage operation state and it is non-before Platform operating status, and in the application program, each operating status is correspondingly arranged a power threshold, i.e. the 4th electricity threshold Value and the 5th power threshold, and the 4th power threshold is less than the 5th power threshold.For example, for example described 4th power threshold It is set as 20%, the 5th power threshold is set as 30%, when the current operating conditions for judging the application program are in When front stage operation state, the current residual electricity of the mobile terminal is compared with the 4th power threshold, if described When the current residual electricity of mobile terminal is lower than the 20% of the 4th threshold value setting, just it will start preset in the application program Battery saving mode, otherwise, the normal operation mode for keeping the application program original.However, when judging working as the application program When preceding operating status is in non-front stage operation state, by the current residual electricity of the mobile terminal and the 5th power threshold It is compared, if the current residual electricity of the mobile terminal is lower than the 30% of the 5th threshold value setting, so that it may start Preset battery saving mode in the application program, to carry out electricity control to mobile terminal.
Above-described embodiment according to the current operating conditions of the application program by determining when to start in the application program Preset battery saving mode allows mobile terminal more effectively more targetedly to carry out power-saving control to application program, simultaneously The usage experience and reliability of application program can also be improved.
Fig. 5 please be participate in, Fig. 5 is being averaged according to application program in method for controlling mobile terminal provided in an embodiment of the present invention The method flow schematic diagram of consumption rate setting application program power threshold.
As shown in figure 5, before the step S200 further include:
S600: the average consumption rate of application program is obtained.
The power threshold defaulted in application program can also be set according to the average consumption rate of the application program It is fixed.The average consumption rate of the application program is generally obtained by being tested for the property to the application program.
S700: the average consumption rate value is compared with preset consumption rate range, to obtain the average consumption The corresponding consumption rate range of rate.
After acquiring the average consumption rate of the application program, by the average consumption rate value and preset power consumption Rate range is compared, to obtain the corresponding consumption rate range of the average consumption rate.For example, according to the average consumption of application program Electric rate size marks off at least one consumption rate range in advance, the average consumption of a certain application program in acquiring mobile terminal After electric rate value, judge which preset consumption rate range it belongs to according to the size of the average consumption rate value, then obtaining should Consumption rate range belonging to average consumption rate value.
S800: according to electricity threshold in application program described in the correspondence setting between consumption rate value range and power threshold The size of value.
Each preset consumption rate range is corresponding with a preset power threshold, according to consumption rate value range and electricity The size of its power threshold can be arranged in corresponding relationship between threshold value in the application program.For example, according to application program Average consumption rate size mark off the first consumption rate range, the second consumption rate range and third consumption rate range in advance, it is right The power threshold answered is respectively 30%, 20% and 10%.When the average consumption for acquiring a certain application program in mobile terminal It is the second consumption rate range that rate value, which corresponds to consumption rate range, at this point, according to corresponding between consumption rate value range and power threshold Relationship show that the corresponding power threshold of the second consumption rate range is 20%, therefore, in the mobile terminal, the application program Power threshold be dimensioned to 20%.
The power threshold of the application program, Ke Yi are arranged by the average consumption rate according to application program for above-described embodiment Power consumption condition in mobile terminal for different application individually controls application program launching battery saving mode, so that mobile terminal Can more effectively more targetedly application program carry out power-saving control.
The embodiment of the present invention also provides a kind of mobile terminal electric quantity control unit to solve above-mentioned technical problem.Please specifically it join Fig. 6 is read, Fig. 6 is mobile terminal electric quantity control unit basic structure block diagram provided in an embodiment of the present invention.
As shown in fig. 6, a kind of mobile terminal electric quantity control unit, comprising: obtain module, processing module and execute mould Block.Wherein, the current residual electricity for obtaining module and being used to obtain mobile terminal;The processing module is used for the movement The current residual electricity of terminal is compared with the power threshold defaulted in application program;The execution module is used for when described When the current residual electricity of mobile terminal is less than the power threshold defaulted in application program, starts in the application program and preset Battery saving mode.
Mobile terminal electric quantity control unit described in above-described embodiment, by the current residual electricity for obtaining mobile terminal; Then the current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program, judges to move Whether the current residual electricity of terminal is less than the power threshold defaulted in application program;When judging result is working as mobile terminal Preceding remaining capacity is less than when defaulting in power threshold in the application program, as power saving of the application program automatic trigger built in it Mode startup unit, to start preset battery saving mode in the application program.So, the application can pointedly be reduced The current consumption rate of program, moreover, because power threshold is by application setting, i.e., in the terminal, one is applied Program enters the operation that battery saving mode has no effect on another application program, so that mobile terminal more effectively can more have needle Power-saving control to property is carried out to application program, while improving the usage experience and reliability of application program.
In some embodiments, battery saving mode is set according to preset power saving grade, including level-one battery saving mode, level-one save Power mode and level-one battery saving mode;The mobile terminal electric quantity control unit further include: grouping module.The grouping module is used It is grouped in all application programs in the mobile terminal, and establishes the mapping relations between grouping and battery saving mode, Battery saving mode setting is carried out to the application program according to the mapping relations.
In some embodiments, it is pre-seted and the power saving according to the battery saving mode according to the setting of default power saving grade The corresponding power threshold of mode, including the first power threshold corresponding with the level-one battery saving mode and the second level power saving mould Corresponding second power threshold of formula, third power threshold corresponding with the three-level battery saving mode;The mobile terminal electricity control Device processed further include: the first implementation sub-module, the second implementation sub-module and third implementation sub-module.Wherein, it described first holds Row submodule is used for when the current residual electricity of the mobile terminal is less than the first power threshold, is started in the application program Level-one battery saving mode corresponding with first power threshold;Second implementation sub-module is used for working as when the mobile terminal When preceding remaining capacity is less than the second power threshold, starts second level corresponding with second power threshold in the application program and save Power mode;The third implementation sub-module is used for when the current residual electricity of the mobile terminal is less than third power threshold, Start three-level battery saving mode corresponding with the third power threshold in the application program.
In some embodiments, the mobile terminal electric quantity control unit further include: the first processing submodule and second Handle submodule.Wherein, the first processing submodule is for judging whether the current operating conditions of the application program are in Front stage operation state;The second processing submodule is used to be not at front stage operation when the current operating conditions of the application program When state, the current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program.
In some embodiments, the power threshold of the application program is set according to the operating status of application program, including with Corresponding 4th power threshold of front stage operation state and the 5th power threshold corresponding with non-front stage operation state, and the described 4th Power threshold is less than the 5th power threshold;The mobile terminal electric quantity control unit further include: third handle submodule with And fourth process submodule.Wherein, the third processing submodule is used to be in when the current operating conditions of the application program When front stage operation state, the current residual electricity of the mobile terminal is compared with the 4th power threshold;Described Four processing submodules are used for when the current operating conditions of the application program are in non-operating status, by the mobile terminal Current residual electricity be compared with the 5th power threshold.
In some embodiments, the mobile terminal electric quantity control unit further include: the first acquisition submodule, the 5th processing Submodule and the 6th processing submodule.Wherein, first acquisition submodule is used to obtain the average consumption rate of application program; The 5th processing submodule is for the average consumption rate value to be compared with preset consumption rate range, described in obtaining The corresponding consumption rate range of average consumption rate;The 6th processing submodule is used for according to consumption rate value range and power threshold Between correspondence setting described in application program power threshold size.
In order to solve the above technical problems, the embodiment of the invention also provides a kind of computer equipments.Referring specifically to Fig. 7, Fig. 7 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
As shown in fig. 7, the schematic diagram of internal structure of computer equipment.As shown in fig. 7, the computer equipment includes passing through to be Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database Column, when which is executed by processor, may make processor to realize a kind of mobile terminal electric quantity controlling method.It should The processor of computer equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer is set It can be stored with computer-readable instruction in standby memory, when which is executed by processor, may make processing Device executes a kind of mobile terminal electric quantity controlling method.The network interface of the computer equipment is used for and terminal connection communication.Ability Field technique personnel are appreciated that structure shown in Fig. 7, only the block diagram of part-structure relevant to application scheme, and The restriction for the computer equipment being applied thereon to application scheme is not constituted, and specific computer equipment may include than figure Shown in more or fewer components, perhaps combine certain components or with different component layouts.
In the present embodiment, the processor obtains module 10, processing module 20 and execution module 30 for executing in Fig. 6 Concrete function, and the memory is stored with program code and Various types of data needed for executing above-mentioned module.The network connects Mouth to the data between user terminal or server for transmitting.Memory in the present embodiment is stored with mobile terminal electricity control Program code needed for executing all submodules in device processed and data, server are capable of the program code and number of invoking server According to the function of executing all submodules.
The current residual electricity that computer equipment described in above-described embodiment passes through acquisition mobile terminal;Then by the shifting The current residual electricity of dynamic terminal is compared with the power threshold defaulted in application program, judges the current surplus of mobile terminal Whether remaining electricity is less than the power threshold defaulted in application program;When the current residual electricity that judging result is mobile terminal is small When the power threshold defaulted in the application program, started as battery saving mode of the application program automatic trigger built in it single Member, to start preset battery saving mode in the application program.So, the current of the application program can pointedly be reduced Consumption rate, moreover, because power threshold is by application setting, i.e., in the terminal, an application program enters province Power mode has no effect on the operation of another application program, so that mobile terminal more effectively can be corresponded to more targetedly Power-saving control is carried out with program, while improving the usage experience and reliability of application program.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one When a or multiple processors execute, so that one or more processors execute mobile terminal electricity control described in any of the above-described embodiment The step of method processed.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of mobile terminal electric quantity controlling method, which is characterized in that the electric quantity controlling method is based on being mounted on described mobile whole The application program at end, comprising the following steps:
Obtain the current residual electricity of mobile terminal;
The current residual electricity of the mobile terminal is compared with the power threshold defaulted in application program;
When the current residual electricity of the mobile terminal is less than the power threshold defaulted in application program, start the application Preset battery saving mode in program.
2. mobile terminal electric quantity controlling method according to claim 1, which is characterized in that set according to preset power saving grade Set battery saving mode, including level-one battery saving mode, level-one battery saving mode and level-one battery saving mode;
It is described when the current residual electricity of the mobile terminal is less than and defaults in power threshold in application program, described in starting In application program the step of preset battery saving mode before, further includes:
All application programs in the mobile terminal are grouped, and establish the pass of the mapping between grouping and battery saving mode System carries out battery saving mode setting to the application program according to the mapping relations.
3. mobile terminal electric quantity controlling method according to claim 2, which is characterized in that according to described according to default power saving The battery saving mode of grade setting pre-sets power threshold corresponding with the battery saving mode, including with the level-one battery saving mode pair It is the first power threshold for answering, the second power threshold corresponding with the second level battery saving mode, corresponding with the three-level battery saving mode Third power threshold;
It is described when the current residual electricity of the mobile terminal is less than and defaults in power threshold in application program, described in starting In application program the step of preset battery saving mode, comprising:
When the current residual electricity of the mobile terminal is less than the first power threshold, start in the application program with described The corresponding level-one battery saving mode of one power threshold;
When the current residual electricity of the mobile terminal is less than the second power threshold, start in the application program with described The corresponding second level battery saving mode of two power thresholds;
When the current residual electricity of the mobile terminal is less than third power threshold, start in the application program with described the The corresponding three-level battery saving mode of three power thresholds.
4. mobile terminal electric quantity controlling method according to claim 1, which is characterized in that described by the mobile terminal Current residual electricity with default in front of the step of power threshold in application program is compared, further includes:
Judge whether the current operating conditions of the application program are in front stage operation state;
The step that the current residual electricity by the mobile terminal is compared with the power threshold defaulted in application program Suddenly, comprising:
When the current operating conditions of the application program are not at front stage operation state, by the current residual of the mobile terminal Electricity is compared with the power threshold defaulted in application program.
5. mobile terminal electric quantity controlling method according to claim 4, which is characterized in that according to the operation shape of application program State is arranged the power threshold of the application program, including the 4th power threshold corresponding with front stage operation state and with non-front stage operation Corresponding 5th power threshold of state, and the 4th power threshold is less than the 5th power threshold;
The step that the current residual electricity by the mobile terminal is compared with the power threshold defaulted in application program Suddenly, can also include:
When the current operating conditions of the application program are in front stage operation state, by the current residual electricity of the mobile terminal Amount is compared with the 4th power threshold;
When the current operating conditions of the application program are in non-operating status, by the current residual electricity of the mobile terminal Amount is compared with the 5th power threshold.
6. mobile terminal electric quantity controlling method according to claim 1, which is characterized in that described by the mobile terminal Current residual electricity with default in front of the step of power threshold in application program is compared, further includes:
Obtain the average consumption rate of application program;
The average consumption rate value is compared with preset consumption rate range, it is corresponding to obtain the average consumption rate Consumption rate range;
According to the size of power threshold in application program described in the correspondence setting between consumption rate value range and power threshold.
7. a kind of mobile terminal electric quantity control unit characterized by comprising
Module is obtained, for obtaining the current residual electricity of mobile terminal;
Processing module, for carrying out the current residual electricity of the mobile terminal with the power threshold defaulted in application program It compares;
Execution module is less than the power threshold defaulted in application program for the current residual electricity when the mobile terminal When, start preset battery saving mode in the application program.
8. mobile terminal electric quantity control unit according to claim 7, which is characterized in that set according to preset power saving grade Set battery saving mode, including level-one battery saving mode, level-one battery saving mode and level-one battery saving mode;The mobile terminal electricity control Device further include:
Grouping module for being grouped to all application programs in the mobile terminal, and establishes grouping and battery saving mode Between mapping relations, according to the mapping relations to the application program carry out battery saving mode setting.
9. a kind of electronic equipment, including memory and processor, computer-readable instruction, the meter are stored in the memory When calculation machine readable instruction is executed by the processor, so that the processor executes described in 1 to 6 any one of the claims Mobile terminal electric quantity controlling method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute movement described in any one of the claims 1 to 6 claim Terminal power control method.
CN201811528215.5A 2018-12-13 2018-12-13 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium Pending CN109803358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811528215.5A CN109803358A (en) 2018-12-13 2018-12-13 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811528215.5A CN109803358A (en) 2018-12-13 2018-12-13 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109803358A true CN109803358A (en) 2019-05-24

Family

ID=66556672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811528215.5A Pending CN109803358A (en) 2018-12-13 2018-12-13 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109803358A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264184A (en) * 2019-06-28 2019-09-20 Oppo(重庆)智能科技有限公司 Pay control method and Related product
CN111309133A (en) * 2020-01-22 2020-06-19 维沃移动通信有限公司 Power saving control method and electronic equipment
CN112925577A (en) * 2021-01-25 2021-06-08 北京达佳互联信息技术有限公司 Application program processing method, device, equipment, storage medium and program product
WO2024022255A1 (en) * 2022-07-29 2024-02-01 华为技术有限公司 Power saving method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302270A (en) * 2014-06-27 2016-02-03 宇龙计算机通信科技(深圳)有限公司 Terminal endurance optimization method and apparatus and terminal
CN107346167A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 The method and device of a kind of display control
CN107589822A (en) * 2017-08-23 2018-01-16 深圳市沃特沃德股份有限公司 Electricity-saving control method, device and mobile terminal
CN108279765A (en) * 2017-01-06 2018-07-13 北京嘀嘀无限科技发展有限公司 The method for managing power supply and mobile device of mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302270A (en) * 2014-06-27 2016-02-03 宇龙计算机通信科技(深圳)有限公司 Terminal endurance optimization method and apparatus and terminal
CN107346167A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 The method and device of a kind of display control
CN108279765A (en) * 2017-01-06 2018-07-13 北京嘀嘀无限科技发展有限公司 The method for managing power supply and mobile device of mobile device
CN107589822A (en) * 2017-08-23 2018-01-16 深圳市沃特沃德股份有限公司 Electricity-saving control method, device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264184A (en) * 2019-06-28 2019-09-20 Oppo(重庆)智能科技有限公司 Pay control method and Related product
CN110264184B (en) * 2019-06-28 2021-07-23 Oppo(重庆)智能科技有限公司 Payment control method and related product
CN111309133A (en) * 2020-01-22 2020-06-19 维沃移动通信有限公司 Power saving control method and electronic equipment
CN112925577A (en) * 2021-01-25 2021-06-08 北京达佳互联信息技术有限公司 Application program processing method, device, equipment, storage medium and program product
WO2024022255A1 (en) * 2022-07-29 2024-02-01 华为技术有限公司 Power saving method and electronic device

Similar Documents

Publication Publication Date Title
CN109803358A (en) Mobile terminal electric quantity controlling method, device, computer equipment and storage medium
CN102369647B (en) Power supply managment method and device of mobile terminal
US20040082362A1 (en) Method for power management of a smart phone
CN107944277B (en) Application starting control method and device, storage medium and intelligent terminal
CN105554316A (en) Intelligent terminal battery capacity reserving realization method and system
CN107589822A (en) Electricity-saving control method, device and mobile terminal
CN108536269A (en) A kind of method and its system reducing terminal standby power consumption
US20080136654A1 (en) Methods and devices for power source life value calculation and representation
CN105764021A (en) Smart watch conversation method and device
CN105915250A (en) Method, device and system for wearable device to synchronize with information in mobile terminal
US20020147037A1 (en) Power supply apparatus and method of supplying power to a mobile communication terminal
US20120129578A1 (en) Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby
CN109842521A (en) A kind of mobile terminal delay machine forecasting system and method
CN106713674B (en) Call processing method and incoming call handling device
CN108804294A (en) Method, apparatus, equipment and the computer readable storage medium that electricity is reminded
CN105955073A (en) Automatic starting method, system and mobile intelligent devices for satellite positioning device
WO2022111407A1 (en) Cell handover method and apparatus
CN106249898A (en) Prompting method and device for insufficient storage space and mobile device
CN105916196A (en) Power-saving stepped wifi control method
CN1991683A (en) Notebook computer
CN104464766B (en) The processing method and system of audio data
JP2001224068A (en) Communication equipment and its communication method
CN108271238A (en) The power-saving method and terminal device of a kind of terminal device
CN108055386A (en) Mobile terminal and its management method, storage device
CN106604368A (en) Information prompting control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination