WO2018157364A1 - 一种应用程序的冻结方法和终端 - Google Patents
一种应用程序的冻结方法和终端 Download PDFInfo
- Publication number
- WO2018157364A1 WO2018157364A1 PCT/CN2017/075494 CN2017075494W WO2018157364A1 WO 2018157364 A1 WO2018157364 A1 WO 2018157364A1 CN 2017075494 W CN2017075494 W CN 2017075494W WO 2018157364 A1 WO2018157364 A1 WO 2018157364A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target application
- terminal
- application
- preset
- environment parameter
- Prior art date
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
Definitions
- the present invention relates to the field of computers, and in particular, to a method and a terminal for freezing an application.
- the current mobile terminal generally supports multi-tasking, and can run one or more applications in the background, so that restarting the application running in the background will reduce the loading time, but the number of applications running in the background will increase the CPU of the terminal. Resources or memory resources, while each application running in the background also consumes the power of the terminal, resulting in reduced terminal life.
- a technical problem to be solved by the embodiments of the present invention is to provide a method and a terminal for controlling an application. It can selectively shut down applications running in the background to reduce the power consumption of the terminal and increase the terminal's battery life.
- an embodiment of the present invention provides a method for freezing an application, including:
- the application is pre-associated with environment parameters and freeze conditions.
- the environment parameters and freeze conditions associated with different applications may be the same or different.
- the relationship between the application and the environment parameters and the freeze conditions may be represented by a mapping table. There is one mapping table stored in the table, and each entry of the mapping table stores the identity, environment parameters and freezing conditions of the application.
- the environment parameters associated with Application 1 are: speed, air pressure, and altitude.
- the associated freeze conditions are speeds greater than 30 km/h, air pressures greater than 985 kPa, and altitudes greater than 1000 km; application 2 associated environment
- the parameter is the data network status, and the associated freeze condition is: the data network is in the closed state; the environment parameter associated with the application 3 is the current time, and the associated freeze condition is: the current time is from 9:00 to 12:00.
- the terminal detects the running state of the target application, and when the target application switches to the background running, the terminal pre-stores a state table indicating the running state of the target application, and the state table stores the state flag of the target application, for example, 1 Indicates that the foreground is running, 0 means running in the background; the terminal can query the running status of the target application according to the status table, and then the terminal determines the environmental parameters associated with the target application, and detects whether the environmental parameters meet the preset freezing condition, and if so, the target
- the application freezes, including but not limited to the process of closing the application.
- the terminal is opposite The application running on the console is selectively shut down without affecting the user's use, so as to reduce the power consumption of the background application and increase the terminal's battery life.
- the monitoring, by the terminal, the surrounding environmental parameters includes: periodically monitoring surrounding environmental parameters, for example, during the current monitoring period, the terminal determines that the environmental parameters of the target application meet the preset Freeze the condition and freeze the target application; the terminal determines that the environment parameter of the target application still meets the preset freeze condition in the next monitoring period, and continues to freeze the target application; the terminal determines in the next monitoring period.
- the target application does not satisfy the preset freeze condition and thaws the target application.
- the length of the monitoring period is not limited in this application, and can be set as needed.
- the terminal receives the foreground switching instruction, the foreground switching instruction is used to switch the application to the foreground, the terminal unfreezes the target application, and switches the target application to the foreground.
- the environment parameter is a data network state
- the target application is an application that needs to connect to the data network to work
- the target application includes but is not limited to: an instant communication program, a browser, and an online game.
- Program, shopping program, etc. the preset freezing condition is: when the current data network state is off state, the user data of the target application is saved, and the user data represents configuration data generated by the user during use, for example: last browsing position , theme settings, etc., the process of the target application is closed.
- the environment parameter is a current time
- the preset condition is that the current time is in a preset time interval
- the preset time interval is a time interval of the class or the work
- the target application is
- the program is a short-message application installed in the terminal and other applications in the phone application, that is, only the basic functions of the short message and the phone are reserved within a preset time interval, and the terminal determines that the current time is within the preset time interval.
- the target application is frozen, and the process of the target application is closed.
- the environment parameter is a current speed
- the preset freezing condition is that the current speed is greater than the preset speed
- the terminal is connected to the preset in-vehicle device, so that the user is determined to be Driving.
- the terminal determines that the current speed is greater than 30 km/hour
- the target application is closed.
- the progress of the program, the target application can be other applications than the phone application installed on the terminal.
- the second aspect further provides a terminal, including: a determining module, a monitoring module, and a closing module.
- a determining module configured to determine an environment parameter associated with the target application when the target application is running in the background
- a monitoring module for monitoring surrounding environmental parameters
- And closing the module configured to freeze the target application when the environment parameter meets a preset freeze condition.
- the terminal selectively shuts down the application running in the background, does not affect the user's use, reduces the power consumption of the background application, and increases the terminal's battery life.
- the monitoring module is configured to:
- the shutdown module is configured to:
- the current network state is the off state
- the user data of the target application is saved, and the process of the target application is closed.
- the shutdown module is configured to:
- the current time is located in a preset time interval, the user data of the target application is saved, and the process of the target application is closed.
- the shutdown module is configured to:
- the user data of the target application is saved, and the process of the target application is closed.
- FIG. 1 is a schematic flow chart of a method for freezing an application of the present invention
- FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
- FIG. 3 is another schematic structural diagram of a terminal according to an embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a method for freezing an application according to an embodiment of the present invention.
- the method includes:
- the application is pre-associated with the environment parameter and the freezing condition, and the environment parameter and the freezing condition associated with different applications may be the same or different, and the relationship between the application and the environment parameter and the freezing condition may be represented by a mapping table.
- the terminal pre-stores one mapping table, and each entry of the mapping table stores an application identity, an environment parameter, and a freezing condition.
- the environment parameters associated with Application 1 are: speed, air pressure, and altitude.
- the associated freeze conditions are speeds greater than 30 km/h, air pressures greater than 985 kPa, and altitudes greater than 1000 km; application 2 associated environment
- the parameter is the data network status, and the associated freeze condition is: the data network is in the closed state; the environment parameter associated with the application 3 is the current time, and the associated freeze condition is: the current time is from 9:00 to 12:00.
- the terminal detects the running state of the target application, and when the target application switches to the background running, the terminal pre-stores a state table indicating the running state of the target application, and the state table stores the state flag of the target application, for example, 1 Indicates that the foreground is running, 0 means running in the background; the terminal can query the running status of the target application according to the status table.
- the terminal determines an environment parameter associated with the target application, and detects whether the environment parameter satisfies a preset freeze condition. If yes, the target application is frozen, and the freeze process includes but is not limited to a process of closing the application.
- the target application running in the background meets the preset freezing condition When the target application is closed, the power consumption of the target application is reduced, and the terminal's battery life is increased.
- the surrounding environmental parameters of the monitoring include:
- the environment parameters surrounding the terminal monitoring include: periodically monitoring surrounding environmental parameters, for example, during the current monitoring period, the terminal determines that the environment parameters of the target application meet the preset freezing condition, and freezes the target application. During the next monitoring period, the terminal determines that the environmental parameters of the target application still meet the preset freezing conditions, and continues to freeze the target application; the terminal determines that the target application does not satisfy the preset freeze in the next monitoring period. Conditions to unfreeze the target application.
- the length of the monitoring period is not limited in this application, and can be set as needed.
- the terminal receives the foreground switching instruction, the foreground switching instruction is used to switch the application to the foreground, the terminal unfreezes the target application, and switches the target application to the foreground.
- freezing the target application includes:
- the environment parameter is a data network state
- the target application is an application that needs to connect to the data network to work.
- the target application includes but is not limited to: an instant communication program, a browser, a network game program, a shopping program, etc., a preset
- the freezing condition is: when the current data network state is off, the user data of the target application is saved, and the user data represents configuration data generated by the user during use, for example, the last browsing position, theme setting, etc., the target application The process is closed.
- freezing the target application includes:
- the current time is located in a preset time interval, the user data of the target application is saved, and the process of the target application is closed.
- the environment parameter is the current time
- the preset condition is that the current time is in a preset time interval.
- the preset time interval is a time interval of the class or the work
- the target application is a short message application installed by the terminal. Programs and other applications in the phone application, ie at preset times Only the basic functions of the short message and the telephone are reserved in the interval, and when the terminal determines that the current time is within the preset time interval, the target application is frozen and the process of the target application is closed.
- freezing the target application includes:
- the user data of the target application is saved, and the process of the target application is closed.
- the environment parameter is the current speed
- the preset freezing condition is that the current speed is greater than the preset speed and the terminal is in a connected relationship with the preset in-vehicle device, so that the user is determined to be in a driving state.
- the scheduled speed is 30 km/h
- the MAC address of the station equipment is AABB
- the terminal determines that the current speed is greater than 30 km/hour
- the target application is closed.
- the progress of the program, the target application can be other applications than the phone application installed on the terminal.
- FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
- the terminal in the embodiment of the present invention is used to perform the freezing method of an application in FIG. 1.
- the terminology and process involved may be implemented by referring to FIG. 1 . Description of the example.
- the terminal 2 includes a determination module 201, a monitoring module 202, and a shutdown module 203.
- the determining module 201 is configured to determine an environment parameter associated with the target application when the target application is running in the background.
- the monitoring module 202 is configured to monitor surrounding environmental parameters.
- the closing module 203 is configured to freeze the target application when the environment parameter meets a preset freezing condition.
- the terminal selectively shuts down the application running in the background, does not affect the user's use, reduces the power consumption of the background application, and increases the terminal's battery life.
- the monitoring module 202 is configured to:
- the shutdown module 203 is configured to:
- the current network state is the off state
- the user data of the target application is saved, and the process of the target application is closed.
- the shutdown module 203 is configured to:
- the current time is located in a preset time interval, the user data of the target application is saved, and the process of the target application is closed.
- the shutdown module 203 is configured to:
- the user data of the target application is saved, and the process of the target application is closed.
- FIG. 3 is a schematic diagram of another structure of a terminal according to an embodiment of the present invention.
- the terminal 3 includes a processor 301, a memory 302, and a transceiver 303.
- the transceiver 303 is configured to transmit and receive data with and from an external device.
- the number of processors 301 in the terminal 3 may be one or more.
- processor 301, memory 302, and transceiver 303 may be connected by a bus system or other means.
- Terminal 3 can be used to perform the method shown in FIG.
- the program code is stored in the memory 302.
- the processor 301 is configured to call program code stored in the memory 302 for performing the following operations:
- the target application is frozen when the environment parameter satisfies a preset freeze condition.
- the performing, by the processor 301, the environmental parameters surrounding the monitoring includes:
- the performing, by the processor 301, when the environment parameter meets a preset freeze condition, freezing the target application includes:
- the performing, by the processor 301, when the environment parameter meets a preset freeze condition, freezing the target application includes:
- the current time is located in a preset time interval, the user data of the target application is saved, and the process of the target application is closed.
- the performing, by the processor 301, when the environment parameter meets a preset freeze condition, freezing the target application includes:
- the user data of the target application is saved, and the process of the target application is closed.
- the terminal provided by the embodiment of the present invention includes but is not limited to piggybacking Or terminals of other operating systems, such as mobile phones.
- Other terminals may also be used, such as a laptop or tablet or desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).
- a terminal including a display and a touch-sensitive surface is described. It should be understood, however, that the terminal can include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
- Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
- applications such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
- the various applications that can be executed on the terminal can use at least one shared physical user interface device, such as a touch-sensitive surface.
- One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed from one application to the next and/or adjusted and/or varied within the respective application.
- the shared physical architecture of the terminal such as a touch-sensitive surface, can support a variety of applications with a user interface that is intuitive to the user.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
本申请公开了一种应用程序的冻结方法,包括:检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数;监测周围的环境参数;在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。本发明实施例还公开了一种终端。采用本发明,能有针对性的关闭后台的应用程序,增加终端的续航时间。
Description
本发明涉及计算机领域,尤其涉及一种应用程序的冻结方法和终端。
目前的移动终端一般支持多任务处理,能在后台运行一个或多个应用程序,这样重新启动后台运行的应用程序会减少加载时间,但是随时后台运行的应用程序的增多,会消耗终端大量的CPU资源或内存资源,同时每个后台运行的应用程序也要消耗终端的电量,导致终端的续航时间减少。
发明内容
本发明实施例所要解决的技术问题在于,提供一种应用程序的控制方法和终端。能够对后台运行的应用程序进行选择性的关闭,以减少终端的电量消耗,增加终端的续航时间。
第一方面,本发明实施例提供了一种应用程序的冻结方法,包括:
应用程序预先关联有环境参数和冻结条件,不同的应用程序关联的环境参数和冻结条件可以相同,也可以不相同,应用程序与环境参数和冻结条件的关联关系可以用映射表来表示,终端预先存储有1个映射表,映射表的每个表项存储应用程序的身份标识、环境参数和冻结条件。例如:应用程序1关联的环境参数为:速度、气压和海拔高度,关联的冻结条件为速度大于30千米/小时,气压大于985千帕,海拔高度大于1000千米;应用程序2关联的环境参数为数据网络状态,关联的冻结条件为:数据网络为关闭状态;应用程序3关联的环境参数为当前时间,关联的冻结条件为:当前时间位于9:00~12:00。终端检测目标应用程序的运行状态,在目标应用程序切换为后台运行时,其中,终端预先存储有表示目标应用程序的运行状态的状态表,状态表中存储目标应用程序的状态标志位,例如1表示前台运行,0表示后台运行;终端可根据状态表查询目标应用程序的运行状态,然后终端确定目标应用程序关联的环境参数,检测环境参数是否满足预设的冻结条件,若为是,将目标应用程序进行冻结处理,冻结处理包括但不限于关闭应用程序的进程。上述实施例,终端对后
台运行的应用程序进行选择性的关闭,不影响用户的使用,以减少后台应用程序的电量消耗,增加终端的续航时间。
在本方面的一种可能的实施方式中,终端监测周围的环境参数包括:周期性的监测周围的环境参数,例如:在当前的监测周期内,终端确定目标应用程序的环境参数满足预设的冻结条件,将目标应用程序进行冻结;终端在下一个监测周期内,终端确定目标应用程序的环境参数仍然满足预设的冻结条件,继续将目标应用程序保持冻结状态;终端在下一个监测周期内,确定目标应用程序不满足预设的冻结条件,将目标应用程序进行解冻。需要说明的时,监测周期的长度本申请不作限制,可根据需要进行设置。需要说明的是,在目标应用程序的冻结期间,若终端接收到前台切换指令,前台切换指令用于将应用程序切换到前台运行,终端对目标应用程序进行解冻,将目标应用程序切换到前台运行。
在本方面的一种可能的实施方式中,环境参数为数据网络状态,目标应用程序为需要连接数据网络才能工作的应用程序,目标应用程序包括但不限于:即时通信程序、浏览器、网络游戏程序、购物程序等,预设的冻结条件为:当前的数据网络状态为关闭状态时,保存目标应用程序的用户数据,用户数据表示用户在使用过程中产生的配置数据,例如:最后一次浏览位置、主题设置等,将目标应用程序的进程进行关闭。
在本方面的一种可能的实施方式中,环境参数为当前的时间,预设的条件为当前的时间位于预设的时间区间,例如预设的时间区间为上课或工作的时间区间,目标应用程序为终端已安装的除短信应用程序和电话应用程序中的其他应用程序,即在预设的时间区间内只保留短信和电话的基本功能,终端判断当前的时间位于预设的时间区间内时,将目标应用程序进行冻结,关闭目标应用程序的进程。
在本方面的一种可能的实施方式中,环境参数为当前的速度,预设的冻结条件为当前的速度大于预设的速度且终端与预设的车载设备为连接关系,这样可以确定用户正在处于驾驶状态。例如:预定的速度为30千米/小时,车站设备的MAC地址为AABB,终端确定当前的速度大于30千米/小时,且与MAC地址为AABB的设备存在蓝牙连接的情况下,关闭目标应用程序的进程,目标应用程序可以为终端上已安装的除电话应用程序之外的其他应用程序。
相应地,第二方面还提供了一种终端,包括:确定模块、监测模块和关闭模块。
确定模块,用于检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数;
监测模块,用于监测周围的环境参数;
关闭模块,用于在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
上述实施例,终端对后台运行的应用程序进行选择性的关闭,不影响用户的使用,以减少后台应用程序的电量消耗,增加终端的续航时间。
在本方面的一种可能的实施方式中,所述监测模块用于:
周期性的检测周围的环境参数。
在本方面的一种可能的实施方式中,所述关闭模块用于:
在当前的网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
在本方面的一种可能的实施方式中,所述关闭模块用于:
在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
在本方面的一种可能的实施方式中,所述关闭模块用于:
在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种应用程序的冻结方法的流程示意图;
图2是本发明实施例提供的一种终端的结构示意图;
图3是本发明实施例提供的一种终端的另一结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,图1是本发明实施例提供的一种应用程序的冻结方法的流程示意图,在本发明实施例中,所述方法包括:
S101、检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数。
具体的,应用程序预先关联有环境参数和冻结条件,不同的应用程序关联的环境参数和冻结条件可以相同,也可以不相同,应用程序与环境参数和冻结条件的关联关系可以用映射表来表示,终端预先存储有1个映射表,映射表的每个表项存储应用程序的身份标识、环境参数和冻结条件。例如:应用程序1关联的环境参数为:速度、气压和海拔高度,关联的冻结条件为速度大于30千米/小时,气压大于985千帕,海拔高度大于1000千米;应用程序2关联的环境参数为数据网络状态,关联的冻结条件为:数据网络为关闭状态;应用程序3关联的环境参数为当前时间,关联的冻结条件为:当前时间位于9:00~12:00。终端检测目标应用程序的运行状态,在目标应用程序切换为后台运行时,其中,终端预先存储有表示目标应用程序的运行状态的状态表,状态表中存储目标应用程序的状态标志位,例如1表示前台运行,0表示后台运行;终端可根据状态表查询目标应用程序的运行状态。
S102、监测周围的环境参数。
S103、在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
具体的,终端确定目标应用程序关联的环境参数,检测环境参数是否满足预设的冻结条件,若为是,将目标应用程序进行冻结处理,冻结处理包括但不限于关闭应用程序的进程。
实施上述实施例,终端在后台运行的目标应用程序满足预设的冻结条件
时,对目标应用程序关闭,以减少目标应用程序的电量消耗,增加终端的续航时间。
可选的,所述监测周围的环境参数包括:
周期性的检测周围的环境参数。
具体的,终端监测周围的环境参数包括:周期性的监测周围的环境参数,例如:在当前的监测周期内,终端确定目标应用程序的环境参数满足预设的冻结条件,将目标应用程序进行冻结;终端在下一个监测周期内,终端确定目标应用程序的环境参数仍然满足预设的冻结条件,继续将目标应用程序保持冻结状态;终端在下一个监测周期内,确定目标应用程序不满足预设的冻结条件,将目标应用程序进行解冻。需要说明的时,监测周期的长度本申请不作限制,可根据需要进行设置。需要说明的是,在目标应用程序的冻结期间,若终端接收到前台切换指令,前台切换指令用于将应用程序切换到前台运行,终端对目标应用程序进行解冻,将目标应用程序切换到前台运行。
可选的,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的数据网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
具体的,环境参数为数据网络状态,目标应用程序为需要连接数据网络才能工作的应用程序,目标应用程序包括但不限于:即时通信程序、浏览器、网络游戏程序、购物程序等,预设的冻结条件为:当前的数据网络状态为关闭状态时,保存目标应用程序的用户数据,用户数据表示用户在使用过程中产生的配置数据,例如:最后一次浏览位置、主题设置等,将目标应用程序的进程进行关闭。
可选的,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
具体的,环境参数为当前的时间,预设的条件为当前的时间位于预设的时间区间,例如预设的时间区间为上课或工作的时间区间,目标应用程序为终端已安装的除短信应用程序和电话应用程序中的其他应用程序,即在预设的时间
区间内只保留短信和电话的基本功能,终端判断当前的时间位于预设的时间区间内时,将目标应用程序进行冻结,关闭目标应用程序的进程。
可选的,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
具体的,环境参数为当前的速度,预设的冻结条件为当前的速度大于预设的速度且终端与预设的车载设备为连接关系,这样可以确定用户正在处于驾驶状态。例如:预定的速度为30千米/小时,车站设备的MAC地址为AABB,终端确定当前的速度大于30千米/小时,且与MAC地址为AABB的设备存在蓝牙连接的情况下,关闭目标应用程序的进程,目标应用程序可以为终端上已安装的除电话应用程序之外的其他应用程序。
参见图2,为本发明实施例提供的一种终端的结构示意图,本发明实施例的终端用于执行图1中的一种应用程序的冻结方法,所涉及的术语和过程可参照图1实施例的描述。终端2包括:确定模块201、监测模块202和关闭模块203。
确定模块201,用于检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数。
监测模块202,用于监测周围的环境参数。
关闭模块203,用于在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
上述实施例,终端对后台运行的应用程序进行选择性的关闭,不影响用户的使用,以减少后台应用程序的电量消耗,增加终端的续航时间。
在一种可能的实施方式中,监测模块202用于:
周期性的检测周围的环境参数。
在一种可能的实施方式中,关闭模块203用于:
在当前的网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
在本方面的一种可能的实施方式中,关闭模块203用于:
在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
在一种可能的实施方式中,关闭模块203用于:
在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
本发明实施例和方法实施例一基于同一构思,其带来的技术效果也相同,具体过程可参照方法实施例一的描述,此处不再赘述。
参见图3,为本发明实施例提供的一种终端的另一结构示意图,在本发明实施例中,终端3包括处理器301、存储器302和收发器303。收发器303用于与外部设备之间收发数据。终端3中的处理器301的数量可以是一个或多个。本发明的一些实施例中,处理器301、存储器302和收发器303可通过总线系统或其他方式连接。终端3可以用于执行图1所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图1对应的实施例。此处不再赘述。
其中,存储器302中存储程序代码。处理器301用于调用存储器302中存储的程序代码,用于执行以下操作:
检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数;
监测周围的环境参数;
在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
可选的,处理器301执行所述监测周围的环境参数包括:
周期性的检测周围的环境参数。
可选的,处理器301执行所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的数据网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
可选的,处理器301执行所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
可选的,处理器301执行所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:
在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
在下面的讨论中,介绍了一种包括显示器和触敏表面的终端。然而应当理解,终端可以包括一个或多个其他物理用户接口设备,诸如物理键盘、鼠标和/或操作杆。
终端通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。
可在终端上执行的各种应用程序可使用至少一个共用的物理用户接口设备,诸如触敏表面。触敏表面的一种或多种功能以及显示在终端上的相应信息可从一种应用程序调整和/或变化至下一种应用程序和/或在相应应用程序内被调整和/或变化。这样,终端的共用物理架构(诸如触敏表面)可利用对于用户而言直观清楚的用户界面来支持各种应用程序。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。
Claims (10)
- 一种应用程序的冻结方法,其特征在于,包括:检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数;监测周围的环境参数;在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
- 如权利要求1所述的方法,其特征在于,所述监测周围的环境参数包括:周期性的检测周围的环境参数。
- 如权利要求1所述的方法,其特征在于,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:在当前的数据网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
- 如权利要求1所述的方法,其特征在于,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
- 如权利要求1所述的方法,其特征在于,所述在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结包括:在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
- 一种终端,其特征在于,包括:确定模块,用于检测到目标应用程序在后台运行时,确定与所述目标应用程序关联的环境参数;监测模块,用于监测周围的环境参数;关闭模块,用于在所述环境参数满足预设的冻结条件时,将所述目标应用程序进行冻结。
- 如权利要求6所述的终端,其特征在于,所述监测模块用于:周期性的检测周围的环境参数。
- 如权利要求6所述的终端,其特征在于,所述关闭模块用于:在当前的网络状态为关闭状态时,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
- 如权利要求6所述的终端,其特征在于,所述关闭模块用于:在当前的时间位于预设的时间区间内,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
- 如权利要求6所述的终端,其特征在于,所述关闭模块用于:在当前的速度于预设的速度,保存所述目标应用程序的用户数据,将所述目标应用程序的进程关闭。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/075494 WO2018157364A1 (zh) | 2017-03-02 | 2017-03-02 | 一种应用程序的冻结方法和终端 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/075494 WO2018157364A1 (zh) | 2017-03-02 | 2017-03-02 | 一种应用程序的冻结方法和终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018157364A1 true WO2018157364A1 (zh) | 2018-09-07 |
Family
ID=63369670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/075494 WO2018157364A1 (zh) | 2017-03-02 | 2017-03-02 | 一种应用程序的冻结方法和终端 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2018157364A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445917A (zh) * | 2018-10-16 | 2019-03-08 | Oppo广东移动通信有限公司 | 应用处理方法和装置、电子设备、计算机可读存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298547A (zh) * | 2014-09-26 | 2015-01-21 | 小米科技有限责任公司 | 终端设置方法及装置 |
CN105446803A (zh) * | 2014-08-18 | 2016-03-30 | 阿里巴巴集团控股有限公司 | 一种应用程序管理方法和装置 |
CN105630560A (zh) * | 2015-12-29 | 2016-06-01 | 北京金山安全软件有限公司 | 一种进程处理方法及装置 |
CN105700663A (zh) * | 2016-01-13 | 2016-06-22 | 广东小天才科技有限公司 | 一种移动终端的后台程序清理方法及系统 |
CN106095515A (zh) * | 2016-06-21 | 2016-11-09 | 东莞酷派软件技术有限公司 | 一种应用程序的处理方法及系统 |
CN106155685A (zh) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | 应用程序的管理方法、管理装置及移动终端 |
-
2017
- 2017-03-02 WO PCT/CN2017/075494 patent/WO2018157364A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446803A (zh) * | 2014-08-18 | 2016-03-30 | 阿里巴巴集团控股有限公司 | 一种应用程序管理方法和装置 |
CN104298547A (zh) * | 2014-09-26 | 2015-01-21 | 小米科技有限责任公司 | 终端设置方法及装置 |
CN105630560A (zh) * | 2015-12-29 | 2016-06-01 | 北京金山安全软件有限公司 | 一种进程处理方法及装置 |
CN105700663A (zh) * | 2016-01-13 | 2016-06-22 | 广东小天才科技有限公司 | 一种移动终端的后台程序清理方法及系统 |
CN106095515A (zh) * | 2016-06-21 | 2016-11-09 | 东莞酷派软件技术有限公司 | 一种应用程序的处理方法及系统 |
CN106155685A (zh) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | 应用程序的管理方法、管理装置及移动终端 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445917A (zh) * | 2018-10-16 | 2019-03-08 | Oppo广东移动通信有限公司 | 应用处理方法和装置、电子设备、计算机可读存储介质 |
CN109445917B (zh) * | 2018-10-16 | 2020-12-01 | Oppo广东移动通信有限公司 | 应用处理方法和装置、电子设备、计算机可读存储介质 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10440652B2 (en) | Power management of a mobile communications device | |
US11416061B2 (en) | Terminal control method and apparatus, and terminal | |
US11137876B2 (en) | Information display method, device and terminal for displaying progress on application icon | |
KR102148948B1 (ko) | 전자 장치의 멀티 태스킹 방법 및 그 전자 장치 | |
US9760413B2 (en) | Power efficient brokered communication supporting notification blocking | |
CN108055693B (zh) | 一种终端应用控制方法、终端及计算机可读存储介质 | |
TWI559229B (zh) | 用於背景工作管理的方法、行動計算裝置及可讀取媒體 | |
WO2018032581A1 (zh) | 一种应用程序控制方法及装置 | |
US20170286174A1 (en) | Terminal application process management method and apparatus | |
US12069201B2 (en) | Method for adjusting parameter of audio service and terminal | |
CN111343682A (zh) | 一种网络切换方法、装置、存储介质及终端 | |
WO2022001813A1 (zh) | 应用程序控制方法、装置及电子设备 | |
US10338936B2 (en) | Method for controlling schedule of executing application in terminal device and terminal device implementing the method | |
WO2014166307A1 (en) | Method for determining performance of process of application and computer system | |
CN107404569B (zh) | 一种系统控制方法、终端和计算机可读存储介质 | |
CN107908527B (zh) | 一种应用图标显示方法及装置 | |
WO2018157364A1 (zh) | 一种应用程序的冻结方法和终端 | |
US10545562B2 (en) | Electronic device and method for operating the same | |
US20140237475A1 (en) | Sleep/wake with suppression and donated importance | |
WO2023124554A1 (zh) | 应用启动方法、装置、设备及存储介质 | |
US20140310711A1 (en) | Method for determining performance of process of application and computer system | |
WO2021115257A1 (zh) | 应用切换方法、装置、存储介质及电子设备 | |
WO2018132948A1 (zh) | 一种无线耳机的控制方法和无线耳机 | |
WO2018176245A1 (zh) | 一种应用程序的控制方法和终端 | |
US9471123B2 (en) | Reducing unnecessary power consumed by peripheral devices while displaying a moving image |
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: 17898447 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: 17898447 Country of ref document: EP Kind code of ref document: A1 |