Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of method of electricity saving of mobile terminal, take solve existing electricity saving of mobile terminal mode can not be according to the problem of hardware module in the automatic turning-off mobile terminal of the dump energy of mobile terminal and third party application as arranging by user.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
A method for electricity saving of mobile terminal, the method comprises the following steps:
Detect in real time the dump energy of this mobile terminal;
According to default electric weight grade threshold, judge the grade under this dump energy;
When the grade under described dump energy is during lower than default grade, obtain hardware module list and third party's list of application in mobile terminal, the grade belonging to according to this dump energy and default power saving rule, control the duty of this hardware module and the running status of this third party application.
Preferably, further comprising the steps of before the step of dump energy that detects in real time this mobile terminal:
Whether detect this mobile terminal in charged state;
If so, the hardware module of controlling in this hardware module list enters default optimum Working, and the application of controlling in this third party's list of application maintains current running status;
If not, detect in real time the dump energy of this mobile terminal.
Preferably, this hardware module comprises a kind of or its combination in any in bluetooth module, near-field communication module, WIFI module, locating module and data communication module.
Preferably, this default power saving rule is that the different grade correspondence of this dump energy is closed different hardware modules and different third party's application.
Preferably, the grade that this belongs to according to this dump energy and default power saving rule, the step that changes the duty of the hardware module in this hardware module list and the running status of the application in this third party's list of application comprises:
Determine the grade that this dump energy is affiliated;
Inquire about the power-saving instruction of this grade correspondence in this default power saving rule;
According to this power-saving instruction, controlling third party's application corresponding in hardware module corresponding in this hardware module list and this third party's list of application quits work.
The present invention also aims to provide a kind of system of electricity saving of mobile terminal, this system comprises:
The first detecting unit, for detecting in real time the dump energy of this mobile terminal;
Judging unit, for judging the grade under this dump energy according to default electric weight grade threshold;
Acquiring unit, during lower than default grade, obtains hardware module list and third party's list of application in mobile terminal for the grade when under this dump energy;
The first control module, for grade and the default power saving rule belonging to according to this dump energy, controls the duty of this hardware module and the running status of this third party application.
Preferably, this system also comprises:
The second detecting unit, for detection of this mobile terminal whether in charged state;
The second control module, at this mobile terminal during in charged state, the hardware module of controlling in this hardware module list enters default optimum Working, and the application of controlling in this third party's list of application maintains current running status.
Preferably, this hardware module comprises a kind of or its combination in any in bluetooth module, near-field communication module, WIFI module, locating module and data communication module;
This default power saving rule is that the different grade correspondence of this dump energy is closed different hardware modules and different third party's application.
Preferably, this first control module comprises:
Determine subelement, for the grade under definite this dump energy;
Inquiry subelement, for inquiring about this grade at power-saving instruction corresponding to this default power saving rule;
Control subelement, for control third party's application corresponding in hardware module corresponding to this hardware module list and this third party's list of application according to this power-saving instruction, quit work.
Another object of the present invention is to provide a kind of mobile terminal, this mobile terminal comprises the system of electricity saving of mobile terminal as above.
In the method for the embodiment of the present invention, system, by obtaining hardware module list and the third party's list of application in mobile terminal, detect and judge the affiliated grade of dump energy of mobile terminal, according to the grade under this dump energy and default power saving rule, control the duty of the hardware module in mobile terminal and the running status of third party's application, make mobile terminal when lower grade of electric weight, close the electric energy that some hardware modules and third party apply to save mobile terminal, extend the service time of mobile terminal.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
Fig. 1 shows the flow process of the method for the electricity saving of mobile terminal that the embodiment of the present invention provides, and for convenience of explanation, only lists the part relevant to the embodiment of the present invention, and details are as follows:
The method of the electricity saving of mobile terminal that the embodiment of the present invention provides, comprises the following steps:
Step S300, detects the dump energy of this mobile terminal in real time.When mobile terminal charges, detect in real time the dump energy of battery in mobile terminal.
Step S400, judges the grade under this dump energy according to default electric weight grade threshold.In embodiments of the present invention, the electric weight of battery is divided into different grades, this electric weight grade threshold can be systemic presupposition, also can arrange by user, the value just arranging with user when user arranges is as electric weight grade threshold, when user arranges, (for example adopt the electric weight grade threshold of systemic presupposition, when dump energy be battery of mobile terminal capacity 80% time be the first order, when dump energy is the 60%-80% of battery of mobile terminal capacity, be the second level, it when dump energy is the 40%-60% of battery of mobile terminal capacity, is the third level ... the rest may be inferred, above numerical value is only for illustrating, be not defined for the present invention's scope required for protection).Detected after the dump energy of the battery in mobile terminal, detected the affiliated grade of this dump energy.
Step S500, when the grade under this dump energy is during lower than default grade, obtains hardware module list and third party's list of application in mobile terminal.In embodiments of the present invention, mobile terminal comprises mobile phone, panel computer, the mobile electronic devices such as electronic reader, hardware module in mobile terminal includes but not limited to bluetooth module, near-field communication module (NFC), WIFI module, locating module and data communication module, simultaneously, various third party's application is installed in different mobile terminals, first obtain the list of the hardware module comprising in mobile terminal and the list of third party's application, be convenient to according to the grade of dump energy, control the duty of hardware module in mobile terminal and the running status of the 3rd application in subsequent step.
Step S600, the grade belonging to according to this dump energy and default power saving rule, control the duty of the hardware module in this hardware module list and the running status of the application in this third party's list of application.In embodiments of the present invention, this default power saving rule is that the different hardware module of the corresponding control of the different grade of this dump energy and different third party's application quit work.
Embodiment mono-:
Fig. 2 is the realization flow of the method for the electricity saving of mobile terminal that provides of first embodiment of the invention, for convenience of explanation, only lists the part relevant to the embodiment of the present invention, and details are as follows:
Whether step S100, detect this mobile terminal in charged state;
If so, perform step S200; If not, perform step S300.
In embodiments of the present invention, when mobile terminal does not charge, when reaching power saving condition, enter power saving flow process, when mobile terminal charges, control mobile terminal and enter optimum Working.
Step S200, the hardware module of controlling in this hardware module list enters default optimum Working, and the application of controlling in this third party's list of application maintains current running status.In the embodiment of the present invention, this default optimum Working refers to that the conventional hardware module of user all enters duty, third party application maintains current running status, the obtain manner of the hardware module list that this is conventional by detect in mobile terminal week age the number of starts maximum/or the longest 2-5 of a working time hardware module.
Embodiment bis-:
Fig. 3 shows the realization flow of the method for the electricity saving of mobile terminal that second embodiment of the invention provides, and for convenience of explanation, only lists the part relevant to the embodiment of the present invention, and details are as follows:
As one embodiment of the present invention, step 600 comprises:
Step S601, determines the grade that this dump energy is affiliated;
Step S602, inquires about the power-saving instruction of this grade correspondence in this default power saving rule;
Step S603, controls third party's application corresponding in hardware module corresponding in this hardware module list and this third party's list of application according to this power-saving instruction and quits work.
In embodiments of the present invention, determined after the grade that this dump energy belongs to, according to corresponding third party's application in hardware module corresponding in default power saving rule control hardware module list and this third party's list of application, quit work.For example, when the grade of this dump energy is elementary power saving grade, the third party of control hardware modules A 1 and current operation applies B1 and quits work, and when the grade of this dump energy is intermediate power saving grade, the third party of control hardware modules A 2, A3 and current operation applies B2, B3 quits work.Above-mentionedly only be illustrated, in this default power saving rule of quantity basis of the hardware module of concrete control and third party's application, corresponding power-saving instruction is carried out.
Fig. 4 shows the framed structure of the system of the electricity saving of mobile terminal that the embodiment of the present invention provides, and for convenience of explanation, only lists the part relevant to the embodiment of the present invention, and details are as follows:
The system 1 of the electricity saving of mobile terminal that the embodiment of the present invention provides comprises according to function logic division and connects in turn the first detecting unit 11, the first control module 12, the second detecting unit 13, judging unit 14, acquiring unit 15 and the second control module 16.
In embodiments of the present invention, the first detecting unit 11 for detection of this mobile terminal whether in charged state;
The first control module 12 is at this mobile terminal during in charged state, and the hardware module of controlling in this hardware module list enters default optimum Working, and the application of controlling in this third party's list of application maintains current running status.
The second detecting unit 13 is for detecting in real time the dump energy of this mobile terminal;
Judging unit 14 is for judging the grade under this dump energy according to default electric weight grade threshold;
Acquiring unit 15 during lower than default grade, obtains hardware module list and third party's list of application in mobile terminal for the grade when under this dump energy;
Grade and the default power saving rule of the second control module 16 for belonging to according to this dump energy, controls the duty of the hardware module in this hardware module list and the running status of the application in this third party's list of application.
The system of the electricity saving of mobile terminal that the embodiment of the present invention provides is corresponding to the method for electricity saving of mobile terminal in the present invention and above-described embodiment, and its principle of work and working method are all corresponding applicable, here and subsequent embodiment just repeat no more.
As one embodiment of the present invention, this hardware module comprises a kind of or its combination in any in bluetooth module, near-field communication module, WIFI module, locating module and data communication module;
This default power saving rule is that the different grade correspondence of this dump energy is closed different hardware modules and different third party's application.
As one embodiment of the present invention, the second control module 600 comprises: determine subelement 161, inquiry subelement 162 and inquiry subelement 162.
In embodiments of the present invention, determine that subelement 161 is for the grade under definite this dump energy;
Inquiry subelement 162 is for inquiring about this grade at power-saving instruction corresponding to this default power saving rule;
Controlling subelement 163 quits work for control third party's application corresponding in hardware module corresponding to this hardware module list and this third party's list of application according to this power-saving instruction.Another object of the present invention is to provide a kind of mobile terminal, this mobile terminal comprises the system of electricity saving of mobile terminal as above.
In embodiments of the present invention, by obtaining hardware module list and the third party's list of application in mobile terminal, detect and judge the affiliated grade of dump energy of mobile terminal, according to the grade under this dump energy and default power saving rule, control the duty of the hardware module in mobile terminal and the running status of third party's application, make mobile terminal when lower grade of electric weight, close the electric energy that some hardware modules and third party apply to save mobile terminal, extend the service time of mobile terminal.
It will be appreciated by those skilled in the art that the unit that comprises for above-described embodiment is just divided according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skills it is also understood that, the all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.