CN107291483B - Method for intelligently deleting application program and electronic equipment - Google Patents
Method for intelligently deleting application program and electronic equipment Download PDFInfo
- Publication number
- CN107291483B CN107291483B CN201610204435.7A CN201610204435A CN107291483B CN 107291483 B CN107291483 B CN 107291483B CN 201610204435 A CN201610204435 A CN 201610204435A CN 107291483 B CN107291483 B CN 107291483B
- Authority
- CN
- China
- Prior art keywords
- memory
- last
- deleting
- application
- application program
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Abstract
The invention provides a method for intelligently deleting an application program, which is applied to electronic equipment, wherein the electronic equipment comprises a memory, and the method comprises the following steps: adding, namely adding the application program loaded into the memory into a white list; a removing step of removing one or more applications from the white list; and deleting the background application programs which are not in the white list in the memory. The invention also provides an electronic device applying the method for intelligently deleting the application program. The method for intelligently deleting the application program can intelligently select and delete the application program loaded into the memory.
Description
Technical Field
The invention relates to a method for intelligently deleting an application program and electronic equipment applying the method for intelligently deleting the application program.
Background
In order to speed up the restart of the application program, the conventional electronic device loads the executed application program into the memory, and deletes the application program from the memory only when the usage amount of the memory reaches a preset value. However, the deleted application program may be an application program that is to be used again by the user later, and the loading time caused by the deletion of the application program is slow, which may cause a certain trouble to the user.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method for deleting an application program intelligently and an electronic device applying the method for deleting an application program intelligently, so as to select and delete an application program in a memory.
A method for intelligently deleting an application program is applied to an electronic device, the electronic device comprises a memory, and the method comprises the following steps: adding, namely adding the application program loaded into the memory into a white list; a removing step of removing one or more applications from the white list; and deleting the background application programs which are not in the white list in the memory.
An electronic device, comprising: a storage device for storing an application program; a memory for loading an application program; a processor for implementing a method for intelligent application deletion, said processor performing the steps of: adding, namely adding the application program loaded into the memory into a white list; a removing step of removing one or more applications from the white list; and deleting the background application programs which are not in the white list in the memory.
Compared with the prior art, the method for intelligently deleting the application programs adds the application programs loaded into the memory into the white list, deletes one or more application programs from the white list according to the preset rule, and deletes the application programs which are not in the white list, so that the application programs in the memory are selectively deleted according to the preset rule, the application programs which are used by a user in the follow-up process are prevented from being deleted as much as possible, and the experience effect of the user is improved.
Drawings
FIG. 1 is a schematic diagram of an operating environment of a system for intelligently deleting an application according to a preferred embodiment of the present invention.
FIG. 2 is a flow chart of the preferred embodiment of the method for deleting an application program intelligently.
Description of the main elements
Electronic device | 1 |
System for deleting application program intelligently | 10 |
Add module | 101 |
Removal module | 102 |
Delete module | 103 |
Memory device | 11 |
Processor with a memory having a plurality of memory cells | 12 |
Storage device | 13 |
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
Fig. 1 is a schematic diagram showing an operating environment of a system for intelligently deleting an application according to a preferred embodiment of the present invention. The system 10 for intelligently deleting the application programs is installed and operated in the electronic device 1. The electronic device 1 further includes, but is not limited to, a memory 11, a processor 12, and a storage device 13. The electronic device 1 may be a mobile electronic device such as a mobile phone and a tablet computer, or may be other electronic devices such as a personal computer, a wearable device, a digital television, or a display screen for a vehicle. The intelligent application deletion system 10 is used for intelligently selecting and deleting one or more applications from applications loaded in memory.
The memory 11 is used for loading an application program and data to be executed, and may be a Random Access Memory (RAM), a Read Only Memory (ROM), a Cache (Cache), and the like. The processor 12 is configured to run an application installed in the electronic device 1 and control each device in the electronic device 1 to perform a corresponding operation. The storage device 13 is used for storing each application program and data installed in the electronic device 1, and may be a storage device such as a Smart Media Card (Smart Media Card), a Secure Digital Card (Secure Digital Card), and a Flash memory Card (Flash Card).
In this embodiment, the system for deleting an application program intelligently according to the present invention may be divided into one or more modules, and the one or more modules are stored in the storage device 13 and executed by one or more processors 12 (in this embodiment, a processor), so as to complete the present invention. Referring to fig. 1, the system 10 for deleting an application intelligently according to the present invention is divided into an adding module 101, a removing module 102 and a deleting module 103. The module referred to in the present invention refers to a series of computer program segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the system 10 for intelligently deleting an application program in the electronic device 1. The specific functions of the respective modules will be described below in conjunction with the flowchart of fig. 2.
Fig. 2 is a flow chart of a method for deleting an application program intelligently according to a preferred embodiment of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 2 may be changed and some steps may be omitted according to different requirements.
In step S21, the adding module 101 adds the application program loaded in the memory 11 to a white list. The white list is a list for recording applications by recording identification information of the applications, such as the name or ID of the application. That is, the adding module 101 adds the identification information of the application program loaded in the memory 11 to the white list. The white list may be stored in the memory 11 or the storage device 13.
In this embodiment, the adding module 101 adds the application program to the white list when the application program is loaded into the memory 11. That is, when an application is loaded into the memory 11, the adding module 101 immediately adds the application to the white list.
In another embodiment, the adding module 101 may also add the application program loaded into the memory 11 during the preset time period to the white list.
In step S22, the removing module 102 determines whether the usage amount of the memory 11 exceeds a first preset value. If the usage amount of the memory 11 exceeds the first preset value, executing step S23; if the usage amount of the memory 11 does not exceed the first preset value, step S24 is executed.
In this embodiment, the removing module 102 determines whether the usage amount of the memory 11 exceeds a first preset value every preset time. The first predetermined value may be a fixed value (e.g. 1.5GB), or may be a proportion (e.g. 75%) of the total capacity of the memory 11.
In step S23, the removal module 102 removes one or more applications from the whitelist. Specifically, the removing module 102 sorts all the application programs in the white list according to a preset rule to generate a list, and removes one or more application programs with the lowest ranking in the list. In this specification, the higher the ranking, the smaller the value of the ranking, that is, the ranking 1 st is the highest.
In this embodiment, the preset rule is to sort the applications according to the number of times of use of each application, and the applications with higher number of times of use are ranked higher in the list. That is, the removing module 102 obtains the number of times that each application program in the white list is used by the user of the electronic device 1 after being loaded into the memory 11, and then sorts all application programs in the white list according to the number of times that the application program is used by the user, wherein the higher the number of times of use is, the higher the ranking is, the lower the corresponding number of times of use is, the lower the ranking is.
For example, the white list includes three applications: program a, program B, and program C. The sequence in which these three applications are used (or executed) by the user of the electronic device 1 in turn is as follows: program a, program B, program a, and program C. In this case, the number of times of use of the program a, the program B, and the program C is 3, 2, and 1, respectively. Therefore, a list is obtained by sorting the use times from high to low, wherein the row name of the program A is 1, the row name of the program B is 2, and the rank of the program C is 3.
In another embodiment, the preset rule is to sort by the last usage time or the last usage order of each application, and the later the last usage time or the last usage order, the higher the ranking.
For example, the white list includes three applications: program a, program B, and program C. The sequence in which these three applications are used (or executed) by the user of the electronic device 1 in turn is as follows: program a, program B, program a, and program C. At this time, the application programs are sorted according to the last use time or the last use order to obtain a list, wherein the program C is ranked as 1, the program A is ranked as 2, and the program B is ranked as 3.
In a further embodiment, the preset rule is to sort the usage times and the last usage time or the last usage order of each application. The removing module 102 determines the influence of the number of times of use and the last time of use or the last order of use on the last sorting result by assigning a corresponding weight to the number of times of use and the last time of use or the last order of use, respectively.
For example, the white list includes three applications: program a, program B, and program C. The sequence in which these three applications are used (or executed) by the user of the electronic device 1 in turn is as follows: program a, program B, program a, and program C. The first list is obtained by sorting the number of uses from high to low, where the rank of program A is 1, the rank of program B is 2, and the rank of program C is 3. And sequencing the application programs according to the last use time or the last use sequence to obtain a second list, wherein the ranking of the program C is 1, the ranking of the program A is 2, and the ranking of the program B is 3. And then determining a third list according to the weight occupied by the number of times of use and the last time of use or the last order of use and the first list and the second list respectively. It is assumed that the weight occupied by the number of times of use is 0.4 and the weight occupied by the last use time or the last use order is 0.6. The score for program a is 1 × 0.4+2 × 0.6 ═ 1.6, the score for program B is 2 × 0.4+3 × 0.6 ═ 2.6, and the score for program C is 3 × 0.4+1 × 0.6 ═ 1.8, with smaller scores ranked higher. So in the last determined third list, program a is ranked 1, program C is ranked 2, and program B is ranked 3.
It should be noted that, in this embodiment, the removing module 102 is executed when the usage amount of the memory 11 exceeds a first preset value. In other embodiments, the removal module 102 may be executed under other conditions, for example, once every preset time. That is, in other embodiments, the step S22 may be omitted.
It should also be noted that all the application programs in the white list may be deleted, that is, the application programs are deleted from the memory 11 without causing a failure of the electronic device. The system for intelligently deleting applications 10 may further include a non-deletable list for recording important applications that cannot be deleted or for ranking the non-deletable applications at the highest ranking of the list at all times.
In step S24, the deleting module 103 determines whether the usage amount of the memory 11 exceeds a second preset value. If the usage amount of the memory 11 exceeds the second preset value, executing step S25; if the usage amount of the memory 11 does not exceed the second preset value, the process is ended. In this embodiment, the second preset value is smaller than the first preset value. In other embodiments, the second preset value may also be equal to the first preset value.
It should be noted that, in this embodiment, the deleting module 103 is executed when the usage amount of the memory 11 exceeds a second preset value. In other embodiments, the deleting module 103 may be executed under other conditions, for example, once every preset time. That is, in other embodiments, the step S24 may be omitted.
In step S25, the deleting module 103 deletes the background application program in the memory that is not in the white list. If the system for intelligently deleting applications 10 further includes a non-deletable list, the deleting module 103 deletes the background applications that are not in the white list and are not in the non-deletable list.
It should be noted that steps S21 to S25 are a loop, and the system 10 for deleting the application program intelligently executes the loop from being turned on to being turned off.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting, and those skilled in the art should understand that the technical solutions of the present invention can be modified or substituted with equivalents without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A method for intelligently deleting an application program is applied to an electronic device, the electronic device comprises a memory, and the method is characterized by comprising the following steps:
adding, namely adding the application program loaded into the memory into a white list;
a removing step, namely judging whether the usage amount of the memory exceeds a first preset value or not, and removing one or more application programs from the white list when the usage amount of the memory exceeds the first preset value; and
a deleting step, namely judging whether the usage amount of the memory exceeds a second preset value or not, and deleting background application programs which are not in the white list in the memory when the usage amount of the memory exceeds the second preset value;
wherein the second preset value is less than or equal to the first preset value.
2. The method for intelligently deleting an application as recited in claim 1, wherein said removing step further comprises:
and sequencing all the application programs in the white list according to a preset rule to generate a list, and deleting one or more application programs with the lowest rank in the list.
3. The method for intelligently deleting applications as claimed in claim 2, wherein said preset rule is sorted by the number of uses of each application, and applications with higher number of uses are ranked higher.
4. The method for intelligently deleting applications as recited in claim 2, wherein said preset rule is ordered by the last usage time or the last usage order of each application, and said last usage time or last usage order is ranked higher the later.
5. The method for deleting an application program intelligently as claimed in claim 2, wherein the preset rule is sorted according to the number of times of use, the last time of use or the last order of use, the weight occupied by the number of times of use, and the weight occupied by the last time of use or the last order of use of each application program, and the higher the number of times of use is, the higher the rank is, the later the rank is, the higher the last time of use or the last order of use is.
6. An electronic device, comprising:
a storage device for storing an application program;
a memory for loading an application program;
a processor for implementing a method for intelligent application deletion, said processor performing the steps of:
adding, namely adding the application program loaded into the memory into a white list;
a removing step, namely judging whether the usage amount of the memory exceeds a first preset value or not, and removing one or more application programs from the white list when the usage amount of the memory exceeds the first preset value; and
a deleting step, namely judging whether the usage amount of the memory exceeds a second preset value or not, and deleting background application programs which are not in the white list in the memory when the usage amount of the memory exceeds the second preset value;
wherein the second preset value is less than or equal to the first preset value.
7. The electronic device of claim 6, wherein the removing step further comprises:
and sequencing all the application programs in the white list according to a preset rule to generate a list, and deleting one or more application programs with the lowest rank in the list.
8. The electronic device of claim 7, wherein the preset rules are ordered by number of uses of each application, and applications with higher number of uses are ranked higher.
9. The electronic device of claim 7, wherein the preset rule is to sort by a last usage time or a last usage order of each application, and the later the last usage time or the last usage order is, the higher the ranking is.
10. The electronic device of claim 7, wherein the preset rule is sorted by the number of uses, the last usage time or the last usage order, the weight occupied by the number of uses, and the weight occupied by the last usage time or the last usage order of each application, and the higher the number of uses is, the higher the ranking is, the later the last usage time or the last usage order is.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610204435.7A CN107291483B (en) | 2016-04-01 | 2016-04-01 | Method for intelligently deleting application program and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610204435.7A CN107291483B (en) | 2016-04-01 | 2016-04-01 | Method for intelligently deleting application program and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107291483A CN107291483A (en) | 2017-10-24 |
CN107291483B true CN107291483B (en) | 2021-02-05 |
Family
ID=60087882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610204435.7A Active CN107291483B (en) | 2016-04-01 | 2016-04-01 | Method for intelligently deleting application program and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107291483B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274093B (en) * | 2020-01-23 | 2023-12-01 | 湖南快乐阳光互动娱乐传媒有限公司 | Application program ordering method and device |
CN113312591A (en) * | 2021-05-28 | 2021-08-27 | 杭州迈冲科技有限公司 | Control method and device based on Android system application white list |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164268A (en) * | 2013-04-02 | 2013-06-19 | 北京奇虎科技有限公司 | System optimization method and system optimization device |
CN104636364A (en) * | 2013-11-08 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Method and device for freeing memory of browser |
CN104881493A (en) * | 2015-06-12 | 2015-09-02 | 北京金山安全软件有限公司 | File cleaning method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8943261B2 (en) * | 2011-10-28 | 2015-01-27 | International Business Machines Corporation | Efficient memory management in software caches |
CN103092700B (en) * | 2013-02-01 | 2016-09-28 | 华为终端有限公司 | Internal memory method for cleaning, device and terminal unit |
CN105373485A (en) * | 2014-09-01 | 2016-03-02 | 富泰华工业(深圳)有限公司 | Memory cleaning system and method and terminal device |
CN104298613B (en) * | 2014-09-29 | 2018-02-23 | 广州猎豹网络科技有限公司 | The method for cleaning and terminal device of a kind of Installed System Memory |
CN104298549B (en) * | 2014-09-30 | 2018-03-30 | 北京金山安全软件有限公司 | Method and device for cleaning application programs in mobile terminal and mobile terminal |
CN104503840B (en) * | 2014-12-15 | 2016-09-28 | 北京奇虎科技有限公司 | The method and device that terminal resource is optimized |
CN105335099A (en) * | 2015-09-25 | 2016-02-17 | 深圳市金立通信设备有限公司 | Memory cleaning method and terminal |
-
2016
- 2016-04-01 CN CN201610204435.7A patent/CN107291483B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164268A (en) * | 2013-04-02 | 2013-06-19 | 北京奇虎科技有限公司 | System optimization method and system optimization device |
CN104636364A (en) * | 2013-11-08 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Method and device for freeing memory of browser |
CN104881493A (en) * | 2015-06-12 | 2015-09-02 | 北京金山安全软件有限公司 | File cleaning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107291483A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951340A (en) | Information processing method and device | |
CN105760199B (en) | A kind of application resource loading method and its equipment | |
CN111324303B (en) | SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium | |
CN108108384B (en) | Data storage method and device | |
CN108763572B (en) | Method and device for realizing Apache Solr read-write separation | |
CN112882663B (en) | Random writing method, electronic equipment and storage medium | |
CN105446653A (en) | Data merging method and device | |
CN107291483B (en) | Method for intelligently deleting application program and electronic equipment | |
CN107766528B (en) | Data loading method and terminal for waterfall flow page and computer readable storage medium | |
CN114418128B (en) | Model deployment method and device | |
CN115981870A (en) | Data processing method and device, storage medium and electronic equipment | |
WO2015014260A1 (en) | Data processing method and server therefor | |
CN103543901A (en) | Method and device for generating menus | |
CN108287761B (en) | Memory recovery method and device, terminal equipment and computer readable storage medium | |
CN105117168A (en) | Information processing method and electronic equipment | |
CN112596898A (en) | Task executor scheduling method and device | |
CN112650449A (en) | Release method and release system of cache space, electronic device and storage medium | |
CN109976905B (en) | Memory management method and device and electronic equipment | |
US20210004272A1 (en) | Electronic device and method for controlling same | |
US9749577B1 (en) | Host video recording by baseboard management controller (BMC) | |
EP3296878B1 (en) | Electronic device and page merging method therefor | |
TWI590159B (en) | Applications Automatic Removing Method and Electronic Device | |
CN110688223B (en) | Data processing method and related product | |
US9824028B2 (en) | Cache method and cache apparatus | |
KR102288876B1 (en) | Scheduling independent and dependent actions for processing |
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 |