CN105242973A - Internal memory optimization method of Android system - Google Patents

Internal memory optimization method of Android system Download PDF

Info

Publication number
CN105242973A
CN105242973A CN201510759713.0A CN201510759713A CN105242973A CN 105242973 A CN105242973 A CN 105242973A CN 201510759713 A CN201510759713 A CN 201510759713A CN 105242973 A CN105242973 A CN 105242973A
Authority
CN
China
Prior art keywords
application program
white list
android system
frame rate
memory
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.)
Pending
Application number
CN201510759713.0A
Other languages
Chinese (zh)
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 Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510759713.0A priority Critical patent/CN105242973A/en
Publication of CN105242973A publication Critical patent/CN105242973A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an internal memory optimization method of an Android system. The internal memory optimization method comprises the following steps: when starting an application program, detecting a current frame rate of a current display image of a mobile terminal, clearing the process of an application program provided with no white list in a background according to a comparative result of the current frame rate and a preset frame rate value to save the operation internal memory of the system, further detecting the current use rate of the operation internal memory of the system, and controlling the clear or restart of the process of an application program provided with a white list according to the comparative result of the current frame rate and the preset frame rate value to enable the started application program to have an enough operation internal memory. By adopting the internal memory optimization method disclosed by the invention, on the premise of not affecting the user operation or experience, the application state change of the system is effectively detected, and internal memory optimization and user behavior analysis are further achieved, so that the operation speed of the Android system is improved without changing the hardware settings, and the operation experience of users is improved.

Description

A kind of Memory Optimize Method of Android system
Technical field
The present invention relates to a kind of optimization method of Installed System Memory, be specifically related to a kind of Memory Optimize Method of Android system.
Background technology
In existing Android system mechanism, the mutual activity (application process) that the operation that user carries out produces can be collected by task stack, this task stack stack contains the level of all current user interface UI shown in systems in which, it is homepage at the bottom of stack, the activity assembly of element application, the activity assembly of application in stack, the activity assembly of stack top element application, represents and is illustrated in the application of the top at interface, namely the user behavior be concerned about most of user.In the existing mechanism of Android system, be only concerned about the change of stack top element, all do not deal with for other elements in stack, this just causes a lot of internal memories of system will be consumed in the sightless behavior of user, causes the waste of resource.
Summary of the invention:
In order to overcome the defect of above-mentioned background technology, the invention provides a kind of Memory Optimize Method of Android system.
In order to solve the problems of the technologies described above of the present invention adopted technical scheme be:
A Memory Optimize Method for Android system, comprising:
Step 1, detects the current frame rate of mobile terminal, judges whether current frame rate is less than preset frame rate value, if so, then enters step 2, if not, then directly enter application program;
Step 2, clears up the application program not being set to white list in background application or restarts control;
Preferably, further, detect the current memory utilization rate that mobile terminal system runs, judge whether current memory utilization rate is greater than default memory usage value, if so, then enters step 4, if not, then enters step 5;
Step 4, clears up the application program being set to white list or restarts control, and entering application program;
Step 5, the application program being set to white list of having cleared up in reboot step 4, and enter application program.
Preferably, frame rate value is preset by user, comprises smooth grade and fine and smooth grade, and the frame per second of smooth grade is greater than 20 frames/second, and the frame per second of fine and smooth grade is greater than 40 frames/second.
Preferably, step 2, the concrete grammar cleared up the application program not arranging white list in background application or restart control is: each application program of traversal backstage, judge whether each application program is set to the application program of white list successively, if, then retain this program process, if not, then terminate this program process or control is restarted to this application process.
Preferably, memory usage value is preset by user.
Preferably, step 4, according to the priority in white list set by each application program when clearing up the application program being set to white list or restart control, carries out from low to high.
Preferably, in white list, the priority of each application program is preset by user.
Preferably, also comprise, after entering application program, if by full frame for application program operation, then shutdown system desktop special efficacy and the application program multimedia service of not applying.
Beneficial effect of the present invention is: by when starting application program, detect the current frame rate of the current display frame of mobile terminal, and according to the comparative result of this current frame rate and preset frame rate value, cleaning backstage does not arrange the running memory of process with the system of saving of the application program of white list, the current memory utilization rate further run by detection system, and according to the comparative result of this current memory usage and default memory usage value, the process of the application program being provided with white list is cleared up or restarts control, the application program for opening is enable to have enough running memories.
The present invention is under the prerequisite not affecting user operation and experience, the change of system application state is effectively detected, and realize optimization and the user behavior analysis of internal memory further, which simplify current memory management mechanism, effectively prevent the operation such as to manslaughter affecting Consumer's Experience, and system achieves the unitarity of self application and system interface switching according to the analysis of user behavior.Improving the travelling speed of Android system when not changing hardware setting, improving the operating experience of user.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of the present invention 1;
Fig. 2 is that the application program not arranging white list in the embodiment of the present invention 1 pair of background application is cleared up or restarts the process flow diagram of control;
Fig. 3 is the process flow diagram of the embodiment of the present invention 2;
Fig. 4 is the process flow diagram of the embodiment of the present invention 3;
Fig. 5 is the process flow diagram of the embodiment of the present invention 4.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, contrast accompanying drawing is illustrated the specific embodiment of the present invention below.Apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings, and obtain other embodiment.
A kind of Memory Optimize Method of Android system, when startup one application program, detect the current frame rate of the current display frame of mobile terminal, according to the comparative result of current frame rate and preset frame rate value, process backstage not being arranged to white list application program is cleared up or restarts control, the current memory utilization rate further run by detection system, according to the current memory utilization rate of system cloud gray model and the comparative result of default memory usage value, the process being provided with white list application program is cleared up or restarts control.Frame rate value and memory usage value preset by user.
Embodiment 1, a kind of Memory Optimize Method (Fig. 1) of Android system, it specifically comprises:
Step 1, detects the current frame rate of mobile terminal, judges whether current frame rate is less than preset frame rate value, if so, then enters step 2, if not, then directly enter an application program;
Here frame rate value comprises smooth grade and fine and smooth grade, and the frame per second of smooth grade is greater than 20 frames/second, and the frame per second of fine and smooth grade is greater than 40 frames/second.Which kind of get grade to be preset by user as frame rate value.
An application program described in the present embodiment is for taking pictures or taking class application program, can also be other application, such as video playback application journey, game application journey etc., when the current running memory of mobile terminal is not enough, directly translate into display frame card frame, namely frame per second is low, by the current frame rate of detection display picture, can be used for the early-stage preparations of background application being cleared up or restarts the actions such as control.
Step 2, clears up the application program not being set to white list in background application or restarts control;
The application program not arranging white list in background application is cleared up or restarts the concrete grammar of control for (Fig. 2):
Each application program of traversal backstage, judges whether the application program at every turn traversed is the application program setting into white list successively,
If so, this program process is then retained,
If not, then terminate this program process or control is restarted to this application process.
Improve as one, the present embodiment further comprising the steps of 3 to 5.
Embodiment 2, the present embodiment has set up the Optimization Steps (Fig. 3) entered after an application program on the basis of embodiment 1, concrete: after entering an application program, if by full frame for this application program setting, then shutdown system desktop special efficacy and this application program multimedia service of not applying.The desktop special efficacy of shutdown system and as much as possiblely can vacate running memory for this full frame application with this full frame application incoherent multimedia application service, reaches the object of smooth stable operation.
Embodiment 3, the present embodiment is on the basis of embodiment 1, further according to this current memory usage and default memory usage value, the process of the application program being provided with white list is cleared up or restarts control, the application program of unlatching is enable to have enough running memories, the present embodiment comprises the full content of embodiment 1, and after step 1 and step 2, set up step 3-5, particularly (Fig. 3):
Step 1, detects the current frame rate of mobile terminal, judges whether current frame rate is less than preset frame rate value, if so, then enters step 2, if not, then directly enter an application program;
Step 2, clears up the application program not being set to white list in background application or restarts control;
Step 3, detects the current memory utilization rate that mobile terminal system runs, judges whether current memory utilization rate is greater than default memory usage value, if so, then enters step 4, if not, then enters step 5;
When the running memory of system is not enough, system card can be caused to pause, have a strong impact on the experience of user, by the utilization rate of the running memory of detection system, and according to current memory utilization rate and default memory usage value, clear up the application program being previously provided with white list or restart control, the present embodiment sets memory usage value as 70%.
Step 4, clears up the application program being set to white list or restarts control, and enters an application program;
According to the priority in white list set by each application program when clearing up the application program arranging white list or restart control, carry out from low to high, in white list, the priority of each application program is preset by user.
Step 5, the application program being set to white list of having cleared up in reboot step 4, and enter an application program.
Embodiment 4, the present embodiment comprises Overall Steps and the content of embodiment 3, and on the basis of embodiment 3, set up the Optimization Steps (Fig. 4) entered after an application program, concrete: after entering an application program, if by full frame for this application program setting, then shutdown system desktop special efficacy and this application program multimedia service of not applying.The desktop special efficacy of shutdown system and as much as possiblely can vacate running memory for this full frame application with this full frame application incoherent multimedia application service, reaches the object of smooth stable operation.
The Memory Optimize Method of the Android system that above-mentioned four embodiments provide is by when startup one application program, detect the current frame rate of the current display frame of mobile terminal, and the running memory of process with the system of saving of the application program of white list is not set according to this current frame rate and preset frame rate value cleaning backstage, the current memory utilization rate further run by detection system, and according to this current memory usage and default memory usage value, the process of the application program being provided with white list is cleared up or restarts control, the application program of unlatching is enable to have enough running memories.Under the prerequisite not affecting user operation and experience, the change of system application state is effectively detected, and realize optimization and the user behavior analysis of internal memory further, which simplify current memory management mechanism, effectively prevent the operation such as to manslaughter affecting Consumer's Experience, and system achieves the unitarity of self application and system interface switching according to the analysis of user behavior.Improving the travelling speed of Android system when not changing hardware setting, improving the operating experience of user.
It should be noted that above-described embodiment all can independent assortment as required.The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. a Memory Optimize Method for Android system, is characterized in that: comprising:
Step 1, detects the current frame rate of mobile terminal, judges whether described current frame rate is less than preset frame rate value, if so, then enters step 2, if not, then directly enter application program;
Step 2, clears up the application program not being set to white list in background application or restarts control.
2. the Memory Optimize Method of a kind of Android system according to claim 1, it is characterized in that: further, detect the current memory utilization rate that mobile terminal system runs, judge whether described current memory utilization rate is greater than default memory usage value, if, then enter step 4, if not, then enter step 5;
Step 4, clears up the application program being set to white list or restarts control, and enters described application program;
Step 5, restarts in described step 4 application program being set to white list of having cleared up, and enters described application program.
3. the Memory Optimize Method of a kind of Android system according to claim 1, it is characterized in that: described frame rate value is preset by user, comprise smooth grade and fine and smooth grade, the frame per second of described smooth grade is greater than 20 frames/second, and the frame per second of described fine and smooth grade is greater than 40 frames/second.
4. the Memory Optimize Method of a kind of Android system according to claim 2, it is characterized in that, described step 2, the concrete grammar cleared up the application program not arranging white list in background application or restart control is: each application program of traversal backstage, judge whether each application program is set to the application program of described white list successively, if so, then retain this program process, if not, then terminate this program process or control is restarted to this application process.
5. the Memory Optimize Method of a kind of Android system according to claim 1, is characterized in that: described memory usage value is preset by user.
6. the Memory Optimize Method of a kind of Android system according to claim 2, it is characterized in that: described step 4, according to the priority in described white list set by each application program when clearing up the application program being set to white list or restart control, carry out from low to high.
7. the Memory Optimize Method of a kind of Android system according to claim 6, is characterized in that: in described white list, the described priority of each application program is preset by user.
8. the Memory Optimize Method of a kind of Android system according to claim 1 and 2, it is characterized in that: also comprise, after entering described application program, if by full frame for described application program operation, then shutdown system desktop special efficacy and the described application program multimedia service of not applying.
CN201510759713.0A 2015-11-10 2015-11-10 Internal memory optimization method of Android system Pending CN105242973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510759713.0A CN105242973A (en) 2015-11-10 2015-11-10 Internal memory optimization method of Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510759713.0A CN105242973A (en) 2015-11-10 2015-11-10 Internal memory optimization method of Android system

Publications (1)

Publication Number Publication Date
CN105242973A true CN105242973A (en) 2016-01-13

Family

ID=55040627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510759713.0A Pending CN105242973A (en) 2015-11-10 2015-11-10 Internal memory optimization method of Android system

Country Status (1)

Country Link
CN (1) CN105242973A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
CN106095363A (en) * 2016-06-03 2016-11-09 广东欧珀移动通信有限公司 Ameliorative way, device and the terminal that a kind of terminal card pauses
CN106201551A (en) * 2016-07-22 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application program exits method and device
CN106354562A (en) * 2016-08-25 2017-01-25 上海传英信息技术有限公司 Memory cleaning system and memory cleaning method
CN106445820A (en) * 2016-09-21 2017-02-22 惠州Tcl移动通信有限公司 Method and system for optimizing application program operation and mobile terminal
CN106650430A (en) * 2016-12-01 2017-05-10 惠州Tcl移动通信有限公司 Application state locking control method and system based on mobile terminal
CN106775811A (en) * 2016-11-17 2017-05-31 Tcl集团股份有限公司 A kind of animation playing method and device
CN107423164A (en) * 2017-07-21 2017-12-01 北京小米移动软件有限公司 Using method for restarting and device
CN107678849A (en) * 2017-10-18 2018-02-09 广东小天才科技有限公司 The open method and user terminal of a kind of application program
CN107678857A (en) * 2017-09-26 2018-02-09 联想(北京)有限公司 The control method and electronic equipment of a kind of electronic equipment
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A kind of method and device for starting application
CN107783835A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 System optimization method and device
CN108255282A (en) * 2016-12-29 2018-07-06 华为软件技术有限公司 A kind of terminal processes management method and terminal
WO2019041324A1 (en) * 2017-09-01 2019-03-07 深圳传音通讯有限公司 Shooting frame rate selection method for terminal, terminal, and computer readable storage medium
CN109614168A (en) * 2018-12-11 2019-04-12 深圳美图创新科技有限公司 Memory Optimize Method and device
CN109683979A (en) * 2017-10-17 2019-04-26 中兴通讯股份有限公司 A kind of control method and device using self-starting
CN111061492A (en) * 2019-12-16 2020-04-24 连尚(新昌)网络科技有限公司 Application program processing method and device and computer storage medium
CN112398915A (en) * 2020-10-28 2021-02-23 武汉大势智慧科技有限公司 APP application auditing method and system of cloud rendering platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345397A (en) * 2013-07-11 2013-10-09 北京奇虎科技有限公司 Method and device for cleaning processes of mobile terminal
US20140304706A1 (en) * 2013-04-08 2014-10-09 Xiaomi Inc. Method and device for setting status of application
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN104834529A (en) * 2015-05-25 2015-08-12 腾讯科技(深圳)有限公司 Method and device for optimizing performance of application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304706A1 (en) * 2013-04-08 2014-10-09 Xiaomi Inc. Method and device for setting status of application
CN103345397A (en) * 2013-07-11 2013-10-09 北京奇虎科技有限公司 Method and device for cleaning processes of mobile terminal
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN104834529A (en) * 2015-05-25 2015-08-12 腾讯科技(深圳)有限公司 Method and device for optimizing performance of application

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975301B (en) * 2016-04-29 2018-09-04 北京小米移动软件有限公司 Memory method for cleaning and device, electronic equipment
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
WO2017185569A1 (en) * 2016-04-29 2017-11-02 北京小米移动软件有限公司 Method of clearing memory, device, and electronic apparatus
US10409684B2 (en) 2016-04-29 2019-09-10 Beijing Xiaomi Mobile Software Co., Ltd. Method, device and storage medium for cleaning memory
CN106095363B (en) * 2016-06-03 2019-04-26 Oppo广东移动通信有限公司 A kind of ameliorative way, device and the terminal of terminal Caton
CN106095363A (en) * 2016-06-03 2016-11-09 广东欧珀移动通信有限公司 Ameliorative way, device and the terminal that a kind of terminal card pauses
CN106201551A (en) * 2016-07-22 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application program exits method and device
US11132219B2 (en) 2016-08-17 2021-09-28 Huawei Technologies Co., Ltd. Starting method for applications which are closed automatically based on the insufficient memory of the system
CN107766128B (en) * 2016-08-17 2021-01-29 华为技术有限公司 Method and device for starting application
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A kind of method and device for starting application
CN106354562A (en) * 2016-08-25 2017-01-25 上海传英信息技术有限公司 Memory cleaning system and memory cleaning method
CN106354562B (en) * 2016-08-25 2024-04-12 深圳市泰衡诺科技有限公司 Memory cleaning system and memory cleaning method
CN107783835A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 System optimization method and device
CN106445820A (en) * 2016-09-21 2017-02-22 惠州Tcl移动通信有限公司 Method and system for optimizing application program operation and mobile terminal
CN106775811A (en) * 2016-11-17 2017-05-31 Tcl集团股份有限公司 A kind of animation playing method and device
CN106650430A (en) * 2016-12-01 2017-05-10 惠州Tcl移动通信有限公司 Application state locking control method and system based on mobile terminal
CN108255282A (en) * 2016-12-29 2018-07-06 华为软件技术有限公司 A kind of terminal processes management method and terminal
CN107423164A (en) * 2017-07-21 2017-12-01 北京小米移动软件有限公司 Using method for restarting and device
CN111406399B (en) * 2017-09-01 2022-04-08 深圳传音通讯有限公司 Terminal shooting frame rate selection method, terminal and computer readable storage medium
CN111406399A (en) * 2017-09-01 2020-07-10 深圳传音通讯有限公司 Terminal shooting frame rate selection method, terminal and computer readable storage medium
WO2019041324A1 (en) * 2017-09-01 2019-03-07 深圳传音通讯有限公司 Shooting frame rate selection method for terminal, terminal, and computer readable storage medium
CN107678857A (en) * 2017-09-26 2018-02-09 联想(北京)有限公司 The control method and electronic equipment of a kind of electronic equipment
CN109683979A (en) * 2017-10-17 2019-04-26 中兴通讯股份有限公司 A kind of control method and device using self-starting
CN107678849A (en) * 2017-10-18 2018-02-09 广东小天才科技有限公司 The open method and user terminal of a kind of application program
CN109614168A (en) * 2018-12-11 2019-04-12 深圳美图创新科技有限公司 Memory Optimize Method and device
CN111061492A (en) * 2019-12-16 2020-04-24 连尚(新昌)网络科技有限公司 Application program processing method and device and computer storage medium
CN111061492B (en) * 2019-12-16 2023-12-29 连尚(新昌)网络科技有限公司 Application processing method, device and computer storage medium
CN112398915B (en) * 2020-10-28 2022-07-01 武汉大势智慧科技有限公司 APP application auditing method and system of cloud rendering platform
CN112398915A (en) * 2020-10-28 2021-02-23 武汉大势智慧科技有限公司 APP application auditing method and system of cloud rendering platform

Similar Documents

Publication Publication Date Title
CN105242973A (en) Internal memory optimization method of Android system
KR101864980B1 (en) Virtual machine power management
CN102799489B (en) Method and device for controlling terminal, and terminal
US20160048682A1 (en) Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal
WO2015176448A1 (en) Method and apparatus for intelligent screen splitting of terminal
WO2015143966A1 (en) Terminal display mode determining method and apparatus
WO2021072716A1 (en) Memory management method and apparatus, electronic device and computer-readable medium
CN109743616A (en) A kind of standby and awakening method and device of smart television
US11889135B2 (en) Video stream playing control method and apparatus, and storage medium
CN102693136A (en) Quick starting method and system for computer and starting system of computer
CN103596053A (en) Method and terminal for PIP playing
CN104503828A (en) Process management method and terminal
CN106020415A (en) Application control method and apparatus for intelligent device in standby state
KR20220131290A (en) Application operating mode switching method and apparatus, electronic device and storage medium
CN111258921A (en) Method and device for recycling garbage memory, electronic equipment and storage medium
CN107682724A (en) Display methods, device, intelligent remote controller and computer-readable recording medium
CN103869926A (en) Power saving method and electronic device
WO2021196594A1 (en) Attachment force adjustment method and apparatus, device, and storage medium
CN100458695C (en) Automatic total remote controlling method
TW201921243A (en) Method and apparatus for switching a view, and computing device
CN107835454A (en) Timeout treatment method, apparatus and storage medium based on WebApp
CN105808629B (en) Webpage processing method and device
WO2016198003A1 (en) Mobile terminal power source management method and device, and mobile terminal
CN105472459A (en) Automatic optimization system and method of intelligent television system
WO2016115761A1 (en) Electricity saving method and device for multi-system 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160113

RJ01 Rejection of invention patent application after publication