The invention discloses a method, device and storage device for releasing memory of mobile terminal and mobile terminal, which obtains the state of terminal application program by the state of the terminal bright screen, determines whether the state of the terminal application program conforms to one or more of the identification states, and kills the terminal application program if it does not conform to one or more of the identification states. Cheng. In the terminal out-of-screen state, it is judged whether the terminal application has ever been in the foreground state; if, it is judged whether the time when the terminal application last used the foreground or voice channel or window exceeds the preset time; if, it is judged whether the ratio of total memory to residual memory reaches the preset multiple; if so, the terminal application process is killed. By releasing the memory after the end of the process of the useless terminal application program, the invention solves the problem that the terminal runs slowly due to the insufficient memory of the terminal or that the use experience is affected by the carton.
【技术实现步骤摘要】
移动终端以及移动终端释放内存方法、装置和存储装置
本专利技术涉及到移动终端
,特别是涉及到一种移动终端以及移动终端释放内存方法、装置和存储装置。
技术介绍
随着智能终端如手机、平板、智能游戏机等设备的发展,终端的功能越来越强,相应的,支持这些功能的应用程序也越来越多。当终端上运行的程序越多或越久,所占的内存就会越多,并且,一些流氓应用虽然从应用窗口关闭了,但是仍然占据内存。当终端内存被占用越多,能分配给当前应用的内存越少,情况严重的,会造成终端运行缓慢、甚至卡顿、同时增加终端耗电。现在有的一种清除内存的方法,是手动清理终端所有内存,导致当前用户运行程序需要重新启动,影响用户体验。因此,为解决上述问题,亟需一种新的释放终端内存的方法。
技术实现思路
本专利技术的主要目的为提供一种移动终端以及移动终端释放内存方法、装置和存储装置,旨在解决上述的问题。为了实现上述专利技术目的,本专利技术提出一种移动终端释放内存的方法,所述方法包括步骤:终端处于亮屏状态时,获取终端应用程序所处的状态;判断所述终端应用程序所处的状态是否符合标识状态中的一种或多种;若否,则杀掉所述终端应用 ...
【技术保护点】
1.一种移动终端释放内存的方法,其特征在于,所述方法包括步骤:终端处于亮屏状态时,获取终端应用程序所处的状态;判断所述终端应用程序所处的状态是否符合标识状态中的一种或多种;若否,则杀掉所述终端应用程序对应的进程。
【技术特征摘要】
1.一种移动终端释放内存的方法,其特征在于,所述方法包括步骤:终端处于亮屏状态时,获取终端应用程序所处的状态;判断所述终端应用程序所处的状态是否符合标识状态中的一种或多种;若否,则杀掉所述终端应用程序对应的进程。2.根据权利要求1所述的移动终端释放内存的方法,其特征在于,所述判断所述终端应用程序所处的状态是否符合标识状态中的一种或多种的步骤之后,还包括:若是,则不对所述终端应用程序做附加操作。3.根据权利要求1所述的移动终端释放内存的方法,其特征在于,所述终端应用程序的标识状态包括:应用处于前台、有应用窗口显示、正在使用声音通道、正在持有唤醒锁、导航应用需要响应位置更新、应用响应Binder调用、AMS主动调用、网络正在下载或上传、系统服务强制应用不可结束。4.一种移动终端释放内存的方法,其特征在于,所述方法包括步骤:终端处于灭屏状态时,判断终端应用程序所处的状态是否符合预设条件;若是,判断总内存与剩余内存的比值是否达到预设倍数;若是,则杀掉所述终端应用程序对应的进程。5.根据权利要求4所述的移动终端释放内存的方法,其特征在于,所述终端处于灭屏状态时,判断终端应用程序所处的状态是否符合预设条件的步骤之前,包括:若所述终端应用程序在灭屏前不具备有前台状态、窗口显示以及使用声音通道之中的任何一种,则杀掉所...
【专利技术属性】
技术研发人员:贺威,
申请(专利权)人:奇酷互联网络科技深圳有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。