Summary of the invention
The present invention provides a kind of method improving cruising time, obtain the title of application program of running background at terminal unit after, judge whether described title belongs to default application white list, when being not belonging to, described terminal unit disconnects the connection of described application program and network, to extend the cruising time of terminal unit, the present invention connects by disconnecting the network being not belonging to preset the application in white list, to reduce the quantity of the application having network to connect of running background, and then avoid user and just can be continuing with a certain application after complicated operation, owing to application will not be reloaded, thus saving the time of user, and without influence on the experience of user in whole process.
The invention provides a kind of method improving cruising time, described method is applied to be in the terminal unit of network connection state, and described method includes:
Described terminal unit obtains the title of the application program of running background;
Described terminal unit judges whether described title belongs to and presets application white list;
If be not belonging to, described terminal unit disconnects the connection of described application program and network, so that described terminal unit improves cruising time;
Wherein, described application program be described terminal unit backstage in connected by described network and to still provide for the application program of network interaction;
In described default application white list, storage is the title allowing to keep on backstage the application program of network connection in described terminal unit.
Described terminal unit obtains the title of the described application program of running background, particularly as follows:
Described terminal unit judges currently whether be in holding state;
If being in holding state, described terminal unit obtains the title of the described application program of running background.
Described terminal unit obtains the title of the described application program of running background, and also particularly as follows:
Described terminal unit judges currently whether be in holding state;
If being in holding state, described terminal unit judges the duration whether overtime threshold value being in holding state;
If it does, described terminal unit obtains the title of the described application program of running background.
After the connection that described terminal unit disconnects described application program and network, described method also includes:
Described terminal unit obtains the unit interval power consumption of other described application programs of running background;
Described terminal unit judges that whether described unit interval power consumption is more than power threshold;
If it does, described terminal unit notifies user, so that described terminal unit selects the connection determining whether to disconnect other described application programs with network according to described user.
After the connection that described terminal unit disconnects described application program and network, described method includes:
When described application program is in front stage operation, described terminal unit recovers the connection of described application program and network.
A kind of terminal unit, described terminal unit is in network connection state, and described terminal unit includes:
Acquisition module, for obtaining the title of the application program of running background;
Judge module, is used for judging whether described title belongs to and presets application white list;
Disconnect module, if be not belonging to, for disconnecting the connection of described application program and network, so that described terminal unit improves cruising time;
Wherein, described application program be described terminal unit backstage in connected by described network and to still provide for the application program of network interaction;
In described default application white list, storage is the title allowing to keep on backstage the application program of network connection in described terminal unit.
Described acquisition module, specifically for:
Judge currently whether be in holding state;
If being in holding state, obtain the title of the described application program of running background.
Described acquisition module, also particularly useful for:
Judge currently whether be in holding state;
If being in holding state, it is judged that be in the duration whether overtime threshold value of holding state;
If it does, obtain the title of the described application program of running background.
Described acquisition module, after the connection that described disconnection module disconnects described application program and network, for obtaining the unit interval power consumption of other described application programs of running background;
Described judge module is additionally operable to judge that whether described unit interval power consumption is more than power threshold;
Described terminal unit also includes:
Notification module, if it does, be used for notifying user, so that described disconnection module selects the connection determining whether to disconnect other described application programs with network according to described user.
Described terminal unit also includes:
Recover module, after the connection that described disconnection module disconnects described application program and network, when described application program is in front stage operation, for recovering the connection of described application program and network.
After the present invention obtains the title of the application program of running background at terminal unit, judge whether described title belongs to default application white list, when being not belonging to, described terminal unit disconnects the connection of described application program and network, to extend the cruising time of terminal unit, the present invention connects by disconnecting the network being not belonging to preset the application in white list, to reduce the quantity of the application having network to connect of running background, and then avoid user and just can be continuing with a certain application after complicated operation, owing to application will not be reloaded, thus saving the time of user, and without influence on the experience of user in whole process.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
In order to solve the problems of the prior art, the present invention proposes a kind of method improving cruising time, concrete as it is shown in figure 1, described method is applied to be in the terminal unit of network connection state, said method comprising the steps of:
Step 101, described terminal unit obtains the title of the application program of running background.
Wherein, described application program be described terminal unit backstage in connected by described network and to still provide for the application program of network interaction.
Concrete, when described terminal unit is in network connection state, the all application programs run in the backstage of terminal unit can connect that to carry out information with corresponding server mutual by described network, and then make user obtain information, and, now the quantity of the application of running background is more many, then the power consumption of terminal unit is also more big.
Current application program all can have the title of oneself uniqueness concrete, such as: the application program such as QQ, wechat, terminal unit is when running background application program, terminal unit is possible not only to determine the quantity of the application program of running background, it may also be determined that the title of the application program run, the present invention is when starting the title of application program that electricity-saving mechanism obtains running background, can be when user normally uses terminal unit, can also be terminal unit electricity lower than certain threshold value time, can also being obtain in other situations, concrete condition be determined according to practical situation.
In order to not affect the experience of user, it is ensured that the information of all application programs of running background can be obtained when user normally uses, specifically can there is following two situation when starting the title of application program of electricity-saving mechanism acquisition running background:
Situation one: described terminal unit judges currently whether be in holding state;
If being in holding state, described terminal unit obtains the title of the described application program of running background;If being not at holding state, then it is left intact.
Concrete, when user is in holding state, it was shown that user currently will not use described terminal unit, the demand of the information obtaining application program is not likely to be too high, now starting electricity-saving mechanism, described terminal unit obtains the title of the described application program of running background.
Described holding state is the state that described terminal unit can not be directly operated by user, for instance: when mobile phone terminal is black state, it is now the holding state of mobile phone terminal.
Situation two: described terminal unit judges currently whether be in holding state;
If being in holding state, described terminal unit judges the duration whether overtime threshold value being in holding state;If being not at holding state, then it is left intact.
If it does, described terminal unit obtains the title of the described application program of running background;If less than, described terminal unit does not then carry out subsequent treatment.
Concrete, in order to be further ensured that active user will not use described terminal unit, when described terminal unit is in holding state, described terminal unit determines the duration being in holding state, and judge whether described duration exceedes default time threshold, if it does, then illustrate that user did not use described terminal unit within a period of time, now starting electricity-saving mechanism, described terminal unit obtains the title of the described application program of running background.
Step 102, described terminal unit judges whether described title belongs to and presets application white list.If be not belonging to, then performing step 103, if belonged to, being then left intact.
In described default application white list, storage is the title allowing to keep on backstage the application program of network connection in described terminal unit.
Concrete, application program corresponding to title in described default application white list is the application program that user wants the moment to keep connecting, user wants to keep network connection state constantly by described application program, so that user can obtain the information of described application program timely, the application program being not belonging to preset application white list represents that user is not necessary to obtain constantly the information of described application program, or the information not user of described application program is concerned about especially, described terminal unit judges whether described title belongs to preset and whether have user to want the application program keeping network to connect constantly in the program that application white list is running background in order to determine described terminal unit, or the application program to user's particular importance, user needs to obtain the information in described application program in time.
Step 103, described terminal unit disconnects the connection of described application program and network, so that described terminal unit improves cruising time.
Such as, the running background of presently described terminal unit application program 1,2,3, if the title of described application program 1 belongs to presets application white list, and described application program 2,3 is not belonging to preset application program white list, so described terminal unit disconnects the connection of application program 2,3 and network, the network continuing to keep described application program 1 connects, the application program now run in the backstage of described terminal unit only has application program 1, that is: the quantity making the application program that network connects decreases, and then improves cruising time.
In order to improve the cruising time of described terminal unit further, after the connection that described terminal unit disconnects described application program and network, described method also includes:
Described terminal unit obtains the unit interval power consumption of other described application programs of running background;
Described terminal unit judges that whether described unit interval power consumption is more than power threshold;
If it does, described terminal unit notifies user, so that described terminal unit selects the connection determining whether to disconnect other described application programs with network according to described user.
Concrete, when the unit interval power consumption of described application program is more than default power threshold, the power consumption identifying described application program is higher than the power consumption of general application program, if it is intended to continue to improve the cruising time of described terminal unit, then need to kill except the of a relatively high application program of the power consumption of described terminal unit running background at end, but described application program is belonging to preset in application white list, it is that user wants with the application program obtaining information constantly, therefore, described terminal unit needs the selection according to user to determine whether the application program disconnecting power consumption more than power threshold.
Further, in order to increase the body-sensing of user, it is ensured that user can obtain the information of the application program that user wants, after the connection that described terminal unit disconnects described application program and network, described method includes:
When described application program is in front stage operation, described terminal unit recovers the connection of described application program and network.
Such as, now described terminal unit is disconnected application program 2, 3 with the connection of network, and continue to keep the network of described application program 1 to connect, when user wants to check the information in application program 2, the icon of described application program 2 is clicked in described electricity consumption, described application program 2 is made to be in front stage operation state, namely the running status connected from backstage without network is switched to the running status that foreground connects without network, without described application program 2 is reloaded in handoff procedure, described terminal unit recovers the connection of described application program 2 and network, and described application program 3 is thrown away and is in network off-state, so the application program run in described terminal unit can be allowed to keep network to connect according to the demand of user.
Certainly when user normally uses described terminal unit, in order to ensure that user can obtain the information of all application programs of running background, when described terminal unit is operated by user, namely described terminal unit has been switched to use state from holding state, and described terminal unit can recover the connection of the application program that all backstages disconnect.
After the present invention obtains the title of the application program of running background at terminal unit, judge whether described title belongs to default application white list, when being not belonging to, described terminal unit disconnects the connection of described application program and network, to extend the cruising time of terminal unit, the present invention connects by disconnecting the network being not belonging to preset the application in white list, to reduce the quantity of the application having network to connect of running background, and then avoid user and just can be continuing with a certain application after complicated operation, owing to application will not be reloaded, thus saving the time of user, and without influence on the experience of user in whole process.
Based on the inventive concept same with said method, the present invention proposes a kind of terminal unit, as in figure 2 it is shown, described terminal unit is in network connection state, described terminal unit includes:
Acquisition module 21, for obtaining the title of the application program of running background;
Judge module 22, is used for judging whether described title belongs to and presets application white list;
Disconnect module 23, if be not belonging to, for disconnecting the connection of described application program and network, so that described terminal unit improves cruising time;
Wherein, described application program be described terminal unit backstage in connected by described network and to still provide for the application program of network interaction;
In described default application white list, storage is the title allowing to keep on backstage the application program of network connection in described terminal unit.
Described acquisition module, specifically for:
Judge currently whether be in holding state;
If being in holding state, obtain the title of the described application program of running background.
Described acquisition module, also particularly useful for:
Judge currently whether be in holding state;
If being in holding state, it is judged that be in the duration whether overtime threshold value of holding state;
If it does, obtain the title of the described application program of running background.
Described acquisition module, after the connection that described disconnection module disconnects described application program and network, for obtaining the unit interval power consumption of other described application programs of running background;
Described judge module is additionally operable to judge that whether described unit interval power consumption is more than power threshold;
Described terminal unit also includes:
Notification module, if it does, be used for notifying user, so that described disconnection module selects the connection determining whether to disconnect other described application programs with network according to described user.
Described terminal unit also includes:
Recover module, after the connection that described disconnection module disconnects described application program and network, when described application program is in front stage operation, for recovering the connection of described application program and network.
After the present invention obtains the title of the application program of running background at terminal unit, judge whether described title belongs to default application white list, when being not belonging to, described terminal unit disconnects the connection of described application program and network, to extend the cruising time of terminal unit, the present invention connects by disconnecting the network being not belonging to preset the application in white list, to reduce the quantity of the application having network to connect of running background, and then avoid user and just can be continuing with a certain application after complicated operation, owing to application will not be reloaded, thus saving the time of user, and without influence on the experience of user in whole process.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program upon execution, performs to include the step of above-mentioned each embodiment of the method;And aforesaid storage medium includes: the various media that can store program code such as ROM, RAM, magnetic disc or CDs.
Device embodiment described above is merely schematic, the unit wherein illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed at least two NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, when not paying performing creative labour, are namely appreciated that and implement.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to foregoing embodiments, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein some or all of technical characteristic is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.