WO2012155405A1 - 移动通信终端后台空闲程序自动关闭的方法及装置 - Google Patents

移动通信终端后台空闲程序自动关闭的方法及装置 Download PDF

Info

Publication number
WO2012155405A1
WO2012155405A1 PCT/CN2011/078733 CN2011078733W WO2012155405A1 WO 2012155405 A1 WO2012155405 A1 WO 2012155405A1 CN 2011078733 W CN2011078733 W CN 2011078733W WO 2012155405 A1 WO2012155405 A1 WO 2012155405A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
idle
flag
background
automatically
Prior art date
Application number
PCT/CN2011/078733
Other languages
English (en)
French (fr)
Inventor
范晓黎
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012155405A1 publication Critical patent/WO2012155405A1/zh

Links

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for automatically shutting down an idle program in a background of a mobile communication terminal.
  • the main object of the present invention is to provide a method and apparatus for automatically shutting down the idle program in the background of the mobile communication terminal.
  • the present invention provides a method for automatically shutting down an idle program in a background of a mobile communication terminal, including setting a task of automatically shutting down an idle program;
  • the flag bit includes status information of the program
  • the program that turns off the flag bit to a specific value according to the scan result.
  • the program for closing the flag to a specific value is:
  • the program for closing the flag to a specific value is:
  • the timer is started and the program is closed periodically.
  • the task of setting the automatic shutdown idle program is: selecting a program that needs to be automatically closed and a time for automatically closing the program.
  • the setting of the task of automatically closing the idle program further includes:
  • the program flag is set to 0; if there is a program startup but does not enter the background, the program flag is set to 1; if a program starts and enters the background, but does not enter the idle state, then this program flag The position is 2; if a program starts and enters the background and is idle, the program flag is set to a specific value of 3.
  • the program for closing the flag bit to a specific value according to the scan result further includes: alerting the user when the program is closed.
  • the invention also provides a device for automatically shutting down the idle program in the background of the mobile communication terminal, comprising: a setting module, configured to set a task of automatically closing the idle program;
  • a scanning module configured to start the task, and scan a program flag bit in the mobile communication terminal;
  • the flag bit contains status information of the program;
  • the execution module is used to close the flag to a specific value according to the scan result.
  • the execution module is further configured to determine whether the program whose flag is a specific value is in an idle state, and if so, execute the program to be closed; if not, wait until the program is in an idle state, and then close.
  • the setting module Preferably, the setting module. Further, if there is no program to start, the program flag is set to 0. If there is a program startup but does not enter the background, the program flag is set to 1; if a program starts and enters the background, but does not enter the idle state, then The location of this program flag is 2; if a program starts and enters the background, and is in an idle state, the program flag is set to a specific value of 3;
  • the execution module is specifically configured to close the program when the scanning module scans the flag into a program.
  • the setting module is further configured to select a program that needs to be automatically closed and a time for automatically closing the program.
  • the method and device for automatically closing the background idle program of the mobile communication terminal can automatically shut down the idle program in the background, save the current use memory of the mobile terminal, and avoid the impact on the system performance due to the long-term operation of the background program. It solves the slow operation of the system caused by the terminal starting more programs, and greatly improves the performance of the mobile terminal, especially the ease of use and user experience of the multi-tasking operating system.
  • FIG. 1 is a schematic flow chart of a method for automatically closing a background idle program of a mobile communication terminal according to the present invention
  • FIG. 2 is a schematic diagram of a menu for selecting an automatic shutdown when the background is idle in an initial setting according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a menu for setting a shutdown time and a reminder when the user is initially set in an initial setting according to an embodiment of the present invention
  • 4 is a schematic diagram of flag bit conversion of a terminal program in different states according to an embodiment of the present invention
  • FIG. 5 is a schematic flow chart of a method for automatically closing a background idle program of a mobile communication terminal according to the present invention
  • FIG. 6 is a schematic structural diagram of an apparatus for automatically shutting down a background idle program of a mobile communication terminal according to the present invention. detailed description
  • a method for automatically closing a background idle program of a mobile communication terminal includes the following steps:
  • an initial setup step is required to set up the task to automatically close the idle program.
  • the initial setup steps include selecting the program option that requires automatic shutdown, the time the timer is turned off, and whether to alert the user when the program is closed.
  • the installed program in the mobile terminal passes through the UI after being scanned in full.
  • the (user interface) mode is displayed, and the menu is provided to the user.
  • the program includes the system program that comes with the mobile terminal and the third-party program installed by the user through the network.
  • the user can perform the program of the scan list. Customized selection, selecting a program that needs to be closed when the background is idle using the method of the present invention.
  • the UI displays the installed program 1, program 2, program 3, program 4, program 5, and program 6 in the mobile terminal to the user in the form of a list, and each program has a single option ( Check box), the user can individually check one or more programs that need to be closed when the background is idle, and the menu also provides full options, so that the user can quickly select the above program 1, program 2, program by checking this item.
  • Program 4, Program 5, and Program 6 are all automatically closed using the method of the present invention when the background is idle.
  • the user can select all of the programs in a single item, multiple selections, and all selection lists to automatically close using the method of the present invention when the background is idle.
  • FIG. 1 shows the installed program 1, program 2, program 3, program 4, program 5, and program 6 in the mobile terminal to the user in the form of a list, and each program has a single option ( Check box), the user can individually check one or more programs that need to be closed when the background is idle, and the menu also provides full options, so that the user can quickly select the above program 1, program 2, program by checking this item.
  • the off time can be set to any time, but when set to a very long time, the beneficial effects of the invention are weakened.
  • the user can also set whether to prompt the user when the background idle program is automatically closed when the background idle time is met and the set shutdown time is reached.
  • the user can set the program by ticking "When the program background running automatically closes the user?" Checked, when the idle application in the background meets the closing condition, it will remind the user that the application has met the closing condition and has closed it by itself. Otherwise, the program is automatically closed without reminding.
  • S1 starting the task, scanning a program flag bit in the mobile communication terminal; the flag bit includes status information of the program.
  • the present invention uses a PID (Process Identifier) to indicate the state of the program, and the PID is set to be different according to the different states of the respective programs. Sign bit.
  • PID Process Identifier
  • the rule for setting the flag is: If the program is not started, the program is not detected in the program manager, the flag of the program is set to 0. If a program is detected but does not enter the background, this is The flag position of the program is 1. If a program is detected to enter the background, but it is not in the idle state, the flag position of this program is 2. If the program is detected to enter the background, and the background application is idle, the flag of this program is The position is 3, and the states represented by the flag bits can be transformed with each other, and the process is reversible, as shown in FIG.
  • the idle state In this method, only after entering the background, there is an opportunity to be defined as an idle state. Some local applications such as e-books, cameras, cameras, etc. will enter the idle state immediately after entering the background. Some applications that interact with the network will enter the idle state when they enter the background and wait for no information interaction with the network. For example, after the MMS (Multimedia Messaging Service) is successfully sent, the download tube The application can only be defined as idle after all download queues have completed.
  • MMS Multimedia Messaging Service
  • S2 The program that turns off the flag bit to a specific value according to the scan result.
  • the start timer starts counting.
  • the program will It is automatically turned off. If the user is prompted to close when the initial setting is selected, the user will be prompted to close the program when it is closed.
  • Figure 5 is a flow chart showing the completeness of the method shown in the embodiment of the present invention. As shown in Figure 5, the method includes the following specific steps:
  • step S302 determining whether a program enters the background, if a program enters the background, executing step S303, at which time the PID of the program is set to 2, and if no program enters the background, the status of each program is continuously monitored in the task manager;
  • step S303 determining whether the program is a program selected by the user. In the initial setting, the user sets a program that needs to be automatically closed. If the program is a program that needs to be closed when the user sets the background idle, step S304 is performed. If not, proceed to step S301;
  • step S304 determining whether the program is in an idle state, according to the definition of the idle state, if the program is in an idle state, executing step S305, where the PID of the program is set to 3;
  • S308 Clearing the timer until the program satisfies the background operation and restarts the timer in the idle state;
  • S309 If the program keeps the idle state in the background during the counting period, determine the size of the timer T1 and the closing time T. If T1>T, the process goes to step S310, and if ⁇ , the process returns to step S306 to continue counting.
  • step S310 At this time, the shutdown condition has been met, and it is determined whether the user has set the shutdown reminder before, otherwise if the process proceeds to step S312, the program is directly closed; if yes, the process proceeds to step S311;
  • step S311 Remind the user that the program has been idle and the time exceeds the closing time ⁇ , the program will be closed, and proceeds to step S312;
  • This method can cyclically monitor the execution of the program that is idle in the background, or close the program that meets the shutdown condition at the same time.
  • FIG. 6 is a diagram of an apparatus for automatically shutting down a background idle procedure of a mobile communication terminal according to an embodiment of the present invention, including:
  • the setting module 40 is configured to set a task for automatically closing the idle program; specifically, the program option that needs to be automatically turned off when the backstage is idle, the closing time of the timer, and whether the user is reminded when the user is turned off.
  • the setup module 40 is required to perform an initial setup step to set the task of automatically shutting down the idle program, which may include selecting a program that needs to be automatically closed and the time to automatically close the program.
  • the initial settings include selecting the program option that needs to be automatically turned off, the time when the timer is turned off, and whether to remind the user when the program is closed.
  • the installed program in the mobile terminal is displayed in the form of a list after being scanned in full, and is provided to the menu selected by the user.
  • the program therein includes the system program of the mobile terminal and the user downloading through the network.
  • the third-party program allows the user to make a custom selection of the programs that are listed in the scan list, and selects the method that needs to use the method of the present invention to close the program when the background is idle.
  • the UI displays the installed program 1, the program 2, the program 3, the program 4, the program 5, and the program 6 in the mobile terminal to the user in the form of a list, and each program has a
  • a single option (checkbox) allows the user to individually select one or more programs that need to be closed when the background is idle.
  • the menu also provides full options, allowing the user to quickly select the above program by checking this option.
  • Program 2, Program 3, Program 4, Program 5, and Program 6 are all automatically closed using the method of the present invention when the background is idle.
  • the user can select all of the programs in a single item, multiple selections, and all selection lists to automatically close using the method of the present invention when the background is idle.
  • the setting module 40 continues to select how long the selected program is automatically closed and closed after being idle in the background. Whether to remind the user.
  • the off time the default is 30 minutes. In theory, the off time can be set to any time, but when set to a very long time, the beneficial effects of the invention are weakened.
  • the user can also use the setting module 40 to set whether to prompt the user when the background idle program is automatically closed when the background idle time is met and the set closing time is reached.
  • the user can select the "Remind the user when the program background running automatically closes?" Settings, if checked, will remind the user that the application has met the shutdown condition when the idle application meets the shutdown condition in the background, and has closed it by itself. Otherwise, the program is automatically closed without reminding.
  • the scanning module 41 is configured to start the task, and scan a program flag bit in the mobile communication terminal; the flag bit includes status information of the program;
  • the scanning module 41 After the initial setting is completed, the scanning module 41 starts scanning the status of each program in the task manager.
  • the present invention uses the PID to indicate the status of the program, and the PID is set to a different flag according to the different states of the respective programs.
  • the setting module 40 is specifically configured to: if the program is not started, that is, the program is not detected in the program manager, the flag position is 0, if a program is detected, but the program is not entered. The flag of this program is set to 1. If a program is detected to enter the background but is not in the idle state, the flag of this program is set to 2. If the program is detected to enter the background, and the background application is idle, The flag position of this program is 3, the states represented by the flag bits can be transformed with each other, and the process is reversible, as shown in Fig. 4.
  • the execution module 42 is configured to close the flag to a specific value according to the scan result.
  • the execution module 42 starts the timer to start timing, according to the initial set closing time, if the timer counts the set closing time, the program It will be automatically closed. If the user is selected when the initial setting is selected, the user will be prompted to close the program.
  • the setting may also be modified in the use of the device. For example, in actual use, if you want to cancel or add a new program to automatically close when the background idle, modify the timer off time or cancel the automatic shutdown reminder function, then The setting module 40 can be called to save the corresponding settings during use, and the execution module 42 will perform corresponding settings according to the settings.
  • the mobile terminal involved in the embodiment of the present invention is a mobile terminal supporting a multi-tasking system, and has no relationship with the operating system of the mobile terminal itself.
  • the invention can be applied to any operating system, such as
  • Linux operating system Android system, Windows Phone system, Sybian system, etc.

Landscapes

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

Abstract

本发明涉及一种移动通信终端后台空闲程序自动关闭的方法及装置,包括设置模块设置自动关闭空闲程序的任务;扫描模块启动所述任务,扫描移动通信终端中程序标志位,所述标志位包含所述程序的状态信息;执行模块根据扫描结果关闭标志位为特定值的程序。本发明所述的一种移动通信终端后台空闲程序自动关闭的方法及装置,能够对后台空闲程序进行自动关闭,节省了移动终端的当前使用内存,避免了因后台程序长期运行而对系统性能造成影响,解决了终端在启动较多程序而导致的系统运行缓慢,大大提高了移动终端的性能,尤其是多任务操作系统的易用性和用户体验。

Description

移动通信终端后台空闲程序自动关闭的方法及装置 技术领域 本发明涉及通信领域, 尤其涉及一种移动通信终端后台空闲程序自动 关闭的方法及装置。 背景技术 随着通信技术的不断发展和人们对移动终端, 例如手机的要求不断提 升, 智能型移动终端在日常生活中扮演了越来越重要的角色。 为此, 具有 各种操作系统的移动终端随之诞生, 例如 Android系统, Windows Phone系 统, Sybian系统, 以及众多厂家支持的 Linux 系统。 但凡这些具有操作系 统的终端都是多任务操作系统, 也就是说同时可以有多个程序运行, 而且 用户还可以在网络下载到多种多样的第三方程序来满足不同的需要。
但在用户享受这种多任务操作系统带来的快乐体验的同时, 也带来了 一个不可回避的问题, 那就是随着后台程序开启的增多, 对智能终端性能 表现上是一个挑战, 越来越多的后台程序的开启不仅会导致智能终端运行 效率的下降, 功耗的增加, 并且会产生由于内存不足而增加终端的死机现 象。
在目前移动终端中, 只有用户自己在使用中体会到了机器性能明显变 慢的情况下才想到去任务管理器中查看一些无用的程序或进程, 进行手动 关闭。 而对于一些初级手机用户, 在遇到这种情况时, 往往以为是手机本 身出现了问题, 就不停地进行重启操作, 降低了使用时的体验度。 鉴于这 种情况, 需要一种能解决上述问题的方案, 使得用户可以灵活设定关闭空 闲的后台程序。 发明内容
本发明的主要目的在于提供一种移动通信终端后台空闲程序自动关闭 的方法及装置。
本发明提出一种移动通信终端后台空闲程序自动关闭的方法, 包括设 置自动关闭空闲程序的任务; 还包括:
启动所述任务, 扫描移动通信终端中程序标志位; 所述标志位包含所 述程序的状态信息;
才艮据扫描结果关闭标志位为特定值的程序。
优选的, 所述 居扫描结果关闭标志位为特定值的程序为:
判断标志位为特定值的程序是否处于空闲状态, 如果是, 则执行关闭 所述程序; 如果不是, 则等待至该程序处于空闲状态, 然后关闭。
优选的, 所述 居扫描结果关闭标志位为特定值的程序为:
启动计时器, 定时关闭所述程序。
优选的, 所述设置自动关闭空闲程序的任务为: 选择需要自动关闭的 程序及自动关闭程序的时间。
优选的, 所述设置自动关闭空闲程序的任务还包括:
如果无程序启动, 则将程序标志位置为 0; 如果有程序启动但未进入后 台, 则将此程序标志位置为 1 ; 如果有程序启动并进入后台, 但没有进入空 闲状态, 则将此程序标志位置为 2; 如果有程序启动并进入后台, 且处于空 闲状态, 则将此程序标志位置为特定值 3。
优选的, 所述根据扫描结果关闭标志位为特定值的程序还包括: 在关闭程序时提醒用户。
本发明还提出一种移动通信终端后台空闲程序自动关闭的装置, 包括: 设置模块, 用于设置自动关闭空闲程序的任务;
扫描模块, 用于启动所述任务, 扫描移动通信终端中程序标志位; 所 述标志位包含所述程序的状态信息;
执行模块, 用于根据扫描结果关闭标志位为特定值的程序。
优选的, 所述执行模块, 进一步用于判断标志位为特定值的程序是否 处于空闲状态, 如果是, 则执行关闭所述程序; 如果不是, 则等待至该程 序处于空闲状态, 然后关闭。
优选的, 所述设置模块。 进一步用于如果无程序启动, 则将程序标志 位置为 0, 如果有程序启动但未进入后台, 则将此程序标志位置为 1 ; 如果 有程序启动并进入后台, 但没有进入空闲态, 则将此程序标志位置为 2; 如 果有程序启动并进入后台, 且处于空闲状态, 则将此程序标志位置为特定 值 3;
所述执行模块, 具体用于当扫描模块扫描到标志位为 3程序时, 关闭 所述程序。
优选的, 所述设置模块, 还用于选择需要自动关闭的程序及自动关闭 程序的时间。
本发明所述的一种移动通信终端后台空闲程序自动关闭的方法及装 置, 能够对后台空闲程序自动关闭, 节省了移动终端的当前使用内存, 避 免了因后台程序长期运行而对系统性能造成影响, 解决了终端在启动较多 程序而导致的系统运行緩慢, 大大提高了移动终端的性能, 尤其是多任务 操作系统的易用性和用户体验。 附图说明
图 1是本发明移动通信终端后台空闲程序自动关闭的方法流程示意图; 图 2是本发明一实施例初始设置时选择需要在后台空闲时自动关闭的 菜单示意图;
图 3是本发明一实施例初始设置时设定关闭时间和关闭时是否提醒用 户的菜单示意图; 图 4是本发明一实施例终端程序在不同状态时的标志位转换示意图; 图 5是本发明移动通信终端后台空闲程序自动关闭的方法完整的流程 示意图;
图 6是本发明移动通信终端后台空闲程序自动关闭的装置结构示意图。 具体实施方式
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。
如图 1 所示, 为本发明一实施例的一种移动通信终端后台空闲程序自 动关闭的方法, 包括以下步骤:
SO: 设置自动关闭空闲程序的任务;
在首次使用时, 需要初始设置步骤, 以设置自动关闭空闲程序的任务。 初始设置步骤包括选择需要自动关闭的程序选项、 计时器的关闭时间以及 选择程序在关闭时是否告知用户的提醒等。
移动终端中的已经安装的程序经过全盘扫描后釆用列表的形式通过 UI
(用户界面) 的方式显示出来, 提供给用户选择的菜单, 这里面的程序包 括移动终端自带的系统程序和用户通过网络下载等安装的第三方程序, 用 户可以对这些扫描列表出来的程序进行自定义的选择, 选择需要使用本发 明的方法在后台空闲时关闭的程序。
如图 2所示, UI将移动终端中的已经安装的程序 1、 程序 2、 程序 3、 程序 4、 程序 5、 程序 6用列表的形式显示给用户, 每个程序前都有一个单 选项(勾选框), 用户可以单独勾选一个或多个那些在后台空闲时需要关闭 的程序, 菜单中还提供全选项, 使用户可以通过勾选此项快速选择为以上 程序 1、 程序 2、 程序 3、 程序 4、 程序 5、 程序 6在后台空闲时使用本发明 的方法全部自动关闭。 总之, 用户可以单项选择, 多项选择和全部选择列 表显示出来的所有程序在后台空闲时使用本发明的方法自动关闭。 如图 3 所示, 在选择完在后台空闲时使用本发明的方法需要自动关闭 的程序项后, 继续选择已选程序在后台空闲多长时间后自动关闭和关闭时 是否提醒用户。 在设置关闭时间时, 默认值为 30分钟。 理论上, 关闭时间 可以设置任意时间, 但设置为超长时间时, 此发明的有益效果有所减弱。
另外用户还可以设置当满足后台空闲时并达到设定的关闭时间后, 自 动关闭后台空闲程序时是否提示用户, 用户可以通过勾选 "程序后台运行 自动关闭时提醒用户? " 进行设置, 如果进行了勾选, 在后台空闲应用满 足关闭条件时会提醒用户此应用已满足关闭条件, 已经自行将其关闭, 反 之不进行提醒, 自动关闭此程序。
S1 : 启动所述任务, 扫描移动通信终端中程序标志位; 所述标志位包 含所述程序的状态信息。
在初始设置完毕后, 便开始在任务管理器中扫描每个程序的状态, 本 发明利用 PID ( Process Identifier, 进程标志符)来指示程序的状态, 根据各 个程序的不同状态, PID被设置为不同的标志位。
其中设定标志位规则为: 如果没有启动此程序, 即没有在程序管理器 中监测到该程序, 将此程序的标志位置为 0, 如果检测到有程序启动, 但没 进入到后台, 将此程序的标志位置为 1 , 如果检测到有程序进入后台, 但没 有处于空闲状态, 将此程序的标志位置为 2, 如果检测到程序进入后台, 并 此后台应用处于空闲状态, 将此程序的标志位置为 3 , 标志位代表的各状态 之间可以相互转化, 且过程是可逆的, 如图 4所示。
在这里说明一下对于空闲态的定义, 在此方法中只有在进入后台后才 有机会被定义为空闲态, 一些本地应用程序如电子书, 照相机, 摄像机等 在进入后台后就会立即进入空闲态, 一些与网络交互的应用程序, 在进入 后台后需要等待与网络方没有信息交互时才会进入空闲态, 如 MMS ( Multimedia Messaging Service, 多媒体信息服务)在发送成功后, 下载管 理应用程序在所有下载队列都完成后才能被定义为空闲态。
S2: 根据扫描结果关闭标志位为特定值的程序。
根据以上设定的标志位规则,若扫描到程序的 PID被置为 3 ,则启动计 时器开始计时, 根据初始设置的关闭时间, 若计时器计时达到设定的关闭 时间, 则此程序就会被自动关闭, 若在初始设置时选择了关闭时提醒用户, 则在关闭时会提供给用户关闭此程序的提醒。
图 5是本发明实施例所示方法完整的流程图。 如图 5所示, 该方法包 括以下具体的步骤:
S301 : 进入任务管理器开始扫描每个程序状态, 若没有在任务管理器 中扫描到的程序,则其 PID置为 0;若检测到有程序启动,但没有进入后台, 则置为 1;
S302: 判断是否有程序进入后台, 若有程序进入后台则执行步骤 S303, 此时该程序的 PID被置于 2,若无程序进入后台则继续在任务管理器中监测 每个程序的状态;
S303 : 判断此程序是否为用户选择设定的程序, 在初始设置时, 用户 会设定需要自动关闭的程序, 若此程序是用户设定的后台空闲时需要关闭 的程序, 则执行步骤 S304,若不是, 则执行步骤 S301 ;
S304: 判断此程序是否处于空闲态, 根据空闲态的定义, 如果此程序 处于空闲态, 则执行步骤 S305 , 此时程序的 PID置为 3;
S305:启动计时器, 开始对此程序计时, 计时时间为 T1 ;
S306: 将 T1与设定的关闭时间 T进行比较;
S307: 若计时期间此程序重新被调回前台执行任务, 标志位退后到 1 , 进入步骤 S308;
S308: 对计时器进行清零操作, 直到该程序满足后台运行并在空闲态 时才会重新开启计时器; S309:若在计时期间此程序保持后台中的空闲态, 则判断计时器的 T1 与关闭时间 T的大小,若 T1>T,则进入步骤 S310,若 ΤΚΤ,则回到步骤 S306 继续计时。
S310: 此时已经满足关闭条件, 判断之前用户是否有设定关闭提醒, 若否则进入步骤 S312直接关闭此程序; 若是则进入步骤 S311 ;
S311: 提醒用户该程序由于一直处于空闲状态并且时间超过关闭时间 Τ, 此时会关闭该程序, 并进入步骤 S312;
S312: 执行关闭程序。
此时便完成对处于后台空闲的程序自动关闭, 本方法可以循环监测对 进入后台空闲的程序执行关闭, 也可同时对多个满足关闭条件的程序执行 关闭。
图 6所示本发明一实施例提供的一种移动通信终端后台空闲程序自动 关闭的装置, 包括:
设置模块 40, 用于设置自动关闭空闲程序的任务; 具体可以包括在后 台空闲时需要自动关闭的程序选项、 计时器的关闭时间和在关闭时是否提 醒用户。
在首次使用时, 需要利用设置模块 40执行初始设置步骤, 以设置自动 关闭空闲程序的任务, 可以包括选择需要自动关闭的程序及自动关闭程序 的时间。 初始设置具体包括选择需要自动关闭的程序选项、 计时器的关闭 时间以及选择程序在关闭时是否告知用户的提醒等。
移动终端中的已经安装的程序经过全盘扫描后釆用列表的形式通过 UI 的方式显示出来, 提供给用户选择的菜单, 这里面的程序包括移动终端自 带的系统程序和用户通过网络下载等安装的第三方程序, 用户可以对这些 扫描列表出来的程序进行自定义的选择, 选择需要使用本发明的方法在后 台空闲时关闭程序。 具体的, 可参照图 2所示, UI将移动终端中的已经安装的程序 1、 程 序 2、 程序 3、 程序 4、 程序 5、 程序 6用列表的形式显示给用户, 每个程 序前都有一个单选项(勾选框), 用户可以单独勾选一个或多个那些在后台 空闲时需要关闭的程序, 菜单中还提供全选项, 使用户可以通过勾选此项 快速选择为以上程序 1、 程序 2、 程序 3、 程序 4、 程序 5、 程序 6在后台空 闲时使用本发明的方法全部自动关闭。 总之, 用户可以单项选择, 多项选 择和全部选择列表显示出来的所有程序在后台空闲时使用本发明的方法自 动关闭。
进一步地, 还可参照图 3 所示, 在选择完在后台空闲时使用本发明的 方法需要自动关闭的程序项后, 设置模块 40继续选择已选程序在后台空闲 多长时间后自动关闭和关闭时是否提醒用户。 在设置关闭时间时, 默认值 为 30分钟。 理论上, 关闭时间可以设置任意时间, 但设置为超长时间时, 此发明的有益效果有所减弱。
另外用户还可以利用设置模块 40设置当满足后台空闲时并达到设定的 关闭时间后, 自动关闭后台空闲程序时是否提示用户, 用户可以通过勾选 "程序后台运行自动关闭时提醒用户? " 进行设置, 如果进行了勾选, 在 后台空闲应用满足关闭条件时会提醒用户此应用已满足关闭条件, 已经自 行将其关闭, 反之不进行提醒, 自动关闭此程序。
扫描模块 41 , 用于启动所述任务, 扫描移动通信终端中程序标志位; 所述标志位包含所述程序的状态信息;
在初始设置完毕后, 扫描模块 41便开始在任务管理器中扫描每个程序 的状态, 本发明利用 PID来指示程序的状态, 根据各个程序的不同状态, PID被设置为不同的标志位。
其中设置模块 40具体用于如果没有启动此程序, 即没有在程序管理器 中监测到该程序, 将标志位置为 0, 如果检测到有程序启动, 但没进入到后 台, 将此程序的标志位置为 1 , 如果检测到有程序进入后台, 但没有处于空 闲状态, 将此程序的标志位置为 2 , 如果检测到程序进入后台, 并此后台应 用处于空闲状态, 将此程序的标志位置为 3 , 标志位代表的各状态之间可以 相互转化, 且过程是可逆的, 如图 4所示。
执行模块 42 , 用于根据扫描结果关闭标志位为特定值的程序。
根据设定的标志位规则, 若扫描到程序的 PID被置为 3 , 则执行模块 42启动计时器开始计时, 根据初始设置的关闭时间, 若计时器计时达到设 定的关闭时间, 则此程序就会被自动关闭, 若在初始设置时选择了关闭时 提醒用户, 此时还会提供给用户关闭此程序的提示。
本实施例也可在装置使用中修改设置, 如在实际使用中时想要取消或 新增对某一程序实现后台空闲时自动关闭, 修改计时器的关闭时间或取消 自动关闭时提醒功能, 则可以在使用过程中调用设置模块 40进行相应设置 保存即可, 此时执行模块 42便会根据设置执行相应设置。
本发明实施例所涉及的移动终端为支持多任务系统的移动终端, 与移 动终端本身是何操作系统没有关系, 此发明可以适用于任何操作系统, 如
Linux操作系统、 Android系统、 Windows Phone系统、 Sybian系统等。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或流程变换, 或直接或 间接运用在其它相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
1、 一种移动通信终端后台空闲程序自动关闭的方法, 其特征在于, 设 置自动关闭空闲程序的任务; 所述方法还包括:
启动所述任务, 扫描移动通信终端中程序标志位; 所述标志位包含所 述程序的状态信息;
才艮据扫描结果关闭标志位为特定值的程序。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据扫描结果关闭 标志位为特定值的程序为:
判断标志位为特定值的程序是否处于空闲状态, 如果是, 则执行关闭 所述程序; 如果不是, 则等待至该程序处于空闲状态, 然后关闭。
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据扫描结果关闭 标志位为特定值的程序为:
启动计时器, 定时关闭所述程序。
4、 根据权利要求 1所述的方法, 其特征在于, 所述设置自动关闭空闲 程序的任务为: 选择需要自动关闭的程序及自动关闭程序的时间。
5、 根据权利要求 4所述的方法, 其特征在于, 所述设置自动关闭空闲 程序的任务还包括:
如果无程序启动, 则将程序标志位置为 0; 如果有程序启动但未进入后 台, 则将此程序标志位置为 1 ; 如果有程序启动并进入后台, 但没有进入空 闲状态, 则将此程序标志位置为 2; 如果有程序启动并进入后台, 且处于空 闲状态, 则将此程序标志位置为特定值 3。
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述根据扫 描结果关闭标志位为特定值的程序还包括:
在关闭程序时提醒用户。
7、 一种移动通信终端后台空闲程序自动关闭的装置, 其特征在于, 包 括:
设置模块, 用于设置自动关闭空闲程序的任务;
扫描模块, 用于启动所述任务, 扫描移动通信终端中程序标志位; 所 述标志位包含所述程序的状态信息;
执行模块, 用于根据扫描结果关闭标志位为特定值的程序。
8、 根据权利要求 7所述的装置, 其特征在于, 所述执行模块, 进一步 用于判断标志位为特定值的程序是否处于空闲状态, 如果是, 则执行关闭 所述程序; 如果不是, 则等待至该程序处于空闲状态, 然后关闭。
9、 根据权利要求 7所述的装置, 其特征在于, 所述设置模块, 进一步 用于如果无程序启动, 则将程序标志位置为 0, 如果有程序启动但未进入后 台, 则将此程序标志位置为 1 ; 如果有程序启动并进入后台, 但没有进入空 闲态, 则将此程序标志位置为 2; 如果有程序启动并进入后台, 且处于空闲 状态, 则将此程序标志位置为特定值 3 ;
所述执行模块, 具体用于当扫描模块扫描到标志位为 3 的程序时, 关 闭所述程序。
10、 根据权利要求 7至 9任一项所述的装置, 其特征在于, 所述设置 模块, 还用于选择需要自动关闭的程序及自动关闭程序的时间。
PCT/CN2011/078733 2011-05-19 2011-08-22 移动通信终端后台空闲程序自动关闭的方法及装置 WO2012155405A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110130636.4 2011-05-19
CN2011101306364A CN102196097A (zh) 2011-05-19 2011-05-19 移动通信终端后台空闲程序自动关闭的方法及装置

Publications (1)

Publication Number Publication Date
WO2012155405A1 true WO2012155405A1 (zh) 2012-11-22

Family

ID=44603450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078733 WO2012155405A1 (zh) 2011-05-19 2011-08-22 移动通信终端后台空闲程序自动关闭的方法及装置

Country Status (2)

Country Link
CN (1) CN102196097A (zh)
WO (1) WO2012155405A1 (zh)

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495761A (zh) * 2011-11-11 2012-06-13 中兴通讯股份有限公司 应用关闭方法及装置
CN103246558A (zh) * 2012-02-07 2013-08-14 联想(北京)有限公司 应用管理方法和装置
CN103257700B (zh) * 2012-02-20 2016-08-17 联想(北京)有限公司 一种Android系统的节能方法及装置
CN102761667B (zh) * 2012-06-29 2017-04-12 惠州Tcl移动通信有限公司 一种智能手机及其进程管理方法
CN102866908B (zh) * 2012-07-25 2015-06-03 广东欧珀移动通信有限公司 一种Android后台应用和服务的清理方法
CN103577253B (zh) * 2012-07-30 2018-07-20 腾讯科技(深圳)有限公司 应用程序的处理方法和装置
CN102981595A (zh) * 2012-11-14 2013-03-20 深圳桑菲消费通信有限公司 移动终端后台闲置程序关闭的方法和装置
CN102946486A (zh) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 一种基于手机的后台应用自动清理方法及手机
CN103019777A (zh) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 一种自动清理移动终端后台应用程序的方法及系统
CN103049319A (zh) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 分时段管理后台应用程序的方法及其终端
CN103024190B (zh) * 2012-12-21 2014-10-15 广东欧珀移动通信有限公司 一种智能手机内存清理方法及装置
CN103902266A (zh) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 清理后台运行应用的方法和装置
CN103902011B (zh) * 2012-12-28 2018-04-27 联想(北京)有限公司 电子设备控制方法及电子设备
CN103067597B (zh) * 2013-01-05 2014-06-04 广东欧珀移动通信有限公司 移动终端开机任务执行方法
CN103914342A (zh) * 2013-01-06 2014-07-09 联想(北京)有限公司 一种电子设备程序控制方法、系统及电子设备
CN103092651B (zh) * 2013-01-11 2016-03-23 广东欧珀移动通信有限公司 一种清理移动终端的方法及装置
CN103412636A (zh) * 2013-08-05 2013-11-27 Tcl通讯(宁波)有限公司 智能终端的节电系统及其节电方法
CN104850414B (zh) 2014-02-14 2018-09-11 可牛网络技术(北京)有限公司 应用进程的清理方法、装置及移动终端
CN105446803A (zh) * 2014-08-18 2016-03-30 阿里巴巴集团控股有限公司 一种应用程序管理方法和装置
CN105373419A (zh) * 2014-08-26 2016-03-02 阿里巴巴集团控股有限公司 一种后台应用的操作方法及装置
CN104168390A (zh) * 2014-08-29 2014-11-26 惠州Tcl移动通信有限公司 基于移动终端的自动关闭应用程序的方法及系统
CN104317373B (zh) * 2014-10-21 2019-02-05 北京奇虎科技有限公司 一种移动终端降温的方法和装置
CN110045965B (zh) * 2014-11-20 2023-11-17 华为终端有限公司 一种管理应用的方法和移动终端
CN106855826B (zh) * 2015-12-08 2021-02-23 斑马智行网络(香港)有限公司 一种后台应用程序的控制方法及装置
CN107025118B (zh) * 2016-02-02 2021-05-04 腾讯科技(深圳)有限公司 结束应用程序的方法及装置
WO2018023401A1 (zh) * 2016-08-02 2018-02-08 张阳 一种多余应用程序关闭技术的信息推送方法和手机
WO2018023400A1 (zh) * 2016-08-02 2018-02-08 张阳 一种应用程序自动关闭技术的使用数据统计方法和手机
WO2018023402A1 (zh) * 2016-08-02 2018-02-08 张阳 一种关闭应用程序的方法和手机
CN106604370A (zh) * 2016-10-26 2017-04-26 珠海格力电器股份有限公司 一种对终端中的应用进行定时的方法和装置
CN107402804B (zh) * 2017-07-31 2019-12-10 Oppo广东移动通信有限公司 后台进程管控方法、装置、存储介质及电子设备
CN107861767A (zh) * 2017-10-20 2018-03-30 朱健雄 一种定时关闭手机软件后台程序的方法
CN108984228A (zh) * 2018-07-16 2018-12-11 深圳市元征科技股份有限公司 一种后台程序关闭方法、系统、设备及计算机存储介质
CN109557995A (zh) * 2018-11-21 2019-04-02 Tcl移动通信科技(宁波)有限公司 一种应用程序中断控制方法、移动终端及存储介质
CN113961428B (zh) * 2021-12-21 2022-03-11 中测智联(深圳)科技有限公司 一种预设后台占用时长的可自动解除的软件监控系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002032088A2 (en) * 2000-10-13 2002-04-18 Palm, Inc. Telephony functionality for a palmtop device
CN101859261A (zh) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 一种释放内存的控制方法及控制设备
CN101917516A (zh) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 一种移动终端的省电处理方法、系统及移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002032088A2 (en) * 2000-10-13 2002-04-18 Palm, Inc. Telephony functionality for a palmtop device
CN101859261A (zh) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 一种释放内存的控制方法及控制设备
CN101917516A (zh) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 一种移动终端的省电处理方法、系统及移动终端

Also Published As

Publication number Publication date
CN102196097A (zh) 2011-09-21

Similar Documents

Publication Publication Date Title
WO2012155405A1 (zh) 移动通信终端后台空闲程序自动关闭的方法及装置
TWI576692B (zh) 可攜式電子設備
CN106637805B (zh) 一种物联网洗衣机控制方法、控制系统及洗衣机
TWI480729B (zh) 攜帶型電子裝置中的節能應用程式更新
WO2016165078A1 (zh) 一种控制应用程序的方法及终端
JP4805281B2 (ja) 装置管理スケジューリングのためのシステム及び方法
CN107302789B (zh) 一种提高安卓设备电池续航能力的方法及系统
CN103345424A (zh) 移动终端及其应用程序的管制方法
WO2015131679A1 (zh) 任务进程的处理方法及装置
CN105676987A (zh) 关闭移动终端后台应用的方法、装置及移动终端
CN102999387B (zh) 进程运行装置及方法
US9635169B2 (en) Method for managing data traffic of software and portable electronic apparatus using the same
CN106815065B (zh) 后台应用的唤醒方法及装置、电子设备
CN103501390A (zh) 具有提示功能的移动终端及其提示实现方法
CN104683573B (zh) 关机闹钟的实现方法和移动终端
CN104243702A (zh) 一种低电量提示方法、装置及终端设备
CN104735264A (zh) 一种移动终端及其控制方法
CN103345401A (zh) 一种智能手机及其性能优化方法
WO2014154044A1 (zh) 一种电子设备的智能充电方法及装置
CN103327161A (zh) 终端和快速开机方法
CN102905245A (zh) 长期演进系统中小区系统信息更新的方法及装置
CN107231386B (zh) 应用状态转换方法、装置及移动终端
CN106101406B (zh) 一种基于移动终端的关机闹铃触发处理方法及移动终端
TWI407765B (zh) 行動裝置、省電方法及電腦可執行媒體
CN102044201B (zh) 行动设备屏幕恒亮显示的装置与方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11865831

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11865831

Country of ref document: EP

Kind code of ref document: A1