Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of one embodiment of processing method of running unit of the present invention, as shown in Figure 1, the fortune of the present embodiment
The processing method of row unit, can specifically include following steps:
100, the consumption electricity of running unit is obtained;
For example, it is the application for realizing a certain function in the terminal that the running unit in the present embodiment, which can refer to installation,
Program (application;App), several running units can have been run on mobile terminal.It may be used in the present embodiment soft
Part is counted and is obtained to the consumption electricity of each running running unit.
101, judge to consume whether electricity is more than or equal to predetermined threshold value;If so, executing step 102;If it is not, not executing
Any intervention operation.
For example, in the terminal can be to the corresponding predetermined threshold value of the setting of each running unit, the predetermined threshold value
The corresponding running unit permitted maximum power consumption in the mobile terminal.When consuming electricity and being less than predetermined threshold value, then table
Show that the running unit can also continue to run in the mobile terminal, any intervention operation wouldn't be executed at this time.Otherwise work as consumption
When electricity is more than or equal to predetermined threshold value, step 102 is executed.
102, intervention processing is carried out to running unit.
The running unit that power consumption is offseted in the present embodiment more than or equal to predetermined threshold value carries out intervention processing, i.e., to consumption
The big running unit of electricity is intervened, and the power consumption of running unit in mobile terminal is reduced.
The processing method of the running unit of the present embodiment, by the consumption electricity for obtaining running unit;Judge consumption electricity
Whether predetermined threshold value is more than or equal to;If so, carrying out intervention processing to running unit.By using the above-mentioned skill of the present embodiment
Art scheme can carry out intervention processing to the running unit of unreasonable, consumption electricity carelessly the behavior in mobile terminal, from
And overcome behavior that is unreasonable, consuming electricity carelessly existing for certain running units in mobile terminal in the prior art, it leads
The defect that electric quantity consumption is too fast, cruising ability reduces for causing mobile terminal, slows down the electric quantity consumption of mobile terminal, enhances movement
The cruising ability of terminal.
Still optionally further, it on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 1, is determined in above-mentioned steps 101
The consumption electricity of the running unit is more than or equal to after predetermined threshold value, before step 102, further includes:Determine needs pair
The running unit is intervened.
Specifically, " determination needs to intervene running unit " in the present embodiment, following situation is specifically included:
Situation one:Judge whether to need to intervene running unit according to the property parameters of running unit, and determining need to
Running unit is intervened.
In the present embodiment, the running unit run in mobile terminal is both provided with various property parameters, for example, can set
It is equipped with and intervenes corresponding property parameters, it, can when including to intervene corresponding property parameters in the property parameters of the running unit
To determine that needs intervene the running unit.Otherwise, when do not include in the property parameters of running unit intervene it is corresponding
When property parameters, can determine need not intervene the running unit at this time.
Or the corresponding property parameters of intervention that can also running unit be set by " 1 " and " 0 ", for example, " 1 " indicates
The running unit needs to execute intervention processing, and " 0 " indicates that the running unit need not execute intervention processing.When what judgement obtained is somebody's turn to do
The consumption electricity of running unit be more than or equal to predetermined threshold value after, according to the corresponding property parameters of the intervention of running unit come
Determine the need for intervening, if such as the running unit the corresponding property parameters of intervention be 0, indicate that the running unit does not need
Intervene.If the corresponding property parameters of the intervention of the running unit are 1, indicate that the running unit needs to intervene.
Situation two:Specifically, intervention selection dialog box can be popped up, whether the running unit needs to do for selection by the user
In advance;And receive the intervention information that user is selected by human-machine interface module.
Wherein may include intervening and not intervening two kinds of selection information in the intervention dialog box of the present embodiment.Such as specifically may be used
To be to show " intervention " or " nonintervention " two buttons on the screen of the mobile terminal, selected for user.Or mobile whole
Two buttons of "Yes" or "No" are shown on the screen at end, are selected for user, wherein being to indicate to need to intervene, no expression does not need
Intervene.
Human-machine interface module in the present embodiment can be keyboard either mouse etc. at this time user can by keyboard or
The selection information in dialog box is intervened in mouse selection.When the screen of mobile terminal is touch screen, which can directly make
For human-machine interface module, user can directly pass through touch screen selection and intervene selection information in dialog box at this time.
Still optionally further, " intervention processing is carried out to running unit " in the step 103 in above-described embodiment, specifically
May include following two modes:
Mode one:Intervention processing is carried out to running unit according to running unit preset intervention processing mode.
In the above-described embodiments, user can be configured " the default means of intervention " of each running unit, in this way when
When the running unit needs to intervene, directly according to the preset intervention processing mode of the running unit, which is done
Pretreatment.For example, preset intervention processing mode can be to reduce performance operation, limit run time or thorough in the present embodiment
Bottom is closed.Or other default intervention processing modes can also be set, it no longer illustrates one by one herein.
Example is applied above-mentioned, specifically, it refers to allowing this running unit to continue to run with, but want to reduce performance and continue to run with
It asks and closes certain highly energy-consuming functions, only run basic function, reduce the resource allocation to this running unit.Such as some functions are very
More applications, the possible power consumption of basic function is fewer, and the function power consumption of corresponding big energy-consuming is relatively more;When reduction property
When can run, it can only keep its basic function, the function of highly energy-consuming that can close, the running unit of the application can be reduced
Power consumption.It refers to that this running unit is not allowed to run always to limit run time, must after allowing the running unit to run a bit of time
It must stop, and the operation a bit of time can be just again started up after waiting for a very long time, and so on, it is possible to reduce the operation
The power consumption of unit;Thoroughly close refer to immediately close off the running unit institute it is functional, do not allow the unit to consume electricity again, example
Such as not high for frequency of use, almost no application directly can be closed thoroughly to reduce power consumption.
Specifically, preset intervention processing mode can also use Digital ID in the property parameters of running unit, example
" reducing performance operation " processing is executed as " 01 " indicates running unit, " 11 " indicate running unit " limiting run time " processing,
" 10 " indicate that running unit executes " thoroughly closing " processing.In this way, according to the corresponding category of intervention processing mode of the running unit
Property parameter, can determine using which kind of intervene processing mode the running unit is handled.
Mode two:Pop-up intervenes processing mode and selects dialog box, and it includes at least two to intervene processing mode selection dialog box
Kind intervenes processing mode;Receive the corresponding intervention processing mode of running unit that user is selected by human-machine interface module.
In the realization method, and by popping up the form of dialog box come for user's selection intervention processing mode.Specifically,
It can pop up on the screen and intervene processing mode dialog box, may include having at least two intervention processing modes in the dialog box,
Then therefrom selected by user it is a kind of will be to the intervention processing mode of the running unit.Such as intervention processing mode selection pair
It talks about in frame include to reduce in performance operation, restriction run time or thorough closing at least two and intervenes processing modes, or
Person can also include;Or in the present embodiment can also include it is other intervene processing mode, no longer illustrate one by one herein.
Further, the corresponding intervention processing mode of running unit selected according to user carries out at intervention running unit
Reason.
In the present embodiment, specifically, it refers to allowing this running unit to continue to run with, but want to reduce performance and continue to run with
It asks and closes certain highly energy-consuming function running units, only run the running unit of basic function, reduce the resource to this running unit
Distribution;It refers to that this running unit is not allowed to run always to limit run time, necessary after this running unit operation a bit of time
Stop, and the operation a bit of time can be just again started up after waiting for a very long time, and so on;It refers at once thoroughly to close
The institute for closing the running unit is functional, and the unit is not allowed to consume electricity again.
User can use corresponding human-machine interface module from intervening in processing mode dialog box, select to want to use dry
Pretreatment mode, in this way, the intervention processing mode that user can be used to select carries out intervention processing to the running unit.By this
Technical solution is independently selected by user to intervene processing mode, targetedly be done according to the user's choice to running unit
Pretreatment, enhances the flexibility of intervention, and by the interaction with user, enhance the Experience Degree of user.
All alternatives used by above-described embodiment may be used combinable mode and arbitrarily combine, and form this
The alternative embodiment of invention, this is no longer going to repeat them.
The processing method of the running unit of above-described embodiment voluntarily selects two ways by preset attribute parameter and user
It determines and needs to intervene the running unit, and voluntarily select two ways to determine to this by preset attribute parameter and user
The processing mode that running unit is intervened.By using the present invention above-mentioned technical proposal, can in mobile terminal not
Reasonably, the running unit of the behavior of consumption electricity carries out intervention processing carelessly, to overcome in mobile terminal in the prior art
Certain running units existing for it is unreasonable, carelessly consume electricity behavior, cause the electric quantity consumption of mobile terminal too fast, continuous
The defect that boat ability reduces, slows down the electric quantity consumption of mobile terminal, enhances the cruising ability of mobile terminal.
Fig. 2 is the flow chart of another embodiment of processing method of running unit of the present invention, the running unit of the present embodiment
Processing method further introduces technical scheme of the present invention in further detail on the basis of the technical solution of above-described embodiment.
As shown in Fig. 2, the processing method of the running unit of the present embodiment, can specifically include following steps:
201, the consumption electricity of running unit is obtained;
202, judge whether the consumption electricity of the running unit is more than or equal to predetermined threshold value;If so, executing step
203;Otherwise, any intervention processing wouldn't be executed;
203, judge in the property parameters of the running unit whether to include to intervene corresponding property parameters;If so, executing
Step 204;Otherwise, any intervention processing wouldn't be executed;
204, the corresponding property parameters of intervention of the fortune unit are obtained;
205, judge whether the corresponding property parameters value of the intervention of the fortune unit is 1;If so, executing step 206;It is no
Then, any intervention processing wouldn't be executed;
206, determination needs to intervene running unit, executes step 207;
In the present embodiment, it is that 1 expression needs to intervene the running unit to intervene corresponding property parameters value;Intervention pair
The property parameters value answered is 0, and expression need not intervene the running unit.
207, the preset intervention processing mode of the running unit is obtained, step 208 is executed;
Specifically, include not only intervening corresponding property parameters value in the present embodiment, in property parameters, further include having intervention
The corresponding property parameters value of processing mode.Such as preset intervention processing side can be obtained from the property parameters of the running unit
The corresponding mark of formula, such as " 01 " indicate that running unit executes " reducing performance operation " processing, and " 11 " indicate that running unit " limits
Run time " processing, " 10 " indicate that running unit executes " thoroughly closing " processing.Here preset intervention processing mode is all
It is that the running unit is arranged in advance, specifically when setting, can be arranged according to the priority of the running unit itself, such as preferentially
The high running unit of grade can reduce performance operation, and the low running unit of priority directly can be closed thoroughly;For
Certain temporarily to also need to the running unit used, corresponding intervention processing mode can be to limit run time to it.It is adopted as
Preset intervention processing mode is arranged in each running unit, can targetedly carry out intervention processing to each running unit, keep away
Exempt from all running units to intervene processing mode using same and intervene processing, body is used to will not only reduce user
It tests, but also intervention treatment effeciency can be improved.
208, intervention processing is carried out to running unit according to the preset intervention processing mode of the running unit.
The processing method of the present embodiment running unit, by using above-mentioned technical proposal, can in mobile terminal not
Reasonably, the running unit of the behavior of consumption electricity carries out intervention processing carelessly, to overcome in mobile terminal in the prior art
Certain running units existing for it is unreasonable, carelessly consume electricity behavior, cause the electric quantity consumption of mobile terminal too fast, continuous
The defect that boat ability reduces, slows down the electric quantity consumption of mobile terminal, enhances the cruising ability of mobile terminal.Further, lead to
The property parameters for crossing running unit judge to intervene running unit, and according to the preset intervention processing mode pair of running unit
Running unit carries out intervention processing, can targetedly carry out intervention processing to each running unit, avoid all running units
It is handled to intervene using same processing mode of intervening, to will not only reduce the usage experience of user, but also can be carried
High level cadre pre-processes efficiency.
Fig. 3 is the flow chart of the processing method another embodiment of running unit of the present invention, the running unit of the present embodiment
Processing method further introduces the technical side of the present invention in further detail on the basis of the technical solution of above-described embodiment one
Case.As shown in figure 3, the processing method of the running unit of the present embodiment, can specifically include following steps:
301, the consumption electricity of running unit is obtained;
302, judge whether the consumption electricity of the running unit is more than or equal to predetermined threshold value;If when, execute step
303;Otherwise, any intervention processing wouldn't be executed;
303, selection dialog box is intervened in pop-up, prompts the user to choose whether to intervene in the intervention dialog box;
For example, intervene the specific form of expression of dialog box can be on the screen of the mobile terminal show " intervention " or
" nonintervention " two buttons are selected for user.Two buttons of "Yes" or "No" are either shown on the screen of the mobile terminal, are supplied
User selects, wherein being to indicate to need to intervene, no expression need not be intervened.When user's selection is no, expression need not intervene the fortune
Row unit can be continued to execute at this time with return to step 301;Or directly terminate, pause starts to detect again after a period of time.
304, the intervention information that user is selected by human-machine interface module is received;Execute 305;
305, whether intervention information that user selects is judged for intervention, if when, execute step 306;Otherwise, it wouldn't execute
Any intervention processing;
306, determination needs to intervene running unit;Execute step 307;
307, processing mode selection dialog box is intervened in pop-up, and it includes at least two which, which selects dialog box,
Intervene processing mode;
In the present embodiment, processing mode is intervened by pop-up and selects dialog box, and needs to execute intervention by user's selection
The intervention processing mode of reason.Such as the intervention processing mode of pop-up selects in dialog box to may include at least two intervention processing sides
Formula, for selection by the user.For example, at least two kinds intervene processing modes may include have reduce performance operation, limit run time or
At least two during person thoroughly closes intervene processing mode, or can also all include;Or can also include in the present embodiment
There are other intervention processing modes, no longer illustrates one by one herein.Or since the space of screen is limited, it can be arranged on the screen
Show that each intervenes the corresponding mark of processing mode, for example, by using A, B either character of C etc or 1,2 or 3 etc
Number, come indicate respectively reduce performance operation, limit run time or thoroughly close etc. intervene processing mode.
308, the corresponding intervention processing mode of running unit that user is selected by human-machine interface module is received;
309, the corresponding intervention processing mode of running unit selected according to user carries out intervention processing to running unit.
The processing method of the present embodiment running unit, by using above-mentioned technical proposal, can in mobile terminal not
Reasonably, the running unit of the behavior of consumption electricity carries out intervention processing carelessly, to overcome in mobile terminal in the prior art
Certain running units existing for it is unreasonable, carelessly consume electricity behavior, cause the electric quantity consumption of mobile terminal too fast, continuous
The defect that boat ability reduces, slows down the electric quantity consumption of mobile terminal, enhances the cruising ability of mobile terminal.And further,
Judge to intervene running unit by way of popping up dialog box, and processing mode is selected according to pop-up dialog box
The mode selected carries out intervention processing to running unit, is targetedly carried out at intervention to running unit according to the user's choice
Reason, enhances the flexibility of intervention, and by the interaction with user, enhance the Experience Degree of user.
Fig. 4 is the structural schematic diagram of one embodiment of processing unit of the running unit of the present invention, as shown in figure 4, this implementation
The processing unit of running unit of example may include:Acquisition module 11, judgment module 12 and intervention processing module 13.
In the present embodiment, acquisition module 11 is used to obtain the consumption electricity of running unit;Judgment module 12 and acquisition module
11 connections, for judging whether the consumption electricity that acquisition module 11 obtains is more than or equal to predetermined threshold value;Intervene processing module
13 connect with judgment module 12, determine consumption electricity more than or equal to default for judgment module 12 if intervening processing module 13
When threshold value, intervention processing is carried out to running unit.
The processing unit of the running unit of the present embodiment can be used for executing method shown in Fig. 1 by using above-mentioned module
The technical solution of embodiment, implementing principle and technical effect are similar, can refer to the record of above-described embodiment 1 in detail, herein
It repeats no more.
Fig. 5 is the structural schematic diagram of another embodiment of processing unit of the running unit of the present invention, as shown in figure 5, this reality
Can also include following technology further on the basis of the processing unit apparatus structure shown in Fig. 4 for applying the running unit of example
Scheme.
As shown in figure 5, the processing unit of the running unit of the present embodiment, further includes determining module 14, determining module 14 is used
When if judgment module 12 determines that consumption electricity is more than or equal to predetermined threshold value, determination needs to intervene running unit.
At this time accordingly, determining module 14 is connect with judgment module 12, judgment module 12 determine consumption electricity be more than or
When person is equal to predetermined threshold value, triggering determining module 14 starts.
Such as further, which is used to determine that it is pre- that consumption electricity is more than or equal in judgment module 12
If when threshold value, being determined the triggering of module 14 and starting, and judge whether to need to operation list according to the property parameters of the running unit
Member is intervened, and determination needs to intervene running unit.At this time further, intervene processing module 13 and determining module
14 connections, when the determination of determining module 14 needs to intervene running unit, triggering is intervened processing module 13 and is started, and does at this time
Preprocessing module 13 is specifically used for carrying out intervention processing to running unit according to the preset intervention processing mode of running unit.
Or as shown in figure 5, in the processing unit of the running unit of the present embodiment, which can specifically include
Pop up unit 141 and receiving unit 142.Wherein pop-up unit 141 is connect with judgment module 12, and pop-up unit 141 is for sentencing
When disconnected module 12 determines that consumption electricity is more than or equal to predetermined threshold value, by the triggering of judgment module 12, selection is intervened in pop-up
Dialog box, for selection by the user the running unit whether need to intervene, intervene dialog box include intervene and do not intervene two kinds
Select information;Receiving unit 142 is for receiving the intervention information that user is selected by human-machine interface module.At this time further,
Intervene processing module 13 to connect with receiving unit 142, receiving unit 142 touches after the intervention information for receiving user's selection
Dry preprocessing module 13 start, intervene processing module 13 according to the preset intervention processing mode of running unit to running unit into
Row intervention is handled.
The processing unit of the running unit of the present embodiment can be used for executing method shown in Fig. 2 by using above-mentioned module
The technical solution of embodiment, implementing principle and technical effect are similar, can refer to the record of above-mentioned related embodiment in detail,
This is repeated no more.
Fig. 6 is the structural schematic diagram of the processing unit another embodiment of the running unit of the present invention, as shown in fig. 6, this reality
Can also include following technology further on the basis of the processing unit apparatus structure shown in Fig. 4 for applying the running unit of example
Scheme.
It is identical as embodiment described in above-mentioned Fig. 5, as shown in fig. 6, the processing unit of the running unit of the present embodiment also includes
Determining module 14, and the determining module 14 can also include further pop-up unit 141 and receiving unit 142.It can join in detail
It is admitted to the record for stating embodiment illustrated in fig. 5, details are not described herein.
Wherein pop-up unit 141 is connect with judgment module 12, and pop-up unit 141 is used to determine consumption electricity in judgment module 12
When amount is more than or equal to predetermined threshold value, by the triggering of judgment module 12, selection dialog box is intervened in pop-up, for selection by the user
Whether the running unit, which needs, is intervened, and it includes intervening and not intervening two kinds of selection information to intervene dialog box;Receiving unit 142
The intervention information selected by human-machine interface module for receiving user.
Further, as shown in fig. 6, the processing unit of the running unit of the present embodiment, further include pop-up module 15 and connect
Receive module 16.Pop-up module 15 and receiving unit 142, when receiving unit 142 receives what user was selected by human-machine interface module
It when intervening information, determines that the running unit needs intervention to handle, triggers the pop-up of pop-up module 15 at this time and intervene processing mode selection
Dialog box, intervention processing mode selection dialog box include at least two intervention processing modes;Receiving module 16 is for receiving
User passes through the corresponding intervention processing mode of running unit that human-machine interface module selects.
Further, intervene processing module 13 to connect with receiving module 16, intervene processing module 13 and connect specifically for basis
The corresponding intervention processing mode of running unit for receiving user's selection that module 16 receives carries out intervention processing to running unit.
The processing unit of the running unit of the present embodiment can be used for executing method shown in Fig. 3 by using above-mentioned module
The technical solution of embodiment, implementing principle and technical effect are similar, can refer to the record of above-mentioned related embodiment in detail,
This is repeated no more.
The present invention also provides a kind of mobile terminal, the fortune such as figure 4 above-Fig. 6 any embodiments is provided on the mobile terminal
The processing unit of row unit, and the processing method of the running unit such as figure 1 above-Fig. 3 any embodiments may be used, it realizes to moving
Running unit in dynamic terminal carries out intervention processing, can refer to the record of related embodiment in detail, details are not described herein.
The mobile terminal of the present embodiment, by using above-mentioned running unit processing unit can in mobile terminal not
Reasonably, the running unit of the behavior of consumption electricity carries out intervention processing carelessly, to overcome in mobile terminal in the prior art
Certain running units existing for it is unreasonable, carelessly consume electricity behavior, cause the electric quantity consumption of mobile terminal too fast, continuous
The defect that boat ability reduces, slows down the electric quantity consumption of mobile terminal, enhances the cruising ability of mobile terminal.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.