Movatterモバイル変換


[0]ホーム

URL:


CN107402783A - Management control method of background application program and user terminal - Google Patents

Management control method of background application program and user terminal
Download PDF

Info

Publication number
CN107402783A
CN107402783ACN201710539628.2ACN201710539628ACN107402783ACN 107402783 ACN107402783 ACN 107402783ACN 201710539628 ACN201710539628 ACN 201710539628ACN 107402783 ACN107402783 ACN 107402783A
Authority
CN
China
Prior art keywords
user terminal
background application
currently running
duration
threshold value
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
CN201710539628.2A
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co LtdfiledCriticalGuangdong Genius Technology Co Ltd
Priority to CN201710539628.2ApriorityCriticalpatent/CN107402783A/en
Publication of CN107402783ApublicationCriticalpatent/CN107402783A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例涉及通信技术领域,公开了一种后台应用程序的管理控制方法及用户终端,该方法包括:检测用户终端是否处于锁屏状态;在用户终端处于非锁屏状态时,获取用户终端正在运行的应用程序对用户终端系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理用户终端正在运行的后台应用程序;在用户终端处于锁屏状态时,获取锁屏时长,以该锁屏时长为依据,根据第二预设管理规则管理用户终端正在运行的后台应用程序;实施本发明实施例,能够从空间维度、时间维度上制定合理的管理机制,有效管理后台应用程序,保证用户终端顺畅运行,增强用户的使用体验感。

The embodiment of the present invention relates to the field of communication technology, and discloses a management and control method for background applications and a user terminal, the method comprising: detecting whether the user terminal is in a locked screen state; when the user terminal is in a non-locked screen state, obtaining the total occupation of user terminal system resources by applications running on the user terminal, and managing the background applications running on the user terminal according to a first preset management rule based on the total occupation; when the user terminal is in a locked screen state, obtaining the lock screen duration, and managing the background applications running on the user terminal according to a second preset management rule based on the lock screen duration; by implementing the embodiment of the present invention, a reasonable management mechanism can be formulated from the spatial dimension and the temporal dimension, the background applications can be effectively managed, the user terminal can be ensured to run smoothly, and the user's usage experience can be enhanced.

Description

Translated fromChinese
一种后台应用程序的管理控制方法及用户终端A management and control method for background application program and user terminal

技术领域technical field

本发明涉及通信技术领域,具体涉及一种后台应用程序的管理控制方法及用户终端。The invention relates to the field of communication technology, in particular to a management and control method of a background application program and a user terminal.

背景技术Background technique

用户终端(如智能手机等)并不是硬件性能越好,整体性能就越好,系统优化也是影响整体性能的一大因素。用户终端在使用时,可能存在多个应用程序在同时运行,一些应用程序在前台运行,其它应用程序都在后台运行。但是不管是在前台运行还是在后台运行,运行着的应用程序都会占用系统资源,如果系统资源被占用太多,用户终端运行将会受到影响,运行不顺畅而卡机。User terminals (such as smart phones, etc.) do not mean that the better the hardware performance, the better the overall performance, and system optimization is also a major factor affecting the overall performance. When the user terminal is in use, there may be multiple application programs running at the same time, some application programs are running in the foreground, and other application programs are running in the background. However, no matter whether it is running in the foreground or running in the background, the running applications will occupy system resources. If too many system resources are occupied, the operation of the user terminal will be affected, and the operation will not be smooth and the machine will freeze.

发明内容Contents of the invention

本发明实施例公开了一种后台应用程序的管理控制方法及用户终端,用于解决现有技术中用户终端因系统资源被占用太多而导致运行不顺畅的问题。The embodiment of the present invention discloses a background application program management and control method and a user terminal, which are used to solve the problem in the prior art that the user terminal does not run smoothly due to too many system resources being occupied.

本发明第一方面公开了一种后台应用程序的管理控制方法,可包括:The first aspect of the present invention discloses a management and control method for background application programs, which may include:

检测用户终端是否处于锁屏状态;Detect whether the user terminal is in a locked screen state;

在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量,以所述总占用量为依据,根据第一预设管理规则管理所述用户终端正在运行的后台应用程序;When the user terminal is in the unlocked state, obtain the total occupancy of system resources of the user terminal by applications running on the user terminal, based on the total occupancy, according to a first preset management rule managing background applications running on the user terminal;

在所述用户终端处于锁屏状态时,获取锁屏时长,以所述锁屏时长为依据,根据第二预设管理规则管理所述用户终端正在运行的后台应用程序。When the user terminal is in the screen-locked state, acquire the screen-lock duration, and manage background applications running on the user terminal according to a second preset management rule based on the screen-lock duration.

作为一种可选的实施方式,在本发明第一方面中,在所述用户终端处于非锁屏状态时,所述获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量,以所述总占用量为依据,根据第一预设管理规则管理所述用户终端正在运行的后台应用程序,包括:As an optional implementation manner, in the first aspect of the present invention, when the user terminal is in the non-locked state, the obtaining the total of the system resources of the user terminal by the running application program of the user terminal Occupancy, based on the total occupancy, manage background applications running on the user terminal according to a first preset management rule, including:

在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量;When the user terminal is in a non-lock screen state, obtain the total occupancy of system resources of the user terminal by applications running on the user terminal;

判断所述总占用量是否达到预设阈值;judging whether the total occupancy reaches a preset threshold;

在所述总占用量达到所述预设阈值时,关闭所述用户终端正在运行的后台应用程序。When the total usage reaches the preset threshold, close the running background application of the user terminal.

作为一种可选的实施方式,在本发明第一方面中,在所述占用量达到所述预设阈值时,所述关闭所述用户终端正在运行的后台应用程序,包括:As an optional implementation manner, in the first aspect of the present invention, when the occupancy reaches the preset threshold, the closing the running background application of the user terminal includes:

在所述总占用量达到所述预设阈值时,根据所述总占用量和所述预设阈值获得所述用户终端系统资源的回收阈值;When the total occupancy reaches the preset threshold, obtain a recycling threshold of system resources of the user terminal according to the total occupancy and the preset threshold;

从所述用户终端正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,所述一个或者多个目标后台应用程序对所述用户终端系统资源的占用量等于或者大于所述回收阈值;Determine one or more target background applications from the running background applications of the user terminal, where the occupancy of system resources of the user terminal by the one or more target background applications is equal to or greater than the recycling threshold ;

关闭所述一个或者多个目标后台应用程序。The one or more target background applications are closed.

作为一种可选的实施方式,在本发明第一方面中,在所述用户终端处于锁屏状态时,所述获取锁屏时长,以所述锁屏时长为依据,根据第二预设管理规则管理所述用户终端正在运行的后台应用程序,包括:As an optional implementation manner, in the first aspect of the present invention, when the user terminal is in the locked screen state, the acquisition of the lock screen duration is based on the lock screen duration and is managed according to the second preset The rules govern the running background applications of the user terminal, including:

在所述用户终端处于锁屏状态时,获取锁屏时长;When the user terminal is in the lock screen state, acquire the lock screen duration;

判断所述锁屏时长是否超过预设时长;judging whether the lock screen duration exceeds a preset duration;

在所述锁屏时长超过所述预设时长时,关闭所述用户终端正在运行的后台应用程序。When the lock screen duration exceeds the preset duration, the running background application program of the user terminal is closed.

作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:

在所述锁屏时长小于所述预设时长时,获取所述用户终端正在运行的后台应用程序在特定时间段内的使用频率;When the lock screen duration is less than the preset duration, obtain the usage frequency of the running background application program of the user terminal within a specific time period;

根据所述使用频率,关闭所述用户终端正在运行的后台应用程序中使用频率小于预设频率值的后台应用程序。According to the use frequency, close the background application programs whose use frequency is less than a preset frequency value among the background application programs running on the user terminal.

本发明第二方面公开了一种用户终端,可包括:The second aspect of the present invention discloses a user terminal, which may include:

检测单元,用于检测所述用户终端是否处于锁屏状态;a detection unit, configured to detect whether the user terminal is in a screen-locked state;

第一处理单元,用于在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量,以所述总占用量为依据,根据第一预设管理规则管理所述用户终端正在运行的后台应用程序;The first processing unit is configured to obtain, when the user terminal is in a non-locked state, the total occupancy of system resources of the user terminal by applications running on the user terminal, and based on the total occupancy, managing background applications running on the user terminal according to a first preset management rule;

第二处理单元,用于在所述用户终端处于锁屏状态时,获取锁屏时长,以所述锁屏时长为依据,根据第二预设管理规则管理所述用户终端正在运行的后台应用程序。The second processing unit is configured to obtain the lock screen duration when the user terminal is in the lock screen state, and manage the running background application program of the user terminal according to the second preset management rule based on the lock screen duration. .

作为一种可选的实施方式,在本发明第二方面中,所述第一处理单元包括:As an optional implementation manner, in the second aspect of the present invention, the first processing unit includes:

第一获取单元,用于在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量;A first acquiring unit, configured to acquire the total occupancy of system resources of the user terminal by applications running on the user terminal when the user terminal is in a non-screen-locked state;

第一判断单元,用于判断所述总占用量是否达到预设阈值;a first judging unit, configured to judge whether the total occupancy reaches a preset threshold;

第一关闭单元,用于在所述第一判断单元确定所述总占用量达到所述预设阈值时,关闭所述用户终端正在运行的后台应用程序。A first closing unit, configured to close the running background application of the user terminal when the first judging unit determines that the total usage reaches the preset threshold.

作为一种可选的实施方式,在本发明第二方面中,所述第一关闭单元用于在所述占用量达到所述预设阈值时,关闭所述用户终端正在运行的后台应用程序的具体方式为:As an optional implementation manner, in the second aspect of the present invention, the first closing unit is configured to close the running background application of the user terminal when the usage amount reaches the preset threshold. The specific way is:

所述第一关闭单元用于在所述总占用量达到所述预设阈值时,根据所述总占用量和所述预设阈值获得所述用户终端系统资源的回收阈值;以及,从所述用户终端正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,所述一个或者多个目标后台应用程序对所述用户终端系统资源的占用量等于或者大于所述回收阈值;以及,关闭所述一个或者多个目标后台应用程序。The first closing unit is configured to obtain a recycling threshold of system resources of the user terminal according to the total usage and the preset threshold when the total usage reaches the preset threshold; and, from the One or more target background applications are determined from the running background applications of the user terminal, and the occupancy of the system resources of the user terminal by the one or more target background applications is equal to or greater than the recycling threshold; and, The one or more target background applications are closed.

作为一种可选的实施方式,在本发明第二方面中,所述第二处理单元包括:As an optional implementation manner, in the second aspect of the present invention, the second processing unit includes:

第二获取单元,用于在所述用户终端处于锁屏状态时,获取锁屏时长;The second acquiring unit is configured to acquire the lock screen duration when the user terminal is in the lock screen state;

第二判断单元,用于判断所述锁屏时长是否超过预设时长;a second judging unit, configured to judge whether the lock screen duration exceeds a preset duration;

第二关闭单元,用于在所述第二判断单元确定所述锁屏时长超过所述预设时长时,关闭所述用户终端正在运行的后台应用程序。The second closing unit is configured to close the running background application program of the user terminal when the second judging unit determines that the lock screen duration exceeds the preset duration.

作为一种可选的实施方式,在本发明第二方面中,所述第二关闭单元还用于在所述锁屏时长小于所述预设时长时,获取所述用户终端正在运行的后台应用程序在特定时间段内的使用频率;以及,根据所述使用频率,关闭所述用户终端正在运行的后台应用程序中使用频率小于预设频率值的后台应用程序。As an optional implementation manner, in the second aspect of the present invention, the second closing unit is further configured to acquire background applications running on the user terminal when the lock screen duration is shorter than the preset duration The frequency of use of the program within a specific period of time; and, according to the frequency of use, closing the background application programs whose use frequency is less than a preset frequency value among the background application programs running on the user terminal.

本发明第三方面公开了一种用户终端,可包括:A third aspect of the present invention discloses a user terminal, which may include:

存储有可执行程序代码的存储器;a memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行如第一方面所述的后台应用程序的管理控制方法。The processor invokes the executable program code stored in the memory to execute the background application management control method as described in the first aspect.

本发明第四方面公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如第一方面所述的后台应用程序的管理控制方法。A fourth aspect of the present invention discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the management and control method for background application programs as described in the first aspect.

与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

在本发明实施例中,先检测用户终端是否处于锁屏状态,之后,如果用户终端处于非锁屏状态时,获取用户终端正在运行的应用程序对用户终端系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理用户终端中正在运行的后台应用程序;如果用户终端处于锁屏状态时,获取锁屏时长,以锁屏时长为依据,根据第二预设管理规则管理用户终端正在运行的后台应用程序。可以看出,实施本发明实施例,能够在用户终端处于非锁屏状态时,从系统资源这一空间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,在用户终端处于锁屏状态时,从时间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,保证用户终端运行顺畅,增强用户的使用体验感。In the embodiment of the present invention, it is first detected whether the user terminal is in the lock screen state, and then, if the user terminal is in the non-lock screen state, the total occupancy of the user terminal system resources by the running applications of the user terminal is obtained, and the total Based on the occupancy amount, manage the running background applications in the user terminal according to the first preset management rules; if the user terminal is in the locked screen state, obtain the lock screen duration, based on the lock screen duration, and manage according to the second preset management rule. The rules govern background applications that are running on the user terminal. It can be seen that, by implementing the embodiment of the present invention, when the user terminal is in the non-locked state, a reasonable background application management mechanism can be formulated from the space dimension of system resources, and the background application program can be effectively managed. In case of screen status, a reasonable background application management mechanism should be formulated from the time dimension to effectively manage background applications to ensure smooth operation of user terminals and enhance user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例公开的后台应用程序的管理控制方法的流程示意图;FIG. 1 is a schematic flow diagram of a management and control method for background application programs disclosed in an embodiment of the present invention;

图2为本发明实施例公开的后台应用程序的管理控制方法的另一流程示意图;FIG. 2 is another schematic flow diagram of the management and control method for background application programs disclosed in the embodiment of the present invention;

图3为本发明实施例公开的后台应用程序的管理控制方法的另一流程示意图;FIG. 3 is another schematic flow diagram of the management and control method for background application programs disclosed in the embodiment of the present invention;

图4为本发明实施例公开的用户终端的结构示意图;FIG. 4 is a schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;

图5为本发明实施例公开的用户终端的另一结构示意图;FIG. 5 is another schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;

图6为本发明实施例公开的用户终端的另一结构示意图;FIG. 6 is another schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;

图7为本发明实施例公开的用户终端的另一结构示意图;FIG. 7 is another schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;

图8为本发明实施例公开的用户终端相关的部分结构框图。FIG. 8 is a partial structural block diagram of a user terminal disclosed in an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order. The terms "comprising" and "having" and any variations thereof in the embodiments of the present invention are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to expressly instead of those steps or elements listed, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本发明实施例公开了一种后台应用程序的管理控制方法,用于有效管理后台应用程序,保证用户终端运行顺畅,增强用户的使用体验感。本发明实施例还相应地公开了一种用户终端。The embodiment of the present invention discloses a background application program management and control method, which is used for effectively managing the background application program, ensuring smooth operation of a user terminal, and enhancing user experience. The embodiment of the invention also correspondingly discloses a user terminal.

本发明实施例公开的用户终端可以包括智能手机、智能穿戴设备、平板电脑、个人数字助理(Personal Digital Assistant,简称PDA)、销售终端(Point of Sales,简称POS)、车载电脑等任意终端设备。用户终端可以通过无线通信与网络和其他设备通信,无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The user terminal disclosed in the embodiment of the present invention may include any terminal device such as a smart phone, a smart wearable device, a tablet computer, a personal digital assistant (PDA for short), a point of sales terminal (POS for short), and a vehicle-mounted computer. User terminals can communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (General Packet Radio Service) , GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

下面将从用户终端的角度出发,结合具体实施例,对本发明技术方案进行详细说明。From the perspective of the user terminal, the technical solution of the present invention will be described in detail in combination with specific embodiments.

实施例一Embodiment one

请参阅图1,图1为本发明实施例公开的后台应用程序的管理控制方法的流程示意图;如图1所示,一种后台应用程序的管理控制方法可包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a management and control method for background application programs disclosed in an embodiment of the present invention; as shown in FIG. 1, a management and control method for background application programs may include:

101、用户终端检测其是否处于锁屏状态。其中,在用户终端处于非锁屏状态时,转向步骤102;在用户终端处于锁屏状态时,转向步骤103。101. The user terminal detects whether it is in a screen-locked state. Wherein, when the user terminal is in the non-lock screen state, turn to step 102; when the user terminal is in the lock screen state, turn to step 103.

102、用户终端获取正在运行的应用程序对系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理正在运行的后台应用程序。102. The user terminal acquires the total occupancy of system resources by running applications, and manages the running background application programs according to a first preset management rule based on the total occupancy.

其中,用户终端可以同时运行多个应用程序,比如拨打电话的功能应用、邮件收发的功能应用等。当前正在使用的应用程序在前台运行,而其它应用程序多数在后台运行。Wherein, the user terminal can run multiple application programs at the same time, such as a functional application for making a phone call, a functional application for sending and receiving emails, and the like. The application currently in use runs in the foreground, while most other applications run in the background.

第一预设管理规则预先设置在用户终端中。The first preset management rule is preset in the user terminal.

103、用户终端获取锁屏时长,以该锁屏时长为依据,根据第二预设管理规则管理正在运行的后台应用程序。103. The user terminal obtains the lock screen duration, and based on the lock screen duration, manages the running background applications according to the second preset management rule.

第二预设管理规则预先设置在用户终端中。The second preset management rule is preset in the user terminal.

在本发明实施例中,先检测用户终端是否处于锁屏状态,之后,如果用户终端处于非锁屏状态时,获取用户终端正在运行的应用程序对用户终端系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理用户终端中正在运行的后台应用程序;如果用户终端处于锁屏状态时,获取锁屏时长,以锁屏时长为依据,根据第二预设管理规则管理用户终端正在运行的后台应用程序。可以看出,实施本发明实施例,能够在用户终端处于非锁屏状态时,从系统资源这一空间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,在用户终端处于锁屏状态时,从时间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,保证用户终端运行顺畅,增强用户的使用体验感。In the embodiment of the present invention, it is first detected whether the user terminal is in the lock screen state, and then, if the user terminal is in the non-lock screen state, the total occupancy of the user terminal system resources by the running applications of the user terminal is obtained, and the total Based on the occupancy amount, manage the running background applications in the user terminal according to the first preset management rules; if the user terminal is in the locked screen state, obtain the lock screen duration, based on the lock screen duration, and manage according to the second preset management rule. The rules govern background applications that are running on the user terminal. It can be seen that, by implementing the embodiment of the present invention, when the user terminal is in the non-locked state, a reasonable background application management mechanism can be formulated from the space dimension of system resources, and the background application program can be effectively managed. In case of screen status, a reasonable background application management mechanism should be formulated from the time dimension to effectively manage background applications to ensure smooth operation of user terminals and enhance user experience.

实施例二Embodiment two

请参阅图2,图2为本发明实施例公开的后台应用程序的管理控制方法的另一流程示意图;如图2所示,一种后台应用程序的管理控制方法可包括:Please refer to FIG. 2. FIG. 2 is another schematic flowchart of the management and control method of the background application program disclosed in the embodiment of the present invention; as shown in FIG. 2, a management and control method of the background application program may include:

201、用户终端在处于非锁屏状态时,获取正在运行的应用程序对系统资源的总占用量。201. When the user terminal is not in a screen-locked state, obtain the total occupation of system resources by running applications.

202、用户终端判断该总占用量是否达到预设阈值。其中,在总占用量达到该预设阈值时,转向步骤203;在总占用量小于该预设阈值时,转向步骤 201或者在等待预设时间后转向步骤201。202. The user terminal judges whether the total usage reaches a preset threshold. Wherein, when the total occupancy reaches the preset threshold, turn to step 203; when the total occupancy is less than the preset threshold, turn to step 201 or turn to step 201 after waiting for a preset time.

203、用户终端根据该总占用量和预设阈值,获得系统资源的回收阈值。203. The user terminal obtains a recycling threshold of system resources according to the total usage amount and the preset threshold.

其中,系统资源的回收阈值的计算公式如下:Among them, the calculation formula of the recovery threshold of system resources is as follows:

系统资源的回收阈值=|总占用量-预设阈值|Recycling threshold of system resources = |total usage - preset threshold|

通过上述计算公式计算得到的是需要回收的最少系统资源,用户终端需要通过关闭部分应用程序以至少收回该回收阈值对应的系统资源。The minimum system resources that need to be reclaimed are calculated by the above calculation formula, and the user terminal needs to close some application programs to reclaim at least the system resources corresponding to the reclaim threshold.

204、用户终端从正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,该一个或者多个目标后台应用程序对用户终端系统资源的占用量等于或者大于该回收阈值。204. The user terminal determines one or more target background applications from the running background applications, and the occupancy of system resources of the user terminal by the one or more target background applications is equal to or greater than the recovery threshold.

作为一种可选的实施方式,用户终端从正在运行的后台应用程序中确定出一个或者多个目标后台应用程序具体包括:As an optional implementation manner, the user terminal determining one or more target background application programs from the running background application programs specifically includes:

用户终端从正在运行的后台应用程序中确定出一个或者多个满足关闭条件的目标后台应用程序,该关闭条件包括应用程序的应用类型。The user terminal determines one or more target background application programs that meet the closing condition from the running background application programs, and the closing condition includes the application type of the application program.

比如,将应用程序按照应用类型划分为娱乐功能类应用(如中国腾讯推出的QQ音乐等)、社交功能类应用(如美国推出的Twitter)、导航定位功能类应用(如地图)等等。那么,将关闭条件设置为娱乐功能类应用、社交功能类应用等。而导航定位功能类应用则设置为非关闭条件,如果用户只是短暂地将导航定位功能类应用切换到后台,用户可以随时将其切换到前台,而不用重新打开重新定位,以免为用户带来不必要的操作负担。For example, applications are divided into entertainment function applications (such as QQ music launched by Tencent in China), social function applications (such as Twitter launched in the United States), navigation and positioning function applications (such as maps) and so on. Then, the closing condition is set as an entertainment function application, a social function application, and the like. The navigation and positioning function application is set as a non-closing condition. If the user only briefly switches the navigation and positioning function application to the background, the user can switch it to the foreground at any time without reopening and relocating, so as not to bring inconvenience to the user. Necessary operational burden.

作为另一种可选的实施方式,用户终端从正在运行的后台应用程序中确定出一个或者多个目标后台应用程序具体包括:As another optional implementation manner, the user terminal determining one or more target background application programs from running background application programs specifically includes:

用户终端根据应用程序的关闭优先级,从正在运行的后台应用程序中确定出一个或者多个关闭优先级较高的目标后台应用程序。According to the closing priority of the application program, the user terminal determines one or more target background application programs with higher closing priority from the running background application programs.

比如,将应用程序按照应用类型划分为娱乐功能类应用(如中国腾讯推出的QQ音乐等)、社交功能类应用(如美国推出的Twitter)、导航定位功能类应用(如地图)等等,可以分别将上述三种功能类型的应用程序的关闭优先级设置为(关闭优先级依次降低):娱乐功能类应用、社交功能类应用、导航定位功能类应用等。For example, according to application types, applications can be divided into entertainment function applications (such as QQ music launched by Tencent in China), social function applications (such as Twitter launched in the United States), navigation and positioning function applications (such as maps), etc. The closing priorities of the applications of the above three function types are respectively set (the closing priorities are lowered in order): entertainment function applications, social function applications, navigation and positioning function applications, and the like.

作为另一种可选的实施方式,用户终端从正在运行的后台应用程序中确定出一个或者多个目标后台应用程序具体包括:As another optional implementation manner, the user terminal determining one or more target background application programs from running background application programs specifically includes:

用户终端提取系统当前时间,根据系统当前时间,从正在运行的后台应用程序中确定出满足在该系统当前时间所属时间段内关闭的一个或者多个目标后台应用程序。The user terminal extracts the current time of the system, and according to the current time of the system, determines from the running background applications one or more target background applications that can be closed within the time period to which the current system time belongs.

在上述实施方式中,预先通过设置多个时间段,并且对应设置每个时间段可以关闭的后台应用程序,以便能够智能化地通过关闭后台应用程序,释放用户终端的系统资源,防止前台应用程序运行不顺畅。In the above embodiment, multiple time periods are set in advance, and the background applications that can be closed in each time period are correspondingly set, so that the system resources of the user terminal can be released intelligently by closing the background applications, preventing the foreground applications from Not running smoothly.

例如,在上班时间段,早上8:30至下午5:30,通信功能类应用(短信、邮箱等)、社交功能类应用等使用比较频繁,而娱乐功能类应用、导航定位功能类应用等使用比较少,那么在这段时间可以优先将娱乐功能类应用、导航定位功能类应用等关闭。For example, during working hours, from 8:30 am to 5:30 pm, communication function applications (SMS, email, etc.), social function applications, etc. are frequently used, while entertainment function applications, navigation and positioning function applications, etc. If there are relatively few, then during this period of time, you can give priority to closing entertainment function applications, navigation and positioning function applications, etc.

205、用户终端关闭该一个或者多个目标后台应用程序。205. The user terminal closes the one or more target background application programs.

在本发明实施例中,用户终端在非锁屏状态时,获取正在运行的应用程序对系统资源的总占用量,并在该总占用量达到预设阈值时,获取系统资源的回收阈值,然后从正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,并关闭确定出的一个或者多个目标后台应用程序,从而回收满足回收阈值的系统资源,以保证用户终端能够顺畅运行,防止应用程序运行卡机,提高用户使用体验感。In the embodiment of the present invention, when the user terminal is in the non-lock screen state, obtain the total occupation of system resources by running applications, and obtain the recovery threshold of system resources when the total occupation reaches a preset threshold, and then Determine one or more target background applications from the running background applications, and close the determined one or more target background applications, so as to reclaim system resources that meet the recycling threshold, so as to ensure that the user terminal can run smoothly, Prevent applications from running stuck and improve user experience.

实施例三Embodiment three

请参阅图3,图3为本发明实施例公开的后台应用程序的管理控制方法的另一流程示意图;如图3所示,一种后台应用程序的管理控制方法可包括:Please refer to FIG. 3. FIG. 3 is another schematic flowchart of the management and control method for background application programs disclosed in the embodiment of the present invention; as shown in FIG. 3, a management and control method for background application programs may include:

301、用户终端处于锁屏状态时,获取锁屏时长。301. When the user terminal is in a screen-locked state, acquire a screen-lock duration.

其中,用户终端在检测到锁屏指令时,执行锁屏操作,同时开启内置于该用户终端的计时器并开始计时,用户终端可以周期性从计时器读取锁屏时长。Wherein, when the user terminal detects the screen lock instruction, it executes the screen lock operation, and at the same time starts the timer built in the user terminal and starts timing, and the user terminal can periodically read the lock screen duration from the timer.

302、用户终端判断该锁屏时长是否超过预设时长。其中,在该锁屏时长超过预设时长时,转向步骤303;在该锁屏时长小于预设时长时,转向步骤 304。302. The user terminal determines whether the lock screen duration exceeds a preset duration. Wherein, when the lock screen duration exceeds the preset duration, turn to step 303; when the lock screen duration is less than the preset duration, turn to step 304.

303、用户终端关闭正在运行的后台应用程序。303. The user terminal closes the running background application program.

可以理解,在锁屏时长超过预设时长后(比如在夜间休息时),用户终端可以将正在运行的后台应用程序关闭,为用户终端释放更多的系统资源,也能节省用户终端的耗电量,提高用户终端的续电时长。It can be understood that after the lock screen duration exceeds the preset duration (such as when resting at night), the user terminal can close the running background application program, release more system resources for the user terminal, and save power consumption of the user terminal increase the battery life of the user terminal.

304、用户终端获取正在运行的后台应用程序在特定时间段内的使用频率。304. The user terminal obtains the usage frequency of the running background application program within a specific time period.

在锁屏时长没有超过预设时长后,用户终端提取当前系统时间,然后从预先划分的多个时间段中确定出该当前系统时间所属的目标时间段,作为本发明实施例提供的特定时间段,进一步统计正在运行的后台应用程序在该特定时间段的历史使用记录,以统计每一个后台应用程序的使用频率。After the lock screen duration does not exceed the preset duration, the user terminal extracts the current system time, and then determines the target time period to which the current system time belongs from the multiple pre-divided time periods as the specific time period provided by the embodiment of the present invention , to further count the historical use records of the running background applications in the specific time period, so as to count the usage frequency of each background application.

305、用户终端根据该使用频率,关闭正在运行的后台应用程序中使用频率小于预设频率值的后台应用程序。305. According to the usage frequency, the user terminal closes background applications whose usage frequency is lower than a preset frequency value among running background applications.

作为一种可选的实施方式,用户终端还可以获取后台应用程序被切换到后台运行的时长,然后将被切换到后台运行的时长比较长的一个或者多个后台应用程序关闭。As an optional implementation manner, the user terminal may also obtain the duration of the background application being switched to the background, and then close one or more background applications that have been switched to the background for a relatively long period of time.

可以看出,在本发明实施例中,在用户终端处于锁屏状态时,获取锁屏时长,如果锁屏时长超过预设时长,则关闭正在运行的所有后台应用程序,如果锁屏时长还没有超过预设时长,那么获取后台应用程序在特定时间段的使用频率,将一些使用频率比较低的后台应用程序关闭,从而释放更多的系统资源,提高用户终端的运行速度,节省电池能量。It can be seen that in the embodiment of the present invention, when the user terminal is in the lock screen state, the lock screen duration is acquired, and if the lock screen duration exceeds the preset duration, all running background applications are closed. If the preset duration is exceeded, the usage frequency of background applications in a specific time period is obtained, and some background applications with relatively low usage frequency are closed, thereby releasing more system resources, improving the operating speed of the user terminal, and saving battery energy.

实施例四Embodiment four

请参阅图4,图4为本发明实施例公开的用户终端的结构示意图;如图4所示,一种用户终端可包括:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a user terminal disclosed in an embodiment of the present invention; as shown in FIG. 4, a user terminal may include:

检测单元410,用于检测用户终端是否处于锁屏状态;A detection unit 410, configured to detect whether the user terminal is in a screen-locked state;

第一处理单元420,用于在用户终端处于非锁屏状态时,获取用户终端正在运行的应用程序对用户终端系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理用户终端正在运行的后台应用程序;The first processing unit 420 is configured to obtain the total occupancy of system resources of the user terminal by applications running on the user terminal when the user terminal is in the non-locked state, and based on the total occupancy, according to the first preset management Rules governing background applications that are running on the user terminal;

第二处理单元430,用于在用户终端处于锁屏状态时,获取锁屏时长,以该锁屏时长为依据,根据第二预设管理规则管理用户终端正在运行的后台应用程序。The second processing unit 430 is configured to obtain the screen lock duration when the user terminal is in the screen lock state, and manage the running background applications of the user terminal according to the second preset management rule based on the lock screen duration.

在本发明实施例中,检测单元410先检测用户终端是否处于锁屏状态,之后,如果检测单元410确定用户终端处于非锁屏状态时,第一处理单元420获取用户终端正在运行的应用程序对用户终端系统资源的总占用量,以该总占用量为依据,根据第一预设管理规则管理用户终端中正在运行的后台应用程序;如果检测单元410确定用户终端处于锁屏状态时,第二处理单元430获取锁屏时长,以锁屏时长为依据,根据第二预设管理规则管理用户终端正在运行的后台应用程序。可以看出,实施本发明实施例,能够在用户终端处于非锁屏状态时,从系统资源这一空间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,在用户终端处于锁屏状态时,从时间维度出发制定合理的后台应用程序的管理机制,有效管理后台应用程序,保证用户终端运行顺畅,增强用户的使用体验感。In the embodiment of the present invention, the detection unit 410 first detects whether the user terminal is in the lock screen state, and then, if the detection unit 410 determines that the user terminal is in the non-lock screen state, the first processing unit 420 acquires a pair of application programs running on the user terminal. The total occupancy of system resources of the user terminal is based on the total occupancy, and the running background application program in the user terminal is managed according to the first preset management rule; if the detection unit 410 determines that the user terminal is in the lock screen state, the second The processing unit 430 acquires the lock screen duration, and based on the lock screen duration, manages the running background applications of the user terminal according to the second preset management rule. It can be seen that, by implementing the embodiment of the present invention, when the user terminal is in the non-locked state, a reasonable background application management mechanism can be formulated from the space dimension of system resources, and the background application program can be effectively managed. In case of screen status, a reasonable background application management mechanism should be formulated from the time dimension to effectively manage background applications to ensure smooth operation of user terminals and enhance user experience.

可以理解的是,图4所示的用户终端可用于执行步骤101-步骤103所示的后台应用程序的管理控制方法。It can be understood that the user terminal shown in FIG. 4 can be used to execute the method for managing and controlling background application programs shown in steps 101-103.

实施例五Embodiment five

请参阅图5,图5为本发明实施例公开的用户终端的另一结构示意图;图5 所示的用户终端是在图4所示的用户终端的基础上进行优化得到的,图5所示的用户终端中,该第一处理单元420具体包括:Please refer to FIG. 5. FIG. 5 is another structural schematic diagram of the user terminal disclosed in the embodiment of the present invention; the user terminal shown in FIG. 5 is obtained by optimizing the user terminal shown in FIG. In the user terminal of , the first processing unit 420 specifically includes:

第一获取单元510,用于在用户终端处于非锁屏状态时,获取用户终端正在运行的应用程序对用户终端系统资源的总占用量;The first obtaining unit 510 is configured to obtain the total occupancy of system resources of the user terminal by applications running on the user terminal when the user terminal is in a non-lock screen state;

第一判断单元520,用于判断该总占用量是否达到预设阈值;The first judging unit 520 is configured to judge whether the total occupancy reaches a preset threshold;

第一关闭单元530,用于在第一判断单元520确定该总占用量达到预设阈值时,关闭用户终端正在运行的后台应用程序。The first closing unit 530 is configured to close the running background applications of the user terminal when the first judging unit 520 determines that the total usage reaches a preset threshold.

作为一种可选的实施方式,上述第一关闭单元530用于在该占用量达到预设阈值时,关闭用户终端正在运行的后台应用程序的具体方式为:As an optional implementation manner, the above-mentioned first closing unit 530 is configured to close the running background application program of the user terminal when the occupancy amount reaches a preset threshold:

上述第一关闭单元530用于在该总占用量达到预设阈值时,根据该总占用量和预设阈值获得用户终端系统资源的回收阈值;以及,从用户终端正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,该一个或者多个目标后台应用程序对用户终端系统资源的占用量等于或者大于回收阈值;以及,关闭该一个或者多个目标后台应用程序。The above-mentioned first closing unit 530 is used to obtain the recycling threshold of the system resources of the user terminal according to the total usage and the preset threshold when the total usage reaches the preset threshold; launching one or more target background applications, and the occupation of the user terminal system resources by the one or more target background applications is equal to or greater than the recycling threshold; and closing the one or more target background applications.

进一步地,上述第一关闭单元530用于从正在运行的后台应用程序中确定出一个或者多个满足关闭条件的目标后台应用程序,该关闭条件包括应用程序的应用类型。Further, the above-mentioned first closing unit 530 is configured to determine one or more target background application programs satisfying the closing condition from the running background application programs, and the closing condition includes the application type of the application program.

或进一步地,上述第一关闭单元530用于根据应用程序的关闭优先级,从正在运行的后台应用程序中确定出一个或者多个关闭优先级较高的目标后台应用程序。Or further, the above-mentioned first closing unit 530 is configured to determine one or more target background applications with higher closing priorities from the running background applications according to the closing priorities of the applications.

或进一步地,上述第一关闭单元530用于提取系统当前时间,根据系统当前时间,从正在运行的后台应用程序中确定出满足在该系统当前时间所属时间段内关闭的一个或者多个目标后台应用程序。Or further, the above-mentioned first closing unit 530 is used to extract the current time of the system, and according to the current time of the system, determine from the running background applications one or more target backgrounds that meet the requirements of closing within the time period of the current system time application.

可以理解的是,图5所示的用户终端可用于执行步骤201-步骤205所示的后台应用程序的管理控制方法。It can be understood that the user terminal shown in FIG. 5 can be used to execute the method for managing and controlling background application programs shown in steps 201-205.

实施例六Embodiment six

请参阅图6,图6为本发明实施例公开的用户终端的另一结构示意图;图6 所示的用户终端是在图4所示的用户终端的基础上进行优化得到的,图6所示的用户终端中,该第二处理单元430具体包括:Please refer to FIG. 6. FIG. 6 is another structural schematic diagram of a user terminal disclosed in an embodiment of the present invention; the user terminal shown in FIG. 6 is optimized on the basis of the user terminal shown in FIG. In the user terminal, the second processing unit 430 specifically includes:

第二获取单元610,用于在用户终端处于锁屏状态时,获取锁屏时长;The second acquiring unit 610 is configured to acquire the lock screen duration when the user terminal is in the lock screen state;

第二判断单元620,用于判断该锁屏时长是否超过预设时长;The second judging unit 620 is configured to judge whether the lock screen duration exceeds a preset duration;

第二关闭单元630,用于在第二判断单元620确定该锁屏时长超过预设时长时,关闭用户终端正在运行的后台应用程序。The second closing unit 630 is configured to close the running background application program of the user terminal when the second judging unit 620 determines that the lock screen duration exceeds a preset duration.

作为一种可选的实施方式,上述第二关闭单元630还用于在该锁屏时长小于预设时长时,获取用户终端正在运行的后台应用程序在特定时间段内的使用频率;以及,根据该使用频率,关闭用户终端正在运行的后台应用程序中使用频率小于预设频率值的后台应用程序。As an optional implementation manner, the above-mentioned second closing unit 630 is also configured to obtain the usage frequency of background applications running on the user terminal within a specific period of time when the lock screen duration is shorter than a preset duration; and, according to The use frequency is to close the background application programs whose use frequency is less than the preset frequency value among the background application programs running on the user terminal.

进一步地,上述第二关闭单元630用于提取当前系统时间,然后从预先划分的多个时间段中确定出该当前系统时间所属的目标时间段,作为本发明实施例提供的特定时间段,进一步统计正在运行的后台应用程序在该特定时间段的历史使用记录,以统计每一个后台应用程序的使用频率。Further, the above-mentioned second closing unit 630 is used to extract the current system time, and then determine the target time period to which the current system time belongs from among the pre-divided multiple time periods, as the specific time period provided by the embodiment of the present invention, further Count the historical usage records of the running background applications in the specific time period, so as to count the usage frequency of each background application.

作为一种可选的实施方式,上述第二关闭单元630还可以用于获取后台应用程序被切换到后台运行的时长,然后将被切换到后台运行的时长比较长的一个或者多个后台应用程序关闭。As an optional implementation, the above-mentioned second closing unit 630 can also be used to obtain the duration of the background application program being switched to the background operation, and then switch to one or more background application programs with a relatively long background operation time. closure.

可以理解的是,图6所示的用户终端可用于执行步骤301-步骤305所示的后台应用程序的管理控制方法。It can be understood that the user terminal shown in FIG. 6 can be used to execute the method for managing and controlling background application programs shown in steps 301-305.

实施例七Embodiment seven

请参阅图7,图7为本发明实施例公开的用户终端的另一结构示意图;图7所示的用户终端可包括:至少一个处理器710,例如CPU,存储器720,至少一个通信总线730,输入装置740,输出装置750。其中,通信总线730 用于实现这些组件之间的通信连接。存储器720可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器720可选的还可以是至少一个位于远离前述处理器710的存储装置。其中,处理器710可以结合图4至图6所描述的用户终端,存储器720 中存储一组程序代码,且处理器710调用存储器720中存储的程序代码,用于执行以下操作:Please refer to FIG. 7. FIG. 7 is another structural schematic diagram of a user terminal disclosed in an embodiment of the present invention; the user terminal shown in FIG. 7 may include: at least one processor 710, such as a CPU, a memory 720, and at least one communication bus 730, Input device 740 , output device 750 . Wherein, the communication bus 730 is used to realize the communication connection between these components. The memory 720 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 720 may also be at least one storage device located away from the aforementioned processor 710 . Wherein, the processor 710 may be combined with the user terminal described in FIG. 4 to FIG. 6, a set of program codes are stored in the memory 720, and the processor 710 calls the program codes stored in the memory 720 to perform the following operations:

检测用户终端是否处于锁屏状态;Detect whether the user terminal is in a locked screen state;

在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量,以所述总占用量为依据,根据第一预设管理规则管理所述用户终端正在运行的后台应用程序;When the user terminal is in the unlocked state, obtain the total occupancy of system resources of the user terminal by applications running on the user terminal, based on the total occupancy, according to a first preset management rule managing background applications running on the user terminal;

在所述用户终端处于锁屏状态时,获取锁屏时长,以所述锁屏时长为依据,根据第二预设管理规则管理所述用户终端正在运行的后台应用程序。When the user terminal is in the screen-locked state, acquire the screen-lock duration, and manage background applications running on the user terminal according to a second preset management rule based on the screen-lock duration.

可选地,上述处理器710还用于执行以下操作:Optionally, the processor 710 is further configured to perform the following operations:

在所述用户终端处于非锁屏状态时,获取所述用户终端正在运行的应用程序对所述用户终端系统资源的总占用量;When the user terminal is in a non-lock screen state, obtain the total occupancy of system resources of the user terminal by applications running on the user terminal;

判断所述总占用量是否达到预设阈值;judging whether the total occupancy reaches a preset threshold;

在所述总占用量达到所述预设阈值时,关闭所述用户终端正在运行的后台应用程序。When the total usage reaches the preset threshold, close the running background application of the user terminal.

可选地,上述处理器710还用于执行以下操作:Optionally, the processor 710 is further configured to perform the following operations:

在所述总占用量达到所述预设阈值时,根据所述总占用量和所述预设阈值获得所述用户终端系统资源的回收阈值;When the total occupancy reaches the preset threshold, obtain a recycling threshold of system resources of the user terminal according to the total occupancy and the preset threshold;

从所述用户终端正在运行的后台应用程序中确定出一个或者多个目标后台应用程序,所述一个或者多个目标后台应用程序对所述用户终端系统资源的占用量等于或者大于所述回收阈值;Determine one or more target background applications from the running background applications of the user terminal, where the occupancy of system resources of the user terminal by the one or more target background applications is equal to or greater than the recycling threshold ;

关闭所述一个或者多个目标后台应用程序。The one or more target background applications are closed.

可选地,上述处理器710还用于执行以下操作:Optionally, the processor 710 is further configured to perform the following operations:

在所述用户终端处于锁屏状态时,获取锁屏时长;When the user terminal is in the lock screen state, acquire the lock screen duration;

判断所述锁屏时长是否超过预设时长;judging whether the lock screen duration exceeds a preset duration;

在所述锁屏时长超过所述预设时长时,关闭所述用户终端正在运行的后台应用程序。When the lock screen duration exceeds the preset duration, the running background application program of the user terminal is closed.

可选地,上述处理器710还用于执行以下操作:Optionally, the processor 710 is further configured to perform the following operations:

在所述锁屏时长小于所述预设时长时,获取所述用户终端正在运行的后台应用程序在特定时间段内的使用频率;When the lock screen duration is less than the preset duration, obtain the usage frequency of the running background application program of the user terminal within a specific time period;

根据所述使用频率,关闭所述用户终端正在运行的后台应用程序中使用频率小于预设频率值的后台应用程序。According to the use frequency, close the background application programs whose use frequency is less than a preset frequency value among the background application programs running on the user terminal.

实施例八Embodiment Eight

请参阅图8,图8为本发明实施例公开的用户终端相关的部分结构框图。请参阅图8,该用户终端包括:射频(Radio Frequency,简称RF)电路10、存储器20、输入单元30、显示单元40、传感器50、音频电路60、无线保真(Wireless Fidelity,简称WiFi)模块70、处理器80、以及电源90等部件。本领域技术人员可以理解,图8中示出的用户终端结构并不构成对用户终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 8 . FIG. 8 is a partial structural block diagram of a user terminal disclosed in an embodiment of the present invention. Please refer to FIG. 8 , the user terminal includes: a radio frequency (Radio Frequency, referred to as RF) circuit 10, a memory 20, an input unit 30, a display unit 40, a sensor 50, an audio circuit 60, a wireless fidelity (Wireless Fidelity, referred to as WiFi) module 70, processor 80, and power supply 90 and other components. Those skilled in the art can understand that the structure of the user terminal shown in FIG. 8 is not limited to the user terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

下面结合图8对用户终端的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the user terminal in conjunction with FIG. 8:

RF电路10可用于信息的接收和发送。通常,RF电路10包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路10还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM、GPRS、CDMA、WCDMA、LTE、电子邮件、短消息服务(ShortMessaging Service,简称SMS)等。The RF circuit 10 can be used for the reception and transmission of information. Generally, the RF circuit 10 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuit 10 can also communicate with networks and other devices through wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to GSM, GPRS, CDMA, WCDMA, LTE, email, Short Messaging Service (Short Messaging Service, SMS for short) and the like.

存储器20可用于存储软件程序以及模块,处理器80通过运行存储在存储器20的软件程序以及模块,从而执行用户终端的各种功能应用以及数据处理。存储器20可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如应用界面显示功能、拨打电话功能等)等;存储数据区可存储根据用户终端的使用所创建的数据(比如第一预设管理规则、第二预设管理规则等)等。此外,存储器20可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 20 can be used to store software programs and modules, and the processor 80 executes various functional applications and data processing of the user terminal by running the software programs and modules stored in the memory 20 . The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as an application interface display function, a phone call function, etc.) and the like; the storage data area can store Data created according to the use of the user terminal (such as the first preset management rule, the second preset management rule, etc.) and the like. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元30可用于接收输入的数字或字符信息,以及产生与用户终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元30可包括指纹识别模组31以及其他输入设备32。指纹识别模组31,可采集用户在其上的指纹数据。可选的,指纹识别模组31可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组31为电容式指纹识别模组为例,具体包括感应电极(n1个异常感应电极和n2个正常感应电极)和与感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组31,输入单元30还可以包括其他输入设备32。具体地,其他输入设备32可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 30 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the user terminal. Specifically, the input unit 30 may include a fingerprint identification module 31 and other input devices 32 . The fingerprint identification module 31 can collect the fingerprint data of the user on it. Optionally, the fingerprint recognition module 31 may include an optical fingerprint module, a capacitive fingerprint module and a radio frequency fingerprint module. Taking the fingerprint recognition module 31 as an example of a capacitive fingerprint recognition module, it specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and signal processing circuits (such as amplifier circuits, noise suppression circuits) connected to the sensing electrodes. , analog-to-digital conversion circuit, etc.). In addition to the fingerprint recognition module 31 , the input unit 30 may also include other input devices 32 . Specifically, other input devices 32 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元40可用于显示由用户输入的信息或提供给用户的信息以及用用户终端的各种菜单。显示单元40可包括显示屏41,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏41。虽然在图8中,指纹识别模组31与显示屏41是作为两个独立的部件来实现用户终端的输入和输入功能,但是在某些实施例中,可以将指纹识别模组31与显示屏41集成而实现用户终端的输入和输出功能。The display unit 40 may be used to display information input by or provided to the user and various menus of the user terminal. The display unit 40 may include a display screen 41. Optionally, the display screen 41 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 8 , the fingerprint recognition module 31 and the display screen 41 are used as two independent components to realize the input and input functions of the user terminal, in some embodiments, the fingerprint recognition module 31 and the display screen 41 can be combined 41 is integrated to realize the input and output functions of the user terminal.

用户终端还可包括至少一种传感器50,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏41的亮度,接近传感器可在用户终端移动到耳边时,关闭显示屏41和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别用户终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于用户终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The user terminal may also include at least one sensor 50, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 41 according to the brightness of the ambient light, and the proximity sensor can turn off the display screen 41 and the display screen 41 when the user terminal moves to the ear. / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of the user terminal (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors that can also be configured on user terminals, here No longer.

音频电路60、扬声器61,传声器62可提供用户与用户终端之间的音频接口。音频电路60可将接收到的音频数据转换后的电信号,传输到扬声器 61,由扬声器61转换为声音信号输出;另一方面,传声器62将收集的声音信号转换为电信号,由音频电路60接收后转换为音频数据,再将音频数据输出处理器80处理后,经RF电路10以发送给比如另一终端设备,或者将音频数据输出至存储器20以便进一步处理。The audio circuit 60, the speaker 61, and the microphone 62 can provide an audio interface between the user and the user terminal. The audio circuit 60 can transmit the electrical signal converted from the received audio data to the loudspeaker 61, and the loudspeaker 61 converts it into a sound signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 80, and then sent to another terminal device through the RF circuit 10, or the audio data is output to the memory 20 for further processing.

WiFi属于短距离无线传输技术,用户终端通过WiFi模块70可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块70,但是可以理解的是,其并不属于用户终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The user terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 70, which provides users with wireless broadband Internet access. Although FIG. 8 shows a WiFi module 70, it can be understood that it is not an essential component of the user terminal, and can be completely omitted as required without changing the essence of the invention.

处理器80是用户终端的控制中心,利用各种接口和线路连接整个用户终端的各个部分,通过运行或执行存储在存储器20内的软件程序和/或模块,以及调用存储在存储器20内的数据,执行用户终端的各种功能和处理数据,从而对用户终端进行整体监控。可选的,处理器80可包括一个或多个处理单元;优选的,处理器80可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器80 中。The processor 80 is the control center of the user terminal, and uses various interfaces and lines to connect various parts of the entire user terminal, by running or executing software programs and/or modules stored in the memory 20, and calling data stored in the memory 20 , execute various functions of the user terminal and process data, so as to monitor the user terminal as a whole. Optionally, the processor 80 may include one or more processing units; preferably, the processor 80 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 80 .

用户终端还包括给各个部件供电的电源90(比如电池),优选的,电源可以通过电源管理系统与处理器80逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The user terminal also includes a power supply 90 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 80 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

尽管未示出,用户终端还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the user terminal may also include a camera, a Bluetooth module, etc., which will not be repeated here.

前述图1、图2和图3所示的实施例中,各步骤方法流程可以基于该用户终端的结构实现。In the foregoing embodiments shown in FIG. 1 , FIG. 2 and FIG. 3 , the method flow of each step can be implemented based on the structure of the user terminal.

前述图4至图6所示的实施例中,各单元功能可以基于该用户终端的结构实现。In the foregoing embodiments shown in FIG. 4 to FIG. 6 , the functions of each unit can be realized based on the structure of the user terminal.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器 (One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory, EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-Only Memory (Programmable Read-only Memory, PROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc (Compact Disc Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.

以上对本发明实施例公开的一种后台应用程序的管理控制方法及用户终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The management and control method of a background application program and the user terminal disclosed in the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as a limitation of the invention.

Claims (12)

CN201710539628.2A2017-07-042017-07-04Management control method of background application program and user terminalPendingCN107402783A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710539628.2ACN107402783A (en)2017-07-042017-07-04Management control method of background application program and user terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710539628.2ACN107402783A (en)2017-07-042017-07-04Management control method of background application program and user terminal

Publications (1)

Publication NumberPublication Date
CN107402783Atrue CN107402783A (en)2017-11-28

Family

ID=60404870

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710539628.2APendingCN107402783A (en)2017-07-042017-07-04Management control method of background application program and user terminal

Country Status (1)

CountryLink
CN (1)CN107402783A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108235238A (en)*2017-12-292018-06-29珠海市魅族科技有限公司Position reminding method and device, computer installation and computer readable storage medium
CN108665963A (en)*2018-05-152018-10-16上海商汤智能科技有限公司A kind of image data analysis method and relevant device
CN109189516A (en)*2018-07-252019-01-11维沃移动通信有限公司A kind of application control method and terminal device
CN110045809A (en)*2018-01-122019-07-23广东欧珀移动通信有限公司Information processing method, information processing device, computer equipment and computer readable storage medium
CN110046032A (en)*2018-01-122019-07-23广东欧珀移动通信有限公司Application program processing method and device, electronic equipment and computer readable storage medium
CN110134219A (en)*2019-05-132019-08-16深圳传音通讯有限公司Application program backstage power consumption processing method and processing device
CN110358011A (en)*2018-04-102019-10-22北京砼帮汇科技有限公司A kind of cement water reducing agent
CN112530192A (en)*2019-09-182021-03-19北京奇虎科技有限公司Road condition display method and device in screen locking state

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102946486A (en)*2012-11-202013-02-27惠州Tcl移动通信有限公司Background application automatic clearing method based on mobile phone and mobile phone
CN103220427A (en)*2013-04-162013-07-24广东欧珀移动通信有限公司Mobile phone background program cleaning method and mobile phone
CN103324500A (en)*2013-05-062013-09-25广州市动景计算机科技有限公司Method and device for recycling internal memory
CN104298612A (en)*2014-09-302015-01-21北京金山安全软件有限公司Method and device for cleaning memory in mobile terminal and mobile terminal
CN106502371A (en)*2016-11-082017-03-15珠海市魅族科技有限公司A kind of electricity-saving control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102946486A (en)*2012-11-202013-02-27惠州Tcl移动通信有限公司Background application automatic clearing method based on mobile phone and mobile phone
CN103220427A (en)*2013-04-162013-07-24广东欧珀移动通信有限公司Mobile phone background program cleaning method and mobile phone
CN103324500A (en)*2013-05-062013-09-25广州市动景计算机科技有限公司Method and device for recycling internal memory
CN104298612A (en)*2014-09-302015-01-21北京金山安全软件有限公司Method and device for cleaning memory in mobile terminal and mobile terminal
CN106502371A (en)*2016-11-082017-03-15珠海市魅族科技有限公司A kind of electricity-saving control method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108235238A (en)*2017-12-292018-06-29珠海市魅族科技有限公司Position reminding method and device, computer installation and computer readable storage medium
CN110045809A (en)*2018-01-122019-07-23广东欧珀移动通信有限公司Information processing method, information processing device, computer equipment and computer readable storage medium
CN110046032A (en)*2018-01-122019-07-23广东欧珀移动通信有限公司Application program processing method and device, electronic equipment and computer readable storage medium
CN110358011A (en)*2018-04-102019-10-22北京砼帮汇科技有限公司A kind of cement water reducing agent
CN108665963A (en)*2018-05-152018-10-16上海商汤智能科技有限公司A kind of image data analysis method and relevant device
CN109189516A (en)*2018-07-252019-01-11维沃移动通信有限公司A kind of application control method and terminal device
CN110134219A (en)*2019-05-132019-08-16深圳传音通讯有限公司Application program backstage power consumption processing method and processing device
CN110134219B (en)*2019-05-132024-03-19深圳传音通讯有限公司Application program background power consumption processing method and device
CN112530192A (en)*2019-09-182021-03-19北京奇虎科技有限公司Road condition display method and device in screen locking state
CN112530192B (en)*2019-09-182023-05-26三六零科技集团有限公司Road condition display method and device in screen locking state

Similar Documents

PublicationPublication DateTitle
CN107402783A (en)Management control method of background application program and user terminal
CN107272872B (en)Power saving control method and related product
CN107608861B (en)Heat dissipation control method and device
CN107734616A (en) Application closing method, device, storage medium and electronic device
CN106055408B (en)A kind of application control method and mobile terminal
CN107302628B (en)Application function control method and related product
CN110018904A (en)Information processing method, device, computer equipment and computer readable storage medium
CN107577508B (en) Application processing method, device, readable storage medium and mobile terminal
CN110008008A (en)Applied program processing method and device, electronic equipment, computer readable storage medium
CN107329778B (en)System updating method and related product
CN110032431A (en)Application processing method and device, electronic equipment and computer readable storage medium
CN109714476B (en)Data processing method and device, mobile terminal and storage medium
CN106095566B (en)Response control method and mobile terminal
WO2018161543A1 (en)Method and device for controlling fingerprint processing resources
CN107220344B (en) Document processing methods and related products
CN111104180B (en)Application program optimization method and device, storage medium and electronic equipment
CN106066814B (en)Application control method and mobile terminal
CN109992425A (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN107832131A (en)Closing application program method, apparatus, storage medium and electronic equipment
CN110046033A (en)Applied program processing method and device, electronic equipment, computer readable storage medium
CN106095567B (en) A method for allocating installation tasks and a mobile terminal
EP3447641A1 (en)Sound effect processing method and terminal
CN109992360A (en) Process processing method and apparatus, electronic device, and computer-readable storage medium
CN107491349A (en) Application program processing method and device, computer equipment, storage medium
CN106815078A (en)A kind of internal memory control method and equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20171128


[8]ページ先頭

©2009-2025 Movatter.jp