CN105094936B - Background application method for cleaning and device applied to mobile terminal - Google Patents

Background application method for cleaning and device applied to mobile terminal Download PDF

Info

Publication number
CN105094936B
CN105094936B CN201510621872.4A CN201510621872A CN105094936B CN 105094936 B CN105094936 B CN 105094936B CN 201510621872 A CN201510621872 A CN 201510621872A CN 105094936 B CN105094936 B CN 105094936B
Authority
CN
China
Prior art keywords
background application
mobile terminal
encumbrance
mentioned
preset
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.)
Active
Application number
CN201510621872.4A
Other languages
Chinese (zh)
Other versions
CN105094936A (en
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201510621872.4A priority Critical patent/CN105094936B/en
Publication of CN105094936A publication Critical patent/CN105094936A/en
Application granted granted Critical
Publication of CN105094936B publication Critical patent/CN105094936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of background application method for cleaning and device applied to mobile terminal, wherein, above-mentioned background application method for cleaning includes:Detect the memory usage of mobile terminal;If detecting, the memory usage of mobile terminal is more than preset memory usage threshold value, determine that background application can encumbrance according to the first formula and the second formula;If the current background application quantity of mobile terminal be more than background application can encumbrance, the background application of mobile terminal is cleared up so that the background application quantity of mobile terminal can encumbrance no more than background application.Technical solution provided by the invention can realize the automatic cleaning of background application, avoid leading to mobile terminal interim card due to background application is excessive.

Description

Background application method for cleaning and device applied to mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of background application applied to mobile terminal is clear Manage method and apparatus.
Background technology
Smart mobile phone is frequently encountered slack-off, program and runs slack problem in use.This is mainly due to In use, backstage runs a large amount of application program simultaneously, occupies a large amount of memory, and influencing the normal of user makes With.In this case, clearing up the inessential application program being currently running on smart mobile phone becomes particularly significant.
At present, background application can be cleared up by a key clearing function by carrying the smart mobile phone of Android operation system, One key clearing function is by the Procession information of application programme being currently running all in acquisition system, then by the application journey of nonsystematic Sequence process kills, so as to reach memory, reduction central processing unit (CPU, the Central shared by release application program Processing Unit) occupancy, reduce the purpose of power consumption and extending cell phone usage time.
Although a key clearing function can achieve the purpose that clear up background application, however, in current smart mobile phone One key clearing function needs manually perform, and without timing clearing function, user are needed to click associated button one key of triggering manually clear Function is managed, in addition, general user does not know the function of key cleaning, more uses more blocks so as to cause mobile phone.
Invention content
The present invention provides a kind of background application method for cleaning and device applied to mobile terminal, is used to implement backstage The automatic cleaning of application program avoids leading to mobile terminal interim card due to background application is excessive.
First aspect present invention provides a kind of background application method for cleaning applied to mobile terminal, including:
Detect the memory usage of mobile terminal;
If detecting, the memory usage of above-mentioned mobile terminal is more than preset memory usage threshold value, according to first Formula and the second formula determine that background application can encumbrance;
If the current background application quantity of above-mentioned mobile terminal be more than above-mentioned background application can encumbrance, The background application of above-mentioned mobile terminal is cleared up so that the background application quantity of above-mentioned mobile terminal is not more than Above-mentioned background application can encumbrance;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance.
Second aspect of the present invention provides a kind of background application cleaning plant applied to mobile terminal, including:
First detection unit, for detecting the memory usage of mobile terminal;
Determination unit detects that the memory usage of above-mentioned mobile terminal is more than for working as above-mentioned first detection unit and presets Memory usage threshold value when, determine that background application can encumbrance according to the first formula and the second formula;
Application program clears up unit, for working as the current background application quantity of above-mentioned mobile terminal more than above-mentioned backstage Application program can encumbrance when, the background application of above-mentioned mobile terminal is cleared up so that after above-mentioned mobile terminal Platform number of applications can encumbrance no more than above-mentioned background application;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance.
Therefore the present invention by background application can encumbrance be associated with the memory usage of mobile terminal, pass through The memory usage of mobile terminal is detected, when the memory usage for detecting mobile terminal is used more than preset memory During rate threshold value, determine background application can encumbrance, so as to work as the current background application quantity of mobile terminal be more than should Background application can encumbrance when, the background application of the mobile terminal is cleared up so that after the mobile terminal Platform number of applications no more than the background application can encumbrance, it is achieved thereby that the automatic cleaning of background application, It can avoid leading to mobile terminal interim card due to background application is excessive.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other attached drawings according to these attached drawings.
Fig. 1 shows for background application method for cleaning one embodiment flow provided by the invention applied to mobile terminal It is intended to;
Fig. 2 is another embodiment flow of the background application method for cleaning provided by the invention applied to mobile terminal Schematic diagram;
Fig. 3 is the background application method for cleaning further embodiment flow provided by the invention applied to mobile terminal Schematic diagram;
Fig. 4 shows for background application cleaning plant one embodiment structure provided by the invention applied to mobile terminal It is intended to.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing in embodiment, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel all other embodiments obtained without making creative work belong to the model that the present invention protects It encloses.
A kind of background application method for cleaning applied to mobile terminal provided in an embodiment of the present invention is carried out below Description, referring to Fig. 1, the background application method for cleaning in the embodiment of the present invention includes:
101st, the memory usage of mobile terminal is detected;
In the embodiment of the present invention, background application cleaning plant is real-time or is periodically detected the use of the memory of mobile terminal Rate, wherein, memory usage=(using memory/total memory) * 100%.
If the 102, detecting, the memory usage of above-mentioned mobile terminal is more than preset memory usage threshold value, according to First formula and the second formula determine that background application can encumbrance;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance, and a downward rounding of numerical value is by int () expressions The function of immediate integer.
Optionally, above-mentioned memory usage threshold value takes 50%, and certainly, above-mentioned memory can also be according to practical feelings using threshold value Condition is set, and is not construed as limiting herein.
In the embodiment of the present invention, above-mentioned background application encumbrance can be the value set during manufacture, alternatively, after above-mentioned It is made by oneself in the setting interface that platform application program encumbrance can also be provided by user in background application cleaning plant Justice setting, is not construed as limiting herein.
If the 103rd, the current background application quantity of above-mentioned mobile terminal be more than above-mentioned background application can encumbrance, Then, the background application of above-mentioned mobile terminal is cleared up so that the background application quantity of above-mentioned mobile terminal is not It can encumbrance more than above-mentioned background application;
In the embodiment of the present invention, when step 102 determine above-mentioned background application can encumbrance after, further judge on Stating the current background application quantity of mobile terminal, whether the above-mentioned background application determined more than step 102 can retain Number, when judge the current background application quantity of above-mentioned mobile terminal be more than step 102 determine above-mentioned background application journey Sequence can encumbrance when, start to clear up the background application of above-mentioned mobile terminal, so that after above-mentioned mobile terminal Platform number of applications can encumbrance no more than above-mentioned background application.For example, when step 102 determines above-mentioned backstage Application program can encumbrance be 2, and when the current background application quantity of above-mentioned mobile terminal is 4, then background application Cleaning plant judges that the current background application quantity of above-mentioned mobile terminal can more than the background application that step 102 determines Encumbrance, background application cleaning plant start to clear up the background application of above-mentioned mobile terminal, dispose State 2 background applications of mobile terminal so that the background application of above-mentioned mobile terminal becomes 2 from 4.
In background application cleaning plant during the background application to above-mentioned mobile terminal is cleared up, Background application cleaning plant may be used the following two kinds mode and the background application of above-mentioned mobile terminal cleared up: 1st, background application cleaning plant is according to startup time of each background application of above-mentioned mobile terminal, during according to starting Between sequence from long to short the background application of above-mentioned mobile terminal is cleared up so that the backstage of above-mentioned mobile terminal should It can encumbrance no more than above-mentioned background application with program quantity;2nd, background application cleaning plant is according to above-mentioned mobile whole The memory headroom that each background application at end occupies, according to the descending sequence of the memory headroom of occupancy to above-mentioned movement The background application of terminal is cleared up so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage It can encumbrance with program.Certainly, after background application cleaning plant can also use other manner to above-mentioned mobile terminal Platform application program is cleared up, only need to be finally so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage With program can encumbrance, for example, background application cleaning plant can also use randomly select background application into The mode of row cleaning clears up the background application of above-mentioned mobile terminal so that the background application journey of above-mentioned mobile terminal Ordinal number amount can encumbrance no more than above-mentioned background application.Not to background application cleaning plant pair in the embodiment of the present invention The concrete mode that the background application of above-mentioned mobile terminal is cleared up is defined.
It should be noted that the background application cleaning plant in the embodiment of the present invention can be integrated in mobile terminal In, above-mentioned mobile terminal is specifically as follows smart mobile phone, tablet computer, palm PC or other has running background application program The mobile terminal of function, is not construed as limiting herein.
Therefore the present invention by background application can encumbrance be associated with the memory usage of mobile terminal, pass through The memory usage of mobile terminal is detected, when the memory usage for detecting mobile terminal is used more than preset memory During rate threshold value, determine background application can encumbrance, so as to work as the current background application quantity of mobile terminal be more than should Background application can encumbrance when, the background application of the mobile terminal is cleared up so that after the mobile terminal Platform number of applications no more than the background application can encumbrance, it is achieved thereby that the automatic cleaning of background application, It can avoid leading to mobile terminal interim card due to background application is excessive.
A kind of background application method for cleaning applied to mobile terminal is described with another embodiment below, this In inventive embodiments, first the remaining capacity of mobile terminal is detected before the memory usage of detection mobile terminal, it please Referring to Fig.2, the background application method for cleaning in the embodiment of the present invention includes:
201st, whether the remaining capacity of detection mobile terminal is less than preset power threshold;
In the embodiment of the present invention, background application cleaning plant is real-time or is periodically detected the residue electricity of mobile terminal Amount when detecting that above-mentioned mobile terminal remaining capacity is less than above-mentioned power threshold, performs step 202, when detecting above-mentioned shifting When dynamic terminal residual electricity is not less than above-mentioned power threshold, step 203 is performed.
Optionally, above-mentioned power threshold takes 20%, certainly, above-mentioned power threshold can also by user according to actual demand into Row setting, is not construed as limiting herein.
202nd, the background application quantity of above-mentioned mobile terminal is controlled to be not more than 1;
When background application cleaning plant detects that the remaining capacity of above-mentioned mobile terminal is less than above-mentioned power threshold, Show that current above-mentioned mobile terminal is in low battery state, background application cleaning plant controls the backstage of above-mentioned mobile terminal Number of applications is not more than 1, in order to reduce the power consumption of above-mentioned mobile terminal.Specifically, background application cleaning dress It puts and controls mode of the background application quantity no more than 1 of above-mentioned mobile terminal can be as follows:When background application is cleared up Device detects that the remaining capacity of above-mentioned mobile terminal is less than above-mentioned power threshold, and the background application that above-mentioned mobile terminal is current When program quantity is more than 1, above-mentioned background application cleaning plant clears up the background application of above-mentioned mobile terminal, Cause the background application quantity of above-mentioned mobile terminal no more than 1, later return to step 201, so as in above-mentioned mobile terminal Remaining capacity restore to above-mentioned power threshold after can enter step 203.
Process of the background application quantity no more than 1 of above-mentioned mobile terminal is controlled in background application cleaning plant In, background application cleaning plant can carry out the background application of above-mentioned mobile terminal by the following two kinds mode clear Reason:1st, background application cleaning plant is according to startup time of each background application of above-mentioned mobile terminal, according to opening The sequence of dynamic time from long to short clears up the background application of above-mentioned mobile terminal so that after above-mentioned mobile terminal Platform number of applications is not more than 1;2nd, background application cleaning plant is according to each background application journey of above-mentioned mobile terminal The memory headroom that sequence occupies, according to the descending sequence of the memory headroom of occupancy to the background application of above-mentioned mobile terminal It is cleared up so that the background application quantity of above-mentioned mobile terminal is not more than 1.Certainly, background application cleaning plant The background application of above-mentioned mobile terminal can also be cleared up using other manner, need to only be finally reached the above-mentioned shifting of control The background application quantity of dynamic terminal is not more than 1 purpose, for example, background application cleaning plant can also use The mode that background application is cleared up is randomly selected to clear up the background application of above-mentioned mobile terminal so that on The background application quantity for stating mobile terminal is not more than 1.Not to background application cleaning plant pair in the embodiment of the present invention The concrete mode that the background application of above-mentioned mobile terminal is cleared up is defined.
Whether the memory usage for the 203rd, detecting above-mentioned mobile terminal is more than preset memory usage threshold value;
In the embodiment of the present invention, background application cleaning plant is real-time or is periodically detected the use of the memory of mobile terminal Whether rate is more than preset memory usage threshold value, if background application cleaning plant detects the memory of above-mentioned mobile terminal When utilization rate is more than the memory usage threshold value, step 204 is performed, if background application cleaning plant detects above-mentioned movement When the memory usage of terminal is not more than the memory usage threshold value, preset duration is either waited for immediately or waits for predeterminable event Return to step 201 after triggering.
In the embodiment of the present invention, memory usage=(using memory/total memory) * 100%.
Optionally, above-mentioned memory usage threshold value takes 50%, and certainly, above-mentioned memory can also be according to practical feelings using threshold value Condition is set, and is not construed as limiting herein.
204th, determine that background application can encumbrance according to the first formula and the second formula;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance, and a downward rounding of numerical value is by int () expressions The function of immediate integer.
In the embodiment of the present invention, above-mentioned background application encumbrance can be the value set during manufacture, alternatively, after above-mentioned It is made by oneself in the setting interface that platform application program encumbrance can also be provided by user in background application cleaning plant Justice setting, is not construed as limiting herein.
If the 205th, the current background application quantity of above-mentioned mobile terminal be more than above-mentioned background application can encumbrance, Then, the background application of above-mentioned mobile terminal is cleared up so that the background application quantity of above-mentioned mobile terminal is not It can encumbrance more than above-mentioned background application;
In the embodiment of the present invention, when step 204 determine above-mentioned background application can encumbrance after, further judge on Stating the current background application quantity of mobile terminal, whether the above-mentioned background application determined more than step 204 can retain Number, when judge the current background application quantity of above-mentioned mobile terminal be more than step 204 determine above-mentioned background application journey Sequence can encumbrance when, start to clear up the background application of above-mentioned mobile terminal, so that after above-mentioned mobile terminal Platform number of applications can encumbrance no more than above-mentioned background application.
In background application cleaning plant during the background application to above-mentioned mobile terminal is cleared up, Background application cleaning plant may be used the following two kinds mode and the background application of above-mentioned mobile terminal cleared up: 1st, background application cleaning plant is according to startup time of each background application of above-mentioned mobile terminal, during according to starting Between sequence from long to short the background application of above-mentioned mobile terminal is cleared up so that the backstage of above-mentioned mobile terminal should It can encumbrance no more than above-mentioned background application with program quantity;2nd, background application cleaning plant is according to above-mentioned mobile whole The memory headroom that each background application at end occupies, according to the descending sequence of the memory headroom of occupancy to above-mentioned movement The background application of terminal is cleared up so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage It can encumbrance with program.Certainly, after background application cleaning plant can also use other manner to above-mentioned mobile terminal Platform application program is cleared up, only need to be finally so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage With program can encumbrance, for example, background application cleaning plant can also use randomly select background application into The mode of row cleaning clears up the background application of above-mentioned mobile terminal so that the background application journey of above-mentioned mobile terminal Ordinal number amount can encumbrance no more than above-mentioned background application.Not to background application cleaning plant pair in the embodiment of the present invention The concrete mode that the background application of above-mentioned mobile terminal is cleared up is defined.
It should be noted that the background application cleaning plant in the embodiment of the present invention can be integrated in mobile terminal In, above-mentioned mobile terminal is specifically as follows smart mobile phone, tablet computer, palm PC or other has running background application program The mobile terminal of function, is not construed as limiting herein.
Therefore the present invention by background application can encumbrance be associated with the memory usage of mobile terminal, pass through The memory usage of mobile terminal is detected, when the memory usage for detecting mobile terminal is used more than preset memory During rate threshold value, determine background application can encumbrance, so as to work as the current background application quantity of mobile terminal be more than should Background application can encumbrance when, the background application of the mobile terminal is cleared up so that after the mobile terminal Platform number of applications no more than the background application can encumbrance, it is achieved thereby that the automatic cleaning of background application, It can avoid leading to mobile terminal interim card due to background application is excessive.Further, the present invention is detecting mobile terminal When remaining capacity is less than preset power threshold, the background application quantity of above-mentioned mobile terminal is controlled no more than 1, so as to The enough power consumption that mobile terminal is further reduced when mobile terminal is in low electricity condition.
A kind of background application method for cleaning applied to mobile terminal is described with another embodiment below, this In inventive embodiments, before whether the remaining capacity of detection mobile terminal is less than preset power threshold, first detect whether to deposit In preset background application encumbrance.Referring to Fig. 3, the background application method for cleaning packet in the embodiment of the present invention It includes:
301st, detect whether that there are preset background application encumbrances;
In the embodiment of the present invention, above-mentioned preset background application encumbrance refers to that the backstage of User Defined setting should With program encumbrance.Background application cleaning plant detects whether, there are preset background application encumbrance, to work as detection Less than there are during preset background application encumbrance, show user it is not self-defined setting background application encumbrance, after Platform application program cleaning plant performs step 303;When detecting the presence of preset background application encumbrance, step is performed 302。
302nd, whether the remaining capacity of detection mobile terminal is less than preset power threshold;
In the embodiment of the present invention, background application cleaning plant detects the remaining capacity of mobile terminal, on detecting When stating mobile terminal remaining capacity less than above-mentioned power threshold, step 303 is performed, when detecting above-mentioned mobile terminal remaining capacity During not less than above-mentioned power threshold, step 304 is performed.
Optionally, above-mentioned power threshold takes 20%, certainly, above-mentioned power threshold can also by user according to actual demand into Row setting, is not construed as limiting herein.
303rd, the background application quantity of above-mentioned mobile terminal is controlled to be not more than 1;
When background application cleaning plant detects that the remaining capacity of above-mentioned mobile terminal is less than above-mentioned power threshold, Show that current above-mentioned mobile terminal is in low battery state, background application cleaning plant controls the backstage of above-mentioned mobile terminal Number of applications is not more than 1, in order to reduce the power consumption of above-mentioned mobile terminal.Specifically, background application cleaning dress It puts and controls mode of the background application quantity no more than 1 of above-mentioned mobile terminal can be as follows:When background application is cleared up Device detects that the remaining capacity of above-mentioned mobile terminal is less than above-mentioned power threshold, and the background application that above-mentioned mobile terminal is current When program quantity is more than 1, above-mentioned background application cleaning plant clears up the background application of above-mentioned mobile terminal, Cause the background application quantity of above-mentioned mobile terminal no more than 1, later return to step 301, to be set in User Defined 302 can be entered step after determining background application encumbrance.
Process of the background application quantity no more than 1 of above-mentioned mobile terminal is controlled in background application cleaning plant In, background application cleaning plant can carry out the background application of above-mentioned mobile terminal by the following two kinds mode clear Reason:1st, background application cleaning plant is according to startup time of each background application of above-mentioned mobile terminal, according to opening The sequence of dynamic time from long to short clears up the background application of above-mentioned mobile terminal so that after above-mentioned mobile terminal Platform number of applications is not more than 1;2nd, background application cleaning plant is according to each background application journey of above-mentioned mobile terminal The memory headroom that sequence occupies, according to the descending sequence of the memory headroom of occupancy to the background application of above-mentioned mobile terminal It is cleared up so that the background application quantity of above-mentioned mobile terminal is not more than 1.Certainly, background application cleaning plant The background application of above-mentioned mobile terminal can also be cleared up using other manner, need to only be finally reached the above-mentioned shifting of control The background application quantity of dynamic terminal is not more than 1 purpose, for example, background application cleaning plant can also use The mode that background application is cleared up is randomly selected to clear up the background application of above-mentioned mobile terminal so that on The background application quantity for stating mobile terminal is not more than 1.Not to background application cleaning plant pair in the embodiment of the present invention The concrete mode that the background application of above-mentioned mobile terminal is cleared up is defined.
Whether the memory usage for the 304th, detecting above-mentioned mobile terminal is more than preset memory usage threshold value;
In the embodiment of the present invention, background application cleaning plant is real-time or is periodically detected the use of the memory of mobile terminal Whether rate is more than preset memory usage threshold value, if background application cleaning plant detects the memory of above-mentioned mobile terminal When utilization rate is more than the memory usage threshold value, step 305 is performed, if background application cleaning plant detects above-mentioned movement When the memory usage of terminal is not more than the memory usage threshold value, preset duration is either waited for immediately or waits for predeterminable event Return to step 301 after triggering.
In the embodiment of the present invention, memory usage=(using memory/total memory) * 100%.
Optionally, above-mentioned memory usage threshold value takes 50%, and certainly, above-mentioned memory can also be according to practical feelings using threshold value Condition is set, and is not construed as limiting herein.
305th, determine that background application can encumbrance according to the first formula and the second formula;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance, and a downward rounding of numerical value is by int () expressions The function of immediate integer.
In the embodiment of the present invention, above-mentioned background application encumbrance can be the value set during manufacture, alternatively, after above-mentioned It is made by oneself in the setting interface that platform application program encumbrance can also be provided by user in background application cleaning plant Justice setting, is not construed as limiting herein.
If the 306th, the current background application quantity of above-mentioned mobile terminal be more than above-mentioned background application can encumbrance, Then, the background application of above-mentioned mobile terminal is cleared up so that the background application quantity of above-mentioned mobile terminal is not It can encumbrance more than above-mentioned background application;
In the embodiment of the present invention, when step 305 determine above-mentioned background application can encumbrance after, further judge on Stating the current background application quantity of mobile terminal, whether the above-mentioned background application determined more than step 305 can retain Number, when judge the current background application quantity of above-mentioned mobile terminal be more than step 305 determine above-mentioned background application journey Sequence can encumbrance when, start to clear up the background application of above-mentioned mobile terminal, so that after above-mentioned mobile terminal Platform number of applications can encumbrance no more than above-mentioned background application.
In background application cleaning plant during the background application to above-mentioned mobile terminal is cleared up, Background application cleaning plant may be used the following two kinds mode and the background application of above-mentioned mobile terminal cleared up: 1st, background application cleaning plant is according to startup time of each background application of above-mentioned mobile terminal, during according to starting Between sequence from long to short the background application of above-mentioned mobile terminal is cleared up so that the backstage of above-mentioned mobile terminal should It can encumbrance no more than above-mentioned background application with program quantity;2nd, background application cleaning plant is according to above-mentioned mobile whole The memory headroom that each background application at end occupies, according to the descending sequence of the memory headroom of occupancy to above-mentioned movement The background application of terminal is cleared up so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage It can encumbrance with program.Certainly, after background application cleaning plant can also use other manner to above-mentioned mobile terminal Platform application program is cleared up, only need to be finally so that the background application quantity of above-mentioned mobile terminal should no more than above-mentioned backstage With program can encumbrance, for example, background application cleaning plant can also use randomly select background application into The mode of row cleaning clears up the background application of above-mentioned mobile terminal so that the background application journey of above-mentioned mobile terminal Ordinal number amount can encumbrance no more than above-mentioned background application.Not to background application cleaning plant pair in the embodiment of the present invention The concrete mode that the background application of above-mentioned mobile terminal is cleared up is defined.
It should be noted that the background application cleaning plant in the embodiment of the present invention can be integrated in mobile terminal In, above-mentioned mobile terminal is specifically as follows smart mobile phone, tablet computer, palm PC or other has running background application program The mobile terminal of function, is not construed as limiting herein.
Therefore the present invention by background application can encumbrance be associated with the memory usage of mobile terminal, pass through The memory usage of mobile terminal is detected, when the memory usage for detecting mobile terminal is used more than preset memory During rate threshold value, determine background application can encumbrance, so as to work as the current background application quantity of mobile terminal be more than should Background application can encumbrance when, the background application of the mobile terminal is cleared up so that after the mobile terminal Platform number of applications no more than the background application can encumbrance, it is achieved thereby that the automatic cleaning of background application, It can avoid leading to mobile terminal interim card due to background application is excessive.Further, the present invention is detecting mobile terminal When remaining capacity is less than preset power threshold, the background application quantity of above-mentioned mobile terminal is controlled no more than 1, so as to The enough power consumption that mobile terminal is further reduced when mobile terminal is in low electricity condition.
The background application cleaning plant in the embodiment of the present invention is described with an embodiment below, please refers to figure 4, the background application cleaning plant 400 in the embodiment of the present invention includes:
First detection unit 401, for detecting the memory usage of mobile terminal;
Determination unit 402 detects that the memory usage of above-mentioned mobile terminal is more than in advance for working as first detection unit 401 If memory usage threshold value when, determine that background application can encumbrance according to the first formula and the second formula;
Application program clears up unit 403, for working as the current background application quantity of above-mentioned mobile terminal more than above-mentioned Background application can encumbrance when, the background application of above-mentioned mobile terminal is cleared up so that above-mentioned mobile terminal Background application quantity can encumbrance no more than above-mentioned background application;
Wherein, above-mentioned first formula is:X=(1-a) * N;
In above-mentioned first formula and above-mentioned second formula, S represent background application can encumbrance, a represents above-mentioned shifting The memory usage of dynamic terminal, N are preset background application encumbrance.
Optionally, the incoming call handling device in the embodiment of the present invention further includes:First detection unit has incoming call for working as When, whether detection callee currently facilitates call.
Optionally, the background application cleaning plant in the embodiment of the present invention further includes:
Second detection unit, for whether detecting the remaining capacity of above-mentioned mobile terminal less than preset power threshold;
Control unit detects that the remaining capacity of above-mentioned mobile terminal is less than above-mentioned electricity for working as above-mentioned second detection unit When measuring threshold value, the background application quantity of above-mentioned mobile terminal is controlled to be not more than 1;
First detection unit 401 detects the remaining capacity of above-mentioned mobile terminal not less than upper in above-mentioned second detection unit It is triggered when stating power threshold.
Optionally, the background application cleaning plant in the embodiment of the present invention further includes:
Third detection unit, for detecting whether there are above-mentioned preset background application encumbrances;
Above-mentioned second detection unit detects the presence of above-mentioned preset background application in above-mentioned third detection unit and protects It is triggered during residual;
Above-mentioned control unit is additionally operable to:When above-mentioned third detection unit detects that there is no above-mentioned preset background application journeys During sequence encumbrance, the background application quantity of above-mentioned mobile terminal is controlled to be not more than 1.
Optionally, application program cleaning unit 403 is specifically used for:When the current background application number of above-mentioned mobile terminal Amount be more than above-mentioned background application can encumbrance when, during according to the startup of each background application of above-mentioned mobile terminal Between, the background application of above-mentioned mobile terminal is cleared up according to the sequence of time from long to short is started so that above-mentioned shifting The background application quantity of dynamic terminal can encumbrance no more than above-mentioned background application.
Optionally, application program cleaning unit 403 is specifically used for:When the current background application number of above-mentioned mobile terminal Amount be more than above-mentioned background application can encumbrance when, according to each background application of above-mentioned mobile terminal occupy memory Space is cleared up the background application of above-mentioned mobile terminal according to the descending sequence of the memory headroom of occupancy, is made The background application quantity for obtaining above-mentioned mobile terminal can encumbrance no more than above-mentioned background application.
It should be noted that the background application cleaning plant in the embodiment of the present invention can be integrated in mobile terminal In, above-mentioned mobile terminal is specifically as follows smart mobile phone, tablet computer, palm PC or other has running background application program The mobile terminal of function, is not construed as limiting herein.
It should be understood that the background application cleaning plant in the embodiment of the present invention can be as referred in above-mentioned embodiment of the method Background application cleaning plant, can be used to implement whole technical solutions in above method embodiment, each function The function of module can be implemented according to the method in above method embodiment, and specific implementation process can refer to above-mentioned implementation Associated description in example, details are not described herein again.
Therefore the present invention by background application can encumbrance be associated with the memory usage of mobile terminal, pass through The memory usage of mobile terminal is detected, when the memory usage for detecting mobile terminal is used more than preset memory During rate threshold value, determine background application can encumbrance, so as to work as the current background application quantity of mobile terminal be more than should Background application can encumbrance when, the background application of the mobile terminal is cleared up so that after the mobile terminal Platform number of applications no more than the background application can encumbrance, it is achieved thereby that the automatic cleaning of background application, It can avoid leading to mobile terminal interim card due to background application is excessive.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of said units, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for aforementioned each method embodiment, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is to a kind of background application method for cleaning and device applied to mobile terminal provided by the present invention above Description, for the thought of those of ordinary skill in the art, according to the present invention embodiment, in specific embodiment and using model There will be changes are placed, to sum up, the content of the present specification should not be construed as limiting the invention.

Claims (10)

1. a kind of background application method for cleaning applied to mobile terminal, which is characterized in that including:
Detect the memory usage of mobile terminal;
If detecting, the memory usage of the mobile terminal is more than preset memory usage threshold value, according to the first formula Determine that background application can encumbrance with the second formula;
If the current background application quantity of the mobile terminal be more than the background application can encumbrance, to institute The background application for stating mobile terminal is cleared up so that the background application quantity of the mobile terminal is no more than described Background application can encumbrance;
Wherein, first formula is:X=(1-a) * N;
Second formula is:
In first formula and second formula, int () represents that by a downward rounding of numerical value be immediate integer Function, S represent background application can encumbrance, a represents the memory usage of the mobile terminal, and N is preset backstage Application program encumbrance.
2. it according to the method described in claim 1, it is characterized in that, is wrapped before the memory usage of the detection mobile terminal It includes:
The remaining capacity of the mobile terminal is detected whether less than preset power threshold;
If detecting, the remaining capacity of the mobile terminal not less than the power threshold, performs the detection mobile terminal The step of memory usage and subsequent step;
If detecting, the remaining capacity of the mobile terminal less than the power threshold, controls the backstage of the mobile terminal should It is not more than 1 with program quantity.
3. according to the method described in claim 2, it is characterized in that, whether the remaining capacity of the detection mobile terminal is low Include before preset power threshold:
Detect whether that there are the preset background application encumbrances;
If detecting the presence of the preset background application encumbrance, the residue of the detection mobile terminal is performed The step of whether electricity is less than preset power threshold and subsequent step;
If detect the background application journey for there is no the preset background application encumbrance, controlling the mobile terminal Ordinal number amount is not more than 1.
4. method according to any one of claims 1 to 3, which is characterized in that the backstage to the mobile terminal should It is cleared up with program so that the background application quantity of the mobile terminal can retain no more than the background application Number, specially:
According to the startup time of each background application of the mobile terminal, according to starting, the sequence of time from long to short is right The background application of the mobile terminal is cleared up so that the background application quantity of the mobile terminal is not more than institute Stating background application can encumbrance.
5. method according to any one of claims 1 to 3, which is characterized in that the backstage to the mobile terminal should It is cleared up with program so that the background application quantity of the mobile terminal can retain no more than the background application Number, specially:
According to each background application of the mobile terminal occupy memory headroom, according to occupancy memory headroom by greatly to Small sequence clears up the background application of the mobile terminal so that the background application number of the mobile terminal Amount can encumbrance no more than the background application.
6. a kind of background application cleaning plant applied to mobile terminal, which is characterized in that including:
First detection unit, for detecting the memory usage of mobile terminal;
Determination unit detects that the memory usage of the mobile terminal is more than in preset for working as the first detection unit When depositing utilization rate threshold value, determine that background application can encumbrance according to the first formula and the second formula;
Application program clears up unit, for working as the current background application quantity of the mobile terminal more than the background application Program can encumbrance when, the background application of the mobile terminal is cleared up so that the backstage of the mobile terminal should It can encumbrance no more than the background application with program quantity;
Wherein, first formula is:X=(1-a) * N;
Second formula is:
In first formula and second formula, int () represents that by a downward rounding of numerical value be immediate integer Function, S represent background application can encumbrance, a represents the memory usage of the mobile terminal, and N is preset backstage Application program encumbrance.
7. background application cleaning plant according to claim 6, which is characterized in that the background application cleaning Device further includes:
Second detection unit, for whether detecting the remaining capacity of the mobile terminal less than preset power threshold;
Control unit detects that the remaining capacity of the mobile terminal is less than the electricity threshold for working as the second detection unit During value, the background application quantity of the mobile terminal is controlled to be not more than 1;
The first detection unit detects the remaining capacity of the mobile terminal not less than described in the second detection unit It is triggered during power threshold.
8. background application cleaning plant according to claim 7, which is characterized in that the background application cleaning Device further includes:
Third detection unit, for detecting whether there are the preset background application encumbrances;
The second detection unit detects the presence of the preset background application encumbrance in the third detection unit When trigger;
Described control unit is additionally operable to:It to be protected when the third detection unit detects that there is no the preset background applications During residual, the background application quantity of the mobile terminal is controlled to be not more than 1.
9. according to claim 6 to 8 any one of them background application cleaning plant, which is characterized in that described to apply journey Sequence cleaning unit is specifically used for:When the current background application quantity of the mobile terminal can more than the background application During encumbrance, according to the startup time of each background application of the mobile terminal, according to starting the time from long to short Sequence clears up the background application of the mobile terminal so that the background application quantity of the mobile terminal is not It can encumbrance more than the background application.
10. according to claim 6 to 8 any one of them background application cleaning plant, which is characterized in that described to apply journey Sequence cleaning unit is specifically used for:When the current background application quantity of the mobile terminal can more than the background application During encumbrance, according to the memory headroom that each background application of the mobile terminal occupies, according to the memory headroom of occupancy Descending sequence clears up the background application of the mobile terminal so that the background application of the mobile terminal Program quantity can encumbrance no more than the background application.
CN201510621872.4A 2015-09-24 2015-09-24 Background application method for cleaning and device applied to mobile terminal Active CN105094936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510621872.4A CN105094936B (en) 2015-09-24 2015-09-24 Background application method for cleaning and device applied to mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510621872.4A CN105094936B (en) 2015-09-24 2015-09-24 Background application method for cleaning and device applied to mobile terminal

Publications (2)

Publication Number Publication Date
CN105094936A CN105094936A (en) 2015-11-25
CN105094936B true CN105094936B (en) 2018-06-29

Family

ID=54575446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510621872.4A Active CN105094936B (en) 2015-09-24 2015-09-24 Background application method for cleaning and device applied to mobile terminal

Country Status (1)

Country Link
CN (1) CN105094936B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677472A (en) * 2016-01-17 2016-06-15 苏黎 Control method of running memory of mobile terminal and mobile terminal
CN105760229A (en) * 2016-02-15 2016-07-13 广东欧珀移动通信有限公司 Method and device for cleaning backstage running programs and mobile terminal
CN105975305B (en) * 2016-04-29 2019-03-22 北京小米移动软件有限公司 OS Events processing method, device and terminal
CN105975301B (en) * 2016-04-29 2018-09-04 北京小米移动软件有限公司 Memory method for cleaning and device, electronic equipment
CN105912370B (en) * 2016-05-03 2020-02-14 Oppo广东移动通信有限公司 Control method and device for background application program of mobile terminal and mobile terminal
CN106708613B (en) * 2016-05-05 2019-09-17 腾讯科技(深圳)有限公司 A kind of detection method and detection device of input control sensitivity
CN106055404B (en) * 2016-05-18 2020-05-01 Oppo广东移动通信有限公司 Method and device for cleaning background application program
CN106066804B (en) * 2016-05-27 2019-12-31 广东小天才科技有限公司 Application program access control method and device of mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN106155695A (en) * 2016-07-28 2016-11-23 努比亚技术有限公司 The removing control device and method of background application
CN106325990B (en) * 2016-08-19 2019-10-11 宇龙计算机通信科技(深圳)有限公司 Control method, control device and the terminal of application program
CN106484534B (en) * 2016-09-27 2020-08-21 麒和科技(南京)有限公司 Control method and control device for displayed mobile terminal
CN106502785A (en) * 2016-09-30 2017-03-15 维沃移动通信有限公司 A kind of cleaning internal memory method and device of mobile terminal
WO2018176245A1 (en) * 2017-03-29 2018-10-04 深圳市卓希科技有限公司 Method for controlling application program, and terminal
CN107450985B (en) * 2017-07-27 2021-05-18 北京珠穆朗玛移动通信有限公司 Memory management method, mobile terminal and storage medium
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN109753318A (en) * 2018-12-17 2019-05-14 新视家科技(北京)有限公司 Show the management method and its device, electronic equipment of the page
CN110716799A (en) * 2019-09-30 2020-01-21 深圳市九洲电器有限公司 Application program management method and intelligent terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6938254B1 (en) * 1997-05-06 2005-08-30 Microsoft Corporation Controlling memory usage in systems having limited physical memory
KR102083316B1 (en) * 2013-04-24 2020-04-14 삼성전자주식회사 Method and apparatus for managing memory of a user device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs

Also Published As

Publication number Publication date
CN105094936A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105094936B (en) Background application method for cleaning and device applied to mobile terminal
CN105045514B (en) A kind of application process management method and terminal
CN103425506B (en) Closedown method and starting-up method and communication terminal
CN104601683B (en) A kind of file download management method and mobile terminal and communication system
CN104866069A (en) Method and device for automatically clearing background application programs
CN108040352B (en) Method for processing business, device and mobile terminal under a kind of hybrid network standard
CN104469717B (en) Note transmission method and device
CN108205475A (en) EMS memory management process, terminal device, computer installation and readable storage medium storing program for executing
CN106445604A (en) Clearing method and device for applications
CN106055404B (en) Method and device for cleaning background application program
CN106980538A (en) The method and device of data processing
CN107273182A (en) A kind of resources of virtual machine dynamic expanding method and system
CN103473343A (en) File management method, device and terminal
CN107622232A (en) Solve lock control method and Related product
CN106528347B (en) A kind of data back up method and mobile terminal
CN106802750A (en) Realize the exchange method and device of data processing
CN107315658A (en) A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN106569890A (en) Application control method and terminal
CN109149574A (en) Charging method and system based on electricity price
CN103377071B (en) A kind of batch data delet method and system
CN108958980A (en) Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception
CN107943578A (en) A kind of memory release method, terminal device and computer-readable medium
CN110543432B (en) Memory defragmentation method, device, terminal and storage medium
CN106095290B (en) The method for closing and device of sensor call function
CN104951253B (en) Method for processing memory capacity and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant