CN107943593B - Automatic memory cleaning method for intelligent terminal - Google Patents

Automatic memory cleaning method for intelligent terminal Download PDF

Info

Publication number
CN107943593B
CN107943593B CN201810005029.7A CN201810005029A CN107943593B CN 107943593 B CN107943593 B CN 107943593B CN 201810005029 A CN201810005029 A CN 201810005029A CN 107943593 B CN107943593 B CN 107943593B
Authority
CN
China
Prior art keywords
application program
application
cleaning
memory
intelligent terminal
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
CN201810005029.7A
Other languages
Chinese (zh)
Other versions
CN107943593A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201810005029.7A priority Critical patent/CN107943593B/en
Publication of CN107943593A publication Critical patent/CN107943593A/en
Application granted granted Critical
Publication of CN107943593B publication Critical patent/CN107943593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to an intelligent terminal with an automatic memory cleaning function, which comprises a touch screen, a touch signal processing unit, a central controller, a memory and a storage, and is characterized in that an application manager is installed in the intelligent terminal, monitors the front-end running time and the background running time of each application program running in the intelligent terminal, and calculates and obtains the heat value of each application program according to the ratio of the front-end running time to the background running time; when the number of the application software running in the memory of the intelligent terminal is larger than the preset value of the number of the application programs, the application manager selects the application program with the lowest cleaning heat value as the application program to be cleaned according to the heat value of each application program; the application manager stores a protected application program list set by a user, and if the application program to be cleaned belongs to the protected application program, the cleaning step is not executed.

Description

Automatic memory cleaning method for intelligent terminal
Technical Field
The invention relates to an intelligent memory management method for an intelligent terminal, in particular to an automatic memory cleaning process for the intelligent terminal.
Background
In the current society, the mobile intelligent terminal can provide various functions and services (social contact, entertainment, photographing, multimedia data transmission, webpage news browsing and the like) so as to meet the diversified demands of users. Various intelligent terminals including mobile phones, pads and the like are provided with various application software except for operating systems. And many software often need to be frequently called, for example, when playing the video streaming media, the user needs to reply immediately after receiving a short message or a WeChat prompt, once switching to enter the short message or WeChat reply software, the original video streaming media playing will automatically quit, and the user needs to re-enter the video streaming media playing interface after completing the information reply, so that the user does not want to re-open the video application software, which wastes time. The same other applications such as WeChat, a web browser, weather forecast software, a navigation map, a shopping APP and the like also need to be called frequently, so a user generally cannot consciously and autonomously close various opened application software, the memory resources of the mobile phone are slowly exhausted due to long-term accumulation of a large amount of application software, and if the software is not closed or restarted, the mobile phone is stuck and quickly powered off due to long-term operation. Each piece of application software opened by the user needs to correspondingly open one or more processing processes, when the application software is in a background opening state, the processes are also in a standby state and cannot be well processed, if the processing processes are cleaned, part of common resources are lost, and if the processing processes are not cleaned, a large amount of memory resources are consumed, which is a dilemma state.
At present, a mobile phone operating system has a one-key cleaning function, and performs one-key cleaning on all application software, which belongs to mandatory cleaning. And part of important application software, the user does not want to be shut down together, and once the one-key cleaning recovery is shut down, the recovery is troublesome. And after the fact that the resources are not enough to cause the jam is found, the application software can be automatically closed, thumbnails of all applications in the open state can be checked through a special trigger button, and the thumbnail window needing to be closed is selected among different applications. However, the user of the closing method does not have any data basis when selecting the application software needing to be closed by himself, and the user only needs to like or feel by himself. This results in the possibility of shutting down several pieces of software, which occupy a small amount of resources and have a poor effect. In addition, even if the problem of insufficient memory resources can be solved through manual closing by a user, the user experience is actually reduced when the user closes the mobile phone by himself, namely, the problem of resource shortage occurs before the user finds the problem, the user can consider manual solution only when the problem is obvious, and the problem is equivalent to that the mobile phone memory resources are not intelligently monitored at ordinary times, and the problem is not remedied afterwards until the problem is serious.
In recent years, smart phones having a large-sized touch screen are widely used, and a representative operating system of smart phones is Android (Android), which is introduced by ***TM) IOS by systems and apple IncTMAnd (4) operating the system. The manufacturer of each mobile phone adopting android systemRespective design requirements are constantly improving versions to improve operational convenience. Different operating systems are slightly different in specific operating program settings, but none of these operating systems provides the function of automatically cleaning up idle application software to ensure sufficient memory resources, so none of the above-mentioned problems can be solved
Therefore, a system software is required to be set in the intelligent terminal such as the mobile phone, the system software can automatically close idle software in the running process of the intelligent terminal such as the mobile phone according to a certain algorithm or data, and set software which needs to be protected from being automatically closed according to the user requirement, and optimally can also select a processing mode after closing for the user. The comprehensive intelligent mobile phone memory cleaning system can improve the running performance of the mobile phone and cannot influence the application convenience of the mobile phone for users.
Disclosure of Invention
The invention aims to provide an intelligent terminal with an automatic memory cleaning function, which comprises a touch screen, a touch signal processing unit, a central controller, a memory and a storage, and is characterized in that an application manager is installed in the intelligent terminal, monitors the front-end running time and the background running time of each application program running in the intelligent terminal, and calculates and obtains the heat value of each application program according to the ratio of the front-end running time to the background running time; when the number of the application programs running in the memory of the intelligent terminal is larger than the preset limit value of the number of the application programs, the application manager selects the application program with the lowest heat value as the application program to be cleaned according to the heat value of each application program; the application manager stores a protected application program list set by a user, and if the application program to be cleaned belongs to the protected application program, the cleaning step is not executed. Wherein the preset limit value of the number of the application programs is more than or equal to 6.
The application manager acquires the front-end running time and the background running time of each application program in an open state only when the newly opened application program or the front-end running application program is switched, and updates the heat value ordered list of each application program.
The application manager further comprises cleaning method selection data, a user of the intelligent terminal sets a respective cleaning method of each application program in the application manager, and the cleaning method options comprise: the method comprises the steps of protected program, completely closing the application program, and closing the application program after saving the running data. And the application manager selects data according to the cleaning method and executes the cleaning action of each application program, wherein when the cleaning step of closing the application program after storing the running data is executed, the data of the application program in the memory is firstly stored in a virtual memory arranged in a memory of the intelligent terminal, and then the data in the memory is deleted.
The application control manager comprises a cleaning result display interface, wherein the cleaning result display interface comprises cleaning records of all application programs, memory capacity saved by cleaning, cleaning method selection data and a heat coefficient of each application program, and the heat coefficient can be selected and adjusted by an intelligent terminal user.
And the application manager calculates and obtains the corrected heat value of each application program according to the heat coefficient, the front-end running time and the background running time. The user can autonomously correct the hot value sequence of each application program according to the use habit of the user.
The method comprises the steps that the cleaning option is an application program closed after running data is saved, and the method further comprises an application program recovery step, a user of the intelligent terminal clicks a functional area on the touch screen, and the application manager reopens the application program according to the data stored in the virtual memory, so that the data in the application program is in a cleaned state. After the application program recovery step is executed, the application manager immediately acquires the front-end running time and the background running time of each application program in the open state, and updates the heat value ordered list of each application program.
And when the application program with the lowest heat value belongs to the protected application program, not executing the cleaning step on the application program with the lowest heat value, and executing the cleaning step on the application program with the second lowest heat value.
In summary, compared with the prior art, the intelligent terminal with the function of automatically cleaning the memory according to the present invention has the following advantages: according to the heat value sequencing defined by the invention, the application program with the lowest utilization rate is automatically cleaned, meanwhile, the important program is ensured not to be deleted by mistake, and the special requirements of different users or different application programs can be better adapted through the setting of the heat coefficient, so that the diversified requirements of the users are met, and the intelligent terminal is ensured to be in a healthy running state for a long time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic diagram of a memory cleaning process of an intelligent terminal;
FIG. 2 is a schematic view of the determination process in the cleaning determination step in FIG. 1;
FIG. 3 is a schematic diagram of an interface for setting whether to clear various applications and a clearing mode on a mobile phone after applying the automatic memory clearing method of the present invention;
FIG. 4 is a schematic diagram of an application program interface for viewing cleaned applications after the automatic memory cleaning method of the present invention is applied;
FIG. 5 is a schematic view of a processing flow of the intelligent memory cleaning method according to the present invention in different cleaning methods;
fig. 6 is a schematic flowchart of the entire intelligent memory cleaning method according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that, in this document, relational terms such as "first," "second," "third," and the like, if any, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," "includes," "including," "has," "having" or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising … …" or "comprising … …" does not exclude the presence of additional elements in a process, method, article, or terminal that comprises the element. Further, herein, "greater than," "less than," "more than," and the like are understood to exclude the present numbers; the terms "above", "below", "within" and the like are to be understood as including the number.
The technical solution of the present invention is described in detail with specific examples in conjunction with fig. 1-6 below. The following embodiments may be combined, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The intelligent terminal of the invention comprises intelligent terminals such as an intelligent mobile phone and a PAD, wherein the mobile phone is most widely applied, so the automatic memory cleaning method of the intelligent terminal of the invention is described below by taking the mobile phone as an example. However, other intelligent terminals may also adopt the method for automatically cleaning the memory defined by the present invention, and are not limited to the application of mobile phones.
The mobile phone generally comprises a touch screen, a touch signal processing unit, a central controller and a display unit, and further comprises a memory and a storage, wherein the storage is used for storing data and files of a user for a long time, and the storage usually has a large capacity which can reach dozens of G or more, such as 100G and 200G. The memory provides the processing process and temporary data formed by various open application programs stored by the operating system, and the data disappears after power failure, which is usually much smaller than the capacity of the memory and is generally only a few G. However, the running speed of the memory has a great influence on the running of various application programs in the mobile phone, and if the memory is exhausted by the various application programs, the running speed of the various application programs becomes slower and slower until the mobile phone is halted. However, users of the existing mobile phones often install a large amount of various types of application software in the mobile phones, and the contradiction between the excessive software and the limited built-in capacity makes the function of reasonably allocating and managing the limited memory capacity of the mobile phones very important. Therefore, there is a need to develop an application program in a mobile phone to better manage the memory of the mobile phone and monitor the memory usage status of various application programs.
Fig. 1 is a schematic diagram illustrating a memory cleaning process of an intelligent terminal after applying the memory cleaning method of the present invention, where the memory cleaning process includes the steps of:
s0, running programs, wherein various application programs are opened under the operation of a user and run at the front end or the background;
s1, the application manager runs, the application manager provided by the invention is a management software arranged in the mobile phone operating system, and can monitor parameters such as memory consumption, use state and idle time of all application programs, and set the cleaning rules and the cleaning priority of the application programs. The application manager can also provide a setting interface and a query interface for selecting the cleaning rules and the cleaning priority of the various application programs. The cleaning history of the cleaned application software, the memory resource release quantity and the like can be seen in the query interface, and a mobile phone user can self-define and optimize parameters of each application program according to the parameters and the use habit of the mobile phone user, such as a heat correction value mentioned in the following text, so that the mobile phone applying the memory automatic cleaning program can more intelligently adapt to different use habits of each user.
S2, updating the application hotlist, counting and calculating the front-end running time and the background running time of each application in the running state, and calculating the ratio of the front-end running time to the total running time (front-end running time + background running time), as shown in table 1 below, as a group of typical hotness calculation methods.
Name of process Front end time of use Back end shelf life Total time of day Heat degree
App1 120s 60s 180s 0.667
App2 40s 200s 240s 0.167
App3 100s 10s 110s 0.909
...
TABLE 1
As shown in table 1 above, the front end of application program 1(App1) has a service time of 120 seconds, and the back end has only been run for 60 seconds, which indicates that the utilization rate of the application program is very high, so the heat value defined according to the present invention reaches 0.667; in contrast, the front end use time of App2 is only 40 seconds, the rear end use time is only 200 seconds, and the calculated use heat of App2 is only 0.167. The ratio 100/110 of the front end usage time to the background usage time of App3 is 0.909. The ratio of the front-end usage time to the total running time reflects the usage rate of the application software, and if a piece of software is turned on and left idle for a long time after being used for a short time and is not turned off in the background, the background usage time is gradually increased, so that the heat value is gradually reduced and finally approaches zero. The heat defined by the invention actually reflects the utilization rate of application software, and the higher the utilization rate is, the higher the heat value is, the more the heat value is not required to be removed.
S3, performing a cleaning judgment, if the application software to be cleaned should be the application software 2 in the heat table shown in table 1 sorted according to the heat value, but entering the cleaning judgment step of step S3, if the application software (App2) belongs to the protection program set by the user, the subsequent cleaning operation S4a is not performed, the application program 2 is continuously kept running in the memory, and the step S4b is performed. If the application with the lowest heat value does not belong to the protected program, step S4a is directly executed to clean the application.
The application manager is arranged in the mobile phone, the application manager is used for monitoring the utilization rate of all software running in the memory, the software with the lowest utilization rate is automatically cleaned, meanwhile, in order to avoid mistakenly deleting some application programs which need to be run for a long time in the background by mobile phone users, the automatic memory cleaning process also comprises a judging step, and the protected application programs are prevented from being mistakenly deleted. Therefore, most of the running application programs in the mobile phone are protected programs with high utilization rate or designated by the mobile phone user, and other application programs which do not meet the conditions are automatically cleaned in the background, so that the burden of the mobile phone is not increased, and the additional operation of the mobile phone user is not needed.
However, the process shown in fig. 1 still has some problems, when the number of applications opened in the mobile phone is very low, for example, there are only 3 applications, the memory of the mobile phone is very sufficient and actually does not need to be automatically cleaned, and the continuous operation of the application manager only increases the system load and does not bring any benefit. In addition, when the front-end use time and the background use time of each application program need to be counted, if the use times of all the open application programs are queried every second, the application manager needs to collect data with a long time and a high load by the counting method, and system resources are also burdened and are not paid. The embodiment of fig. 1 is thus further improved by the present invention, which proposes an automatic cleaning initiation condition as shown in fig. 2.
Fig. 2 shows a flowchart of a starting condition determining process of the automatic memory cleaning process according to the present invention. The starting condition judgment comprises the following steps:
and S10, switching or starting the program, wherein the application manager is required to collect and count the use time of each application program to calculate the heat value of each application program only when a new application program is started or the current front-end application program needs to be switched to another application program. Because the heat value of the application program to be switched to the front end starts to increase only when the front-end application program is switched, the heat values of all other application programs are synchronously reduced due to the increase of the background running time, the sequence of the heat values between the application programs does not change between two program switching actions, and the continuous numerical monitoring in the period has no meaning. The starting condition of the present invention may also be that when a new application is started, the total number of applications is increased and the memory consumption is further increased because the new application is opened, and most importantly, the heat value of the newly opened application is 1 because the background running time is zero, which causes the sequence of all the applications that have been opened originally to be arranged backward by one bit, so that the time of use statistics is the better time when an application is newly opened. The heat statistics is carried out at the two moments, so that the application program with the lowest heat value can be found at the first time, too many system resources can not be consumed, and the stable operation of the mobile phone is ensured.
S11, program quantity judging step, if the application manager counts at the time stated in step S10 and finds that the number of the opened application programs is more than 6, then the subsequent step S12 operation cleaning step or S13 resource reserving step is started. Wherein the definition of the operation cleaning step in step S12 is the same as the judgment and execution steps described in steps S3-S4a, S4b in fig. 1.
The execution of the above steps S10-S13 can make the application manager of the present invention run more efficiently and consume fewer resources.
Although the cleaning method can obviously automatically reduce the memory consumption and can keep important application programs from being deleted by mistake, as the application programs are various, part of the application programs are not important and need long-term protection, but certain trouble can be brought if the application programs are thoroughly cleaned. For example, part of games need to be archived to read the latest progress when the game is opened next time, and if the application manager in the mobile phone cleans the game software under the condition that the user does not know, the archiving may not be performed in time, so the thorough cleaning method is not necessarily the most beneficial processing scheme for the user. Other applications that need to form a similar archive also need a correspondingly better cleaning solution.
The invention further provides an improved technical scheme, and as shown in fig. 3, the invention is a schematic diagram of whether an application manager cleans various application programs and a mode setting interface is cleaned after the automatic memory cleaning method is applied. In fig. 3 APP1 is set by the user not to perform automatic cleaning, which means that application 1(APP1) is a protected application and cleaning is not performed even if the heat value is low. APP2 is set by the user to be required to be cleaned automatically, the cleaning mode is selected at the same time, data are saved after the cleaning mode is closed, and therefore the application program can read the saved data when the application program is started next time after the cleaning is completed, and the application program is more beneficial to the use of the application program by the user. The application program 3(APP3) is set by a user to be cleaned, and the cleaning mode is complete cleaning, and the related processing process is completely closed during cleaning. The selection of APP4 is identical to the selection of APP2 described above, and the selection of APP5 is identical to the selection of APP1 described above.
Through the selection interface shown in fig. 3, a mobile phone user can independently select whether each piece of software needs to be protected or not according to different requirements of the user on various pieces of application software, and a method for selecting cleaning during automatic cleaning is adopted, so that part of cleaned software can be recovered to the state before cleaning more quickly, and the use experience of the user is improved.
Fig. 5 is a flowchart illustrating the cleaning procedure performed after the cleaning selection setting shown in fig. 3 is performed according to the present invention. Which comprises the following steps:
s20, entering a cleaning step, and entering an improved cleaning step after the heat value obtaining and judging step shown in the figures 1 and 2;
and S21, a cleaning mode selection step, wherein the application program to be cleaned is matched with the cleaning mode displayed in the setting interface shown in the figure 3, and the cleaning operation is carried out according to the user setting mode.
S23, if the user' S setting for the application is completely closed, the application manager will clean the application completely and save the cleaning record.
And S22, if the user sets the application program to be closed and then stores the data, storing the current application into a virtual memory and then cleaning the application in the memory, wherein the virtual memory can be arranged in a memory, and the storage capacity of the memory is far larger than that of the memory, and the storage of a small amount of data of the application program into the memory does not affect the operation efficiency of the mobile phone basically, so that the data of the application program to be cleaned in the memory can be stored in the memory to store related data. And after the storage is finished, the application program in the memory is thoroughly cleared, and the cleared record is reserved.
S24, if the user opens the application again after the application selected to save data after closing is cleaned, the process proceeds to the application restoring step S26.
S26, when the user starts the application next time, the data stored in the virtual memory in step S22 may be reloaded into the memory without restarting all the processing processes, and the application may be started again. In this way, although the middle is completely closed by the application manager once, the information and data seen by the user of the mobile phone when the mobile phone is opened again are still in the state when the application program was idle to the background last time, so that the user experiences the application program close to the state when the application program is not cleaned, and does not need to worry about that the automatic cleaning program cleans the application program, so that the state of the data when the mobile phone is opened again is different from the normal state when the mobile phone is switched to the background last time or automatically runs in the background.
The application manager of the invention automatically calculates the heat value of each application program according to the detected front-end running time and background running time of each application program as basic parameters, which can meet the use habits of partial users on partial application programs, but for users with different use habits or application programs with special functions in use, the heat values can not reflect the priority of the application programs needing to be cleaned actually. For example, part of users need to open multiple applications (more than 8) at the same time, since the total number is over 6, the automatic cleaning program cleans up the application which is idle for the longest in the background, but actually the user opens the application after a while, so the application is not the program which the user has forgotten but is switched to after a short time, which is "mistaken cleaning". The same part of the application programs are also easy to be cleaned by mistake due to the characteristics of the application programs, for example, the application programs which monitor certain parameters in real time, such as heartbeat, body temperature and the like of a user, or the application programs which download data in a background work in the background for a long time, but actually the user does not want to stop suddenly, but needs to be cleaned if the application programs still run in the background after a reasonable time length. For the above applications and users with special usage habits, the foregoing embodiments only provide protected applications and calculate the obtained heat value according to the default rule, and do not well accommodate the above requirements. Therefore, the inventor further improves the invention and proposes a schematic diagram of an application program interface to be cleaned after the automatic memory cleaning method is adopted as shown in fig. 4, and it can be seen from the diagram that a user can define and set the heat correction value in the interface.
The user of the mobile phone can open the application manager during the use of the mobile phone, and enter the interface shown in fig. 4 to view the latest cleaning records of each application. The first column in fig. 4 shows the cleaning records from applications 1 to 5, and the amount of memory saved by cleaning varies from 10-50M. The second column shows that the cleaning times of each application program are different from 1 to 3, and the specific time when the cleaning action occurs is displayed; the third column shows the user's cleaning options for the application, either completely closed or saving data after closing; if the third column selects to close and then store the data, the fourth column can provide a selection, the stored application program is restored after the touch screen is directly clicked, and a user can directly enter the closed application program through the selection and restore the latest state of the application program when the application program is closed last time without respectively clicking and opening the application program in a main menu of the mobile phone; the fifth column provides a visual heat value coefficient setting box, and the user can modify the heat coefficient by clicking or pulling the corresponding icon. For the application 1, as can be seen from the cleaning record, the application is cleaned twice in a short time within B day (xx2-xx6), which means that the first cleaning does not conform to the usage habit of the user in practice, but the application is not important to the state needing to be protected, so that the heat coefficient needs to be corrected autonomously by the user, and the automatic cleaning program can better adapt to the usage habit defined by each user by the user through the correction of the heat coefficient. The default heat coefficient value of the system is 1, and since the application 1 needs to extend the idle time in the background, the corresponding heat coefficient can be set to be greater than 1, such as 1.55 shown in fig. 4. Therefore, under the same front-end time and the same background idle time, the corrected heat value calculated by the application manager is 1.55 times larger than the original data, and the sequencing arrangement of the heat value can be arranged further ahead and cannot be cleaned immediately. The other applications 2 and 3 are closed for a few times, which means that the user does not need to open the applications for a long time and can clean the applications, so that the heat coefficient does not need to be modified particularly, and the default value 1.0 defined by the system is kept. In particular, the application program 4, because the amount of memory saved in the cleaning process is particularly large, reaching 100M, the user can set the calorific value of the application program 4 to be lower, only 0.6, for further memory saving reasons, so that the application program 4 will be much lower when the application program manager calculates the calorific value than the normal application program with only the default calorific value coefficient (1.0), which will enable the application program four to be cleaned up more quickly.
According to the invention, through the interface for displaying the cleaning record and setting the heat correction value, which is shown in fig. 4, the user can more clearly know the record of the application programs cleaned in the background in the mobile phone and parameters such as the saved memory capacity through automatic cleaning, and the user can evaluate whether the current heat coefficient setting is suitable for the use habit of the application programs by the user through the parameters, and optimally select the heat coefficient of each application program, so that the heat coefficient can be autonomously selected within the heat coefficient selection range (0-2) given by the fifth column in fig. 4. The range of the heat coefficient in practical application can be further optimized according to practical application conditions, and the range can be made to be larger to 0-3 or 0-4, so that the range which can be modified by a user is larger. But too large (greater than 5) is of no practical significance because a larger heat coefficient means that the heat value is higher and less likely to be automatically cleaned, and if the user strongly desires that a particular application not be cleaned, that application can be set directly as a protected program without modifying the heat coefficient very much.
Figure BDA0001538345630000101
TABLE 2
After the heat coefficient correction shown in fig. 4, in the case where the front end use time and the post-storage time of each of the application programs APP1-APP3 shown in reference table 1 are the same, the final heat value shown in table 2 above is formed due to the difference in the heat coefficient value. The heat value of APP1 is changed from 0.667 to 1.03, the heat value of APP3 is changed from 0.909 to 0.5454, and the heat coefficient of APP2 is still 0.167 because the heat coefficient is unchanged. The end result is that the ordering of APP1 rises from second to first and that of APP3 falls from 1 to second, which means that after a period of time, APP2 is cleaned, and then APP3 is cleaned, rather than application APP1 which would need to be cleaned if the default thermal coefficient was 1.0.
Through the description of the first embodiment and the multiple modified embodiments, the present invention can make the automatic cleaning program better fit the usage habit of the mobile phone user through the modification of multiple processing flows and parameter settings, so that the application programs that the mobile phone user needs to protect are protected, the application programs that are expected to be used occasionally or occupy too large memory are cleaned as soon as possible after switching to the background, the applets that are expected to be opened frequently are expected to last for a long time in the background, and various application requirements can be met by the embodiments shown in fig. 1 to 5 of the present invention. By integrating the above embodiments, a complete mobile phone memory automatic cleaning process can be obtained, as shown in fig. 6 below, the complete cleaning process of the present invention includes:
step S30, the program runs, and all programs maintain the current state to run;
step S31, switching or starting program, and entering step S32 when switching or starting program occurs;
step S32, the application manager starts running, starts entering into the automatic cleaning program, and judges whether the automatic cleaning is needed;
step S35, judging the application quantity, counting the quantity of the application programs opened currently by the application manager, if the quantity is less than 6, keeping the current resources back to the step S30, and if the quantity is more than 6, entering the next step S36;
step S36, updating the application heat table, calculating the heat value of each program to obtain the heat value sequencing list of each application program;
step S37, a cleaning judgment step, which is to judge whether the application program with the lowest ranking belongs to the protection program set by the user, if the application program is the reserved program, namely the protected application program, the step S30 is returned, and the whole process is executed again; if not, proceed to next step S38;
step S38, a cleaning mode selection step, namely, according to the setting of the user to the application program needing cleaning currently recorded in the application manager, if the user selects a complete closing option for the current application program, directly entering a cleaning step S39 a; if the current application program is closed after the setting in the application manager is to save data, go to step S39 b;
step S39a, completely closing the current application program, and storing parameters such as cleaning time, cleaning saved memory capacity and the like;
step S39b, store the data of the application program that needs to be cleaned in the memory into the virtual memory defined in the memory, and then completely delete the application program data in the actual physical memory after completing the storage.
Step S40, the user restores the cleaned application, and the user opens the application record that the application manager found to be automatically cleaned up, and needs to restore the original program data, and can open the application again by clicking the relevant position (where the "restart" is shown) in column 4 in the interface shown in fig. 4, and restore the application to the cleaned state. Since the application is newly opened by restoring the application itself, and the number of the opened applications is increased by one, once the application restoring operation occurs, it is equivalent to the occurrence of one program opening or switching defined in step S31, and at this time, since the application manager is always in the open state, the process flow automatically jumps to the application number judgment step of step S35, and then the process flow is processed as described above.
The invention realizes daily monitoring of application programs opened in the mobile phone memory by the application manager through installing software for monitoring and cleaning the mobile phone memory in intelligent terminals such as mobile phones and the like, calculates the heat value of each application program according to the ratio of the front-end time and the background time of each application program, and forms a sequencing list according to the heat value. When the application programs are detected to be opened too much (more than six or more, the setting is carried out according to the physical memory size of the mobile phone and the user requirement), the excessive application programs are cleaned, if the application program with the minimum heat value in the list belongs to the protection program, the next unprotected application program with the heat value can be cleaned, and as long as the next unprotected application program with the heat value is still in a background idle state. After determining whether the application program needs to be cleaned, the option for cleaning the application program can be selected to be completely closed or closed after the data is saved, the option for closing after the data is saved can store the data of the application program needing to be cleaned to the virtual memory, and the application program is closed after the data is transferred, so that the application program is kept in the latest state when the application program is restored by a user next time. The application manager can set the setting parameters such as the cleaning mode, the heat coefficient and the like, and can also see the cleaning record of each application program which occurs recently and the memory capacity saved by cleaning so as to give detailed reference to the user, so that the user can select and set the heat coefficient according to the data. The method for automatically cleaning the memory of the intelligent terminal can better manage the memory of the mobile phone, meets the requirements of users with different use habits under the condition that the memory of the mobile phone is limited, can meet the requirements of more application programs with different application scenes, and improves the use experience of the users on the intelligent terminal.
As will be appreciated by one skilled in the art, the above-described embodiments may be provided as a method, apparatus, or computer program product. These embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. All or part of the steps in the methods according to the embodiments may be implemented by a program instructing related hardware, where the program may be stored in a storage medium readable by a computer device and used to execute all or part of the steps in the methods according to the embodiments.
The various embodiments described above are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a computer apparatus to produce a machine, such that the instructions, which execute via the processor of the computer apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.

Claims (8)

1. An intelligent terminal with an automatic memory cleaning function comprises a touch screen, a touch signal processing unit, a central controller, a memory and a storage, and is characterized in that an application manager is installed in the intelligent terminal, monitors the front-end running time and the background running time of each application program running in the intelligent terminal, and calculates and obtains the heat value of each application program according to the ratio of the front-end running time to the background running time;
when the number of the application programs running in the memory of the intelligent terminal is larger than the preset limit value of the number of the application programs, the application manager selects the application program with the lowest heat value as the application program to be cleaned according to the heat value of each application program;
the application manager stores a protected application program list set by a user, and if the application program to be cleaned belongs to the protected application program, the cleaning step is not executed;
the application manager acquires the front-end running time and the background running time of each application program in an open state only when the newly opened application program or the front-end running application program is switched, and updates the heat value ordered list of each application program;
the application manager further comprises cleaning method selection data, a user of the intelligent terminal sets a respective cleaning method of each application program in the application manager, and the cleaning method options comprise: the method comprises the steps of protected program, completely closing the application program, and closing the application program after saving the running data.
2. The intelligent terminal with the automatic memory cleaning function according to claim 1, wherein the application manager selects data according to the cleaning method and performs a cleaning operation on each application program, and when a cleaning step of closing an application program after saving running data is performed, the data of the application program in the memory is firstly stored in a virtual memory arranged in a memory of the intelligent terminal, and then the data in the memory is deleted.
3. The intelligent terminal with the automatic memory cleaning function according to claim 2, wherein the application manager comprises a cleaning result display interface, and the cleaning result display interface comprises cleaning records of each application program, the memory capacity saved by cleaning, cleaning method selection data, and a heat coefficient of each application program, wherein the heat coefficient can be selectively adjusted by a user of the intelligent terminal.
4. The intelligent terminal with the automatic memory cleaning function according to claim 3, wherein the application manager obtains the corrected heat value of each application program through calculation according to the heat coefficient, the front-end running time and the background running time.
5. The intelligent terminal with the automatic memory cleaning function according to claim 3, wherein the cleaning option is an application program that is closed after the running data is saved, and further comprising an application program recovery step, wherein a user of the intelligent terminal reopens the application program according to the data stored in the virtual memory by clicking a functional area on the touch screen, so that the data in the application program is in a cleaned state.
6. The intelligent terminal with the automatic memory cleaning function according to claim 1, wherein the preset limit of the number of the applications is greater than or equal to 6.
7. The intelligent terminal with the automatic memory cleaning function according to claim 5, wherein after the application program restoring step is executed, the application manager immediately acquires the front-end running time and the background running time of each application program in the open state, and updates the sorted list of the heat value of each application program.
8. The intelligent terminal with the automatic memory cleaning function according to claim 1, wherein if the application with the lowest heat value belongs to the protected application, the cleaning step is not performed on the application with the lowest heat value, and the cleaning step is performed on the application with the next lowest heat value.
CN201810005029.7A 2018-01-03 2018-01-03 Automatic memory cleaning method for intelligent terminal Active CN107943593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810005029.7A CN107943593B (en) 2018-01-03 2018-01-03 Automatic memory cleaning method for intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810005029.7A CN107943593B (en) 2018-01-03 2018-01-03 Automatic memory cleaning method for intelligent terminal

Publications (2)

Publication Number Publication Date
CN107943593A CN107943593A (en) 2018-04-20
CN107943593B true CN107943593B (en) 2022-04-05

Family

ID=61937336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810005029.7A Active CN107943593B (en) 2018-01-03 2018-01-03 Automatic memory cleaning method for intelligent terminal

Country Status (1)

Country Link
CN (1) CN107943593B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557995A (en) * 2018-11-21 2019-04-02 Tcl移动通信科技(宁波)有限公司 A kind of application program interrupt control method, mobile terminal and storage medium
CN109726076B (en) * 2018-12-03 2023-01-06 百度在线网络技术(北京)有限公司 Applet life cycle management method and system
CN109669706A (en) * 2018-12-24 2019-04-23 麒麟合盛网络技术股份有限公司 The management method and device of application
CN109739575A (en) * 2018-12-29 2019-05-10 上海掌门科技有限公司 Information processing method, electronic equipment and computer-readable medium
CN110096347A (en) * 2019-03-29 2019-08-06 努比亚技术有限公司 A kind of process back-stage management method, terminal and computer readable storage medium
CN110543365B (en) * 2019-08-20 2024-01-09 Oppo广东移动通信有限公司 Memory optimization method and device, computer readable medium and electronic equipment
CN111026462B (en) * 2019-12-10 2023-08-29 百度在线网络技术(北京)有限公司 Applet control method, device, apparatus and medium
CN112181515B (en) * 2020-09-18 2024-05-24 Oppo(重庆)智能科技有限公司 Application program control method, device, terminal and storage medium
CN112241322A (en) * 2020-10-20 2021-01-19 北京字节跳动网络技术有限公司 Memory management method and device and mobile device
CN112732355B (en) * 2021-01-08 2022-03-01 湖南华埔信息产业有限公司 Background application cleaning system and method based on big data
CN113010279A (en) * 2021-02-20 2021-06-22 北京字节跳动网络技术有限公司 Application program process processing method and device for mobile terminal and electronic equipment
CN116501162B (en) * 2023-04-23 2023-11-24 深圳中柏科技有限公司 Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324500A (en) * 2013-05-06 2013-09-25 广州市动景计算机科技有限公司 Method and device for recycling internal memory
CN103914365A (en) * 2012-12-31 2014-07-09 北京金山安全软件有限公司 Method and device for acquiring power consumption of mobile terminal application
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN105893448A (en) * 2015-12-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and system for generating application popularity list
CN106445604A (en) * 2016-09-29 2017-02-22 深圳市邦华电子有限公司 Clearing method and device for applications
CN107479967A (en) * 2017-07-04 2017-12-15 深圳天珑无线科技有限公司 A kind of automatic method and intelligent terminal for removing internal memory

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8578364B2 (en) * 2008-04-25 2013-11-05 Microsoft Corporation Dynamic management of operating system resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914365A (en) * 2012-12-31 2014-07-09 北京金山安全软件有限公司 Method and device for acquiring power consumption of mobile terminal application
CN103324500A (en) * 2013-05-06 2013-09-25 广州市动景计算机科技有限公司 Method and device for recycling internal memory
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN105893448A (en) * 2015-12-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and system for generating application popularity list
CN106445604A (en) * 2016-09-29 2017-02-22 深圳市邦华电子有限公司 Clearing method and device for applications
CN107479967A (en) * 2017-07-04 2017-12-15 深圳天珑无线科技有限公司 A kind of automatic method and intelligent terminal for removing internal memory

Also Published As

Publication number Publication date
CN107943593A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107943593B (en) Automatic memory cleaning method for intelligent terminal
WO2017128521A1 (en) Screen lock interface processing method and terminal
US9224105B2 (en) Method and system of automatically downloading media content in a preferred network
JP2016530657A (en) Application switching and input information adding method and apparatus
US9255814B2 (en) Systems and methods for transitioning between pedometer modes
CN108882040A (en) Booting contents management method, smart television and the readable storage medium storing program for executing of television set
CN111984130B (en) Shortcut operation method and device and electronic equipment
CN107957906A (en) Application management method, computer installation, the computer-readable recording medium of terminal device
CN103604197A (en) Air conditioner touch control interface display method and system
US10560513B2 (en) Small disk support for large cloud-based storage systems
CN106155789A (en) A kind of application freezing method and mobile terminal
CN117193602A (en) Method and device for switching application internal interfaces
JP2003015892A (en) Information terminal equipment and application management program
CN111045824A (en) Application control method and device, electronic equipment and computer readable medium
CN107766134A (en) The cleaned system method and mobile device of a kind of mobile device
CN107665147A (en) The cleaned system method and mobile device of a kind of mobile device
CN106569724A (en) Method and device for dynamically setting virtual key and terminal
CN113946385A (en) Application program cleaning method and application program cleaning device
CN109286834B (en) Video processing method and device and server
CN113590027A (en) Data storage method, data acquisition method, system, device and medium
CN102164305A (en) Video processing method and device and mobile communication terminal
CN113010790A (en) Content recommendation method, device, server and storage medium
EP1955203B1 (en) Storage profile generation for network-connected portable storage devices
EP3596598B1 (en) Method of managing applications and computing device using the same
CN110140117B (en) Terminal automatically cleans personal files of users based on user habits

Legal Events

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