CN109976611A - The control method and terminal device of terminal device - Google Patents
The control method and terminal device of terminal device Download PDFInfo
- Publication number
- CN109976611A CN109976611A CN201910218549.0A CN201910218549A CN109976611A CN 109976611 A CN109976611 A CN 109976611A CN 201910218549 A CN201910218549 A CN 201910218549A CN 109976611 A CN109976611 A CN 109976611A
- Authority
- CN
- China
- Prior art keywords
- application
- terminal device
- running
- background
- target
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5013—Request control
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及终端设备技术领域,尤其涉及一种终端设备的控制方法及终端设备。Embodiments of the present invention relate to the technical field of terminal devices, and in particular, to a control method of a terminal device and a terminal device.
背景技术Background technique
随着终端设备技术的发展,用户使用终端设备的频率越来越高,用户对终端设备的运行速度的要求也越来越高。现有技术主要通过关闭后台应用程序的方式来释放内存,以提高终端设备的运行速度。With the development of terminal equipment technology, users use terminal equipment more and more frequently, and users have higher and higher requirements on the running speed of the terminal equipment. In the prior art, the memory is mainly released by closing the background application program, so as to improve the running speed of the terminal device.
然而,对于用户来说,当用户手动清除应用程序的后台运行数据去释放内存时,该应用程序当前的运行进程以及相关的历史记录也会被清空。However, for the user, when the user manually clears the background running data of the application to release the memory, the current running process of the application and related history records will also be cleared.
因此,若用户想再次访问该应用程序的当前运行进程对应页面时,则需要重新启动该应用程序,以及重复操作该页面的访问路径,整体访问步骤复杂且效率低。Therefore, if the user wants to access the page corresponding to the current running process of the application program again, the application program needs to be restarted and the access path of the page needs to be repeatedly operated. The overall access steps are complex and inefficient.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种终端设备的控制方法及终端设备,以解决现有的终端设备在释放内存时,由于清除了应用程序的后台运行数据,而导致该应用程序的当前运行进程的相关历史记录无法保留的问题。Embodiments of the present invention provide a terminal device control method and terminal device, so as to solve the problem that when the existing terminal device releases the memory, the background running data of the application program is cleared, resulting in the related history of the current running process of the application program. Records of issues that cannot be retained.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,提供一种终端设备的控制方法,应用于终端设备,所述方法包括:In a first aspect, a method for controlling a terminal device is provided, which is applied to the terminal device, and the method includes:
在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序;Obtaining the target application when the first application of the terminal device is running in the background;
删除第一应用程序的后台运行数据,并在终端设备的第一界面上,显示第一目标标识,第一目标标识用于指示所述目标应用程序;Delete the background running data of the first application, and display a first target identifier on the first interface of the terminal device, where the first target identifier is used to indicate the target application;
其中,目标应用程序包括第一应用程序当前在后台运行的进程。Wherein, the target application includes a process currently running in the background of the first application.
第二方面,本发明实施例还提供了一种终端设备,包括:In a second aspect, an embodiment of the present invention further provides a terminal device, including:
获取模块,用于在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序;an acquisition module, configured to acquire the target application when the first application of the terminal device runs in the background;
处理模块,用于删除第一应用程序的后台运行数据;a processing module for deleting the background running data of the first application;
显示模块,用于在终端设备的第一界面上,显示第一目标标识,第一目标标识用于指示获取模块获取的目标应用程序;a display module, configured to display a first target identifier on the first interface of the terminal device, where the first target identifier is used to indicate the target application acquired by the acquisition module;
其中,目标应用程序包括第一应用程序当前在后台运行的进程。Wherein, the target application includes a process currently running in the background of the first application.
第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的终端设备的控制方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the control method for a terminal device described in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的终端设备的控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for controlling a terminal device according to the first aspect is implemented A step of.
在本发明实施例中,在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序,由于该目标应用程序中包含了该第一应用程序当前在后台运行的进程,因此,终端设备在删除第一应用程序的后台运行数据,并在终端设备的第一界面上显示用于指示该目标应用程序的第一目标标识之后,即将第一应用程序的后台运行数据替换为目标应用程序后,不仅释放了终端设备的部分内存,还保留了第一应用程序的当前运行进程的进程相关信息,使得用户可以再次直接运行该进程,即使得用户能够直接访问到该进程对应的最终页面,提高了访问效率。In the embodiment of the present invention, when the first application of the terminal device is running in the background, the target application is obtained. Since the target application includes the process of the first application currently running in the background, the terminal After the device deletes the background running data of the first application and displays the first target identifier for indicating the target application on the first interface of the terminal device, the device replaces the background running data of the first application with the target application After that, not only part of the memory of the terminal device is released, but also the process-related information of the currently running process of the first application is retained, so that the user can directly run the process again, that is, the user can directly access the final page corresponding to the process, Improved access efficiency.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种终端设备的控制方法流程示意图;FIG. 2 is a schematic flowchart of a control method for a terminal device according to an embodiment of the present invention;
图3为本发明实施例提供的一种终端设备的控制方法应用的界面图;3 is an interface diagram of an application of a method for controlling a terminal device provided by an embodiment of the present invention;
图4为本发明实施例提供的一种终端设备的结构示意图之一;FIG. 4 is one of schematic structural diagrams of a terminal device according to an embodiment of the present invention;
图5为本发明实施例提供的一种终端设备的结构示意图之二。FIG. 5 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that “/” in this document means or, for example, A/B can mean A or B; “and/or” in this document is only an association relationship that describes an associated object, indicating that there may be three A relationship, for example, A and/or B, can mean the existence of A alone, the existence of both A and B, and the existence of B alone.
需要说明的是,本文中的“多个”是指两个或多于两个。It should be noted that the "plurality" herein refers to two or more than two.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本发明实施例提供的终端设备的控制方法的执行主体可以为上述的终端设备(包括移动终端设备和非移动终端设备),也可以为该终端设备中能够实现该终端设备的控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的终端设备的控制方法进行示例性的说明。The execution subject of the method for controlling a terminal device provided by the embodiment of the present invention may be the above-mentioned terminal device (including a mobile terminal device and a non-mobile terminal device), or may be a functional module in the terminal device capable of implementing the control method for the terminal device and/or functional entities, which can be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present invention. The following takes a terminal device as an example to illustrate the control method of the terminal device provided by the embodiment of the present invention.
本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention does not make any specific limitation.
本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的终端设备的控制方法所应用的软件环境。The following takes the Android operating system as an example to introduce a software environment to which the method for controlling a terminal device provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的终端设备的控制方法的软件程序,从而使得该终端设备的控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的终端设备的控制方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the control method of the terminal device provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The control method of the terminal device may run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the control method of the terminal device provided by the embodiment of the present invention by running the software program in the Android operating system.
下面结合图2所示的终端设备的控制方法流程图对本发明实施例的终端设备的控制方法进行说明,图2为本发明实施例提供的一种终端设备的控制方法流程示意图,包括步骤201和步骤202:The following describes a method for controlling a terminal device according to an embodiment of the present invention with reference to the flowchart of a method for controlling a terminal device shown in FIG. 2 . FIG. 2 is a schematic flowchart of a method for controlling a terminal device according to an embodiment of the present invention, including steps 201 and 201. Step 202:
步骤201:在终端设备的第一应用程序在后台运行的情况下,终端设备获取目标应用程序。Step 201: In the case that the first application of the terminal device is running in the background, the terminal device acquires the target application.
步骤202:终端设备删除第一应用程序的后台运行数据,并在终端设备的第一界面上,显示第一目标标识。Step 202: The terminal device deletes the background running data of the first application, and displays the first target identifier on the first interface of the terminal device.
在本发明实施例中,上述的第一目标标识用于指示目标应用程序。示例性的,上述的第一目标标识可以为目标应用程序的应用程序图标,用户可以通过点击该应用程序图标,以直接访问第一应用程序当前在后台运行的进程对应的页面。In this embodiment of the present invention, the above-mentioned first target identifier is used to indicate a target application. Exemplarily, the above-mentioned first target identifier may be an application icon of the target application, and the user can directly access the page corresponding to the process currently running in the background of the first application by clicking on the application icon.
在本发明实施例中,上述的第一界面可以为终端设备的主界面,也可以为任务栏界面,本发明对此不作限定。示例性的,终端设备可以在主界面的任一桌面页面上显示第一目标标识,也可以在终端设备的当前界面上显示的当前前台运行的应用程序的运行页面上显示第一目标标识。In the embodiment of the present invention, the above-mentioned first interface may be the main interface of the terminal device, or may be the task bar interface, which is not limited in the present invention. Exemplarily, the terminal device may display the first target identifier on any desktop page of the main interface, or display the first target identifier on the running page of the application currently running in the foreground displayed on the current interface of the terminal device.
在本发明实施例中,上述的目标应用程序包括第一应用程序当前在后台运行的进程。通常情况下,上述的目标应用程序所占内存大小小于第一应用程序的后台运行数据所占内存大小。In this embodiment of the present invention, the above-mentioned target application includes a process of the first application currently running in the background. Generally, the memory size occupied by the above target application program is smaller than the memory size occupied by the background running data of the first application program.
在本发明实施例中,上述的第一应用程序可以为终端设备的后台运行的任一应用程序,也可以为终端设备的后台运行的特定应用程序,本发明对此不作限定。In the embodiment of the present invention, the above-mentioned first application program may be any application program running in the background of the terminal device, or may be a specific application program running in the background of the terminal device, which is not limited in the present invention.
在本发明实施例中,在终端设备的第一应用程序在后台运行的情况下,终端设备在生成目标应用程序时,可以调用数据接口,与第一应用程序进行对接,从而获取第一应用程序当前在后台运行的进程信息。In the embodiment of the present invention, when the first application of the terminal device is running in the background, when the terminal device generates the target application, the terminal device can call the data interface to connect with the first application, so as to obtain the first application Information about processes currently running in the background.
可选的,在本发明实施例中,终端设备获取目标应用程序的过程可以为用户主动获取的过程。示例性的,上述的步骤201具体包括如下步骤:Optionally, in this embodiment of the present invention, the process of acquiring the target application by the terminal device may be a process of actively acquiring by the user. Exemplarily, the above-mentioned step 201 specifically includes the following steps:
步骤A1:在终端设备显示第二界面的情况下,接收用户对第二目标标识的第一输入。Step A1: In the case that the terminal device displays the second interface, receive the first input of the second target identifier by the user.
步骤A2:响应于第一输入,将第二目标标识对应的应用程序,作为第一应用程序,获取目标应用程序。Step A2: In response to the first input, the application program corresponding to the second target identifier is used as the first application program, and the target application program is acquired.
其中,上述第二界面显示有N个第一标识,一个第一标识用于指示一个在后台运行的应用程序,上述的第二目标标识为N个第一标识中的至少一个,N为正整数。Wherein, the above-mentioned second interface displays N first identifiers, one first identifier is used to indicate an application running in the background, the above-mentioned second target identifier is at least one of the N first identifiers, and N is a positive integer .
示例性的,上述用户的第一输入可以为用户清空内存的输入,如,用户针对第二目标标识的点击输入、滑动输入、其他可行性输入,具体的可以根据实际使用需求确定,本发明实施例不做限定。Exemplarily, the above-mentioned first input of the user may be the input of the user to clear the memory, such as the user's click input, sliding input, and other feasible input for the second target identifier, which can be specifically determined according to actual use requirements. The present invention implements Examples are not limited.
示例性的,本文中的点击输入可以为单击输入、双击输入或任意次数的点击输入等;上述的点击输入还可以为长按输入或短按输入。本文中的滑动输入可以为向任意方向的滑动输入,例如向上滑动、向下滑动、向左滑动或者向右滑动等,且上述滑动输入的滑动轨迹可以是直线,也可以是曲线,具体的可以根据实际需求设定。Exemplarily, the click input in this document may be a single-click input, a double-click input, or an arbitrary number of click input, etc.; the above-mentioned click input may also be a long-press input or a short-press input. The sliding input in this paper can be a sliding input in any direction, such as sliding up, sliding down, sliding left or sliding right, etc., and the sliding trajectory of the above sliding input can be a straight line or a curve, and the specific can be Set according to actual needs.
在一种示例中,上述的第二界面可以理解为终端设备的后台运行界面(如图3中的(b)),其中,该后台运行界面中显示有后台运行的所有应用程序的第一标识,一个第一标识用于指示一个在后台运行的应用程序,例如,用户重新点击任一第一标识,便可重新显示该第一标识对应应用程序的当前进程对应的页面,用户针对该第一标识进行上滑输入,便可清空该第一标识对应的应用程序的后台运行数据。例如,上述的第一输入可以为用户对该后台运行界面中的第二目标标识的上滑输入。In an example, the above-mentioned second interface can be understood as a background running interface of the terminal device ((b) in FIG. 3 ), wherein the background running interface displays the first identifiers of all applications running in the background , a first identifier is used to indicate an application running in the background. For example, if the user clicks any first identifier again, the page corresponding to the current process of the application corresponding to the first identifier can be redisplayed. By sliding up the logo, the background running data of the application corresponding to the first logo can be cleared. For example, the above-mentioned first input may be a user's sliding-up input of the second target identifier in the background running interface.
举例说明,如图3中的(a)所示,当用户想要释放内存时,用户可以通过长按终端设备的主界面(即图3中的a1)上的悬浮球控件(即图3中的a2),在终端设备上显示出后台运行界面(即图3中的a3)(即上述的第二界面),如图3中的(b)所示,该后台运行界面a3中显示有3个应用程序页面的页面标识(即图3中的b1、b2、b3)(即上述的第一标识)。其中,页面标识b1用于指示应用程序1,页面标识b2用于指示应用程序2,页面标识b3用于指示应用程序3。For example, as shown in (a) in Figure 3, when the user wants to release the memory, the user can long press the floating ball control on the main interface of the terminal device (i.e. a1 in Figure 3) (i.e. a2), the background running interface (that is, a3 in Figure 3) (that is, the above-mentioned second interface) is displayed on the terminal device, as shown in (b) in Figure 3, the background running interface a3 displays 3 Page identifiers (that is, b1, b2, and b3 in FIG. 3 ) of each application page (that is, the above-mentioned first identifier). The page identifier b1 is used to indicate application 1, the page identifier b2 is used to indicate application 2, and the page identifier b3 is used to indicate application 3.
如图3中的(b)所示,当用户想要清除应用程序2的后台运行数据时,用户可以对页面标识b2(即上述的第二目标标识)进行上滑操作(即上述的第一输入),从而删除应用程序2的后台运行数据,并在主界面a1上显示应用程序2对应的目标应用程序对应的图标a(即图3中的a4)(即上述的第一目标标识),如图3中的(c)所示。由于该目标应用程序包含该应用程序2当前在后台运行的进程,因此,当用户清除了该应用程序2的后台应用程序后,用户便可通过点击该图标a,重新访问该进程对应的应用程序页面。As shown in (b) of FIG. 3 , when the user wants to clear the background running data of the application 2, the user can perform an upward sliding operation on the page identifier b2 (that is, the above-mentioned second target identifier) (that is, the above-mentioned first input), thereby deleting the background running data of application program 2, and displaying the icon a corresponding to the target application program corresponding to application program 2 on the main interface a1 (that is, a4 in FIG. 3) (that is, the above-mentioned first target identification), As shown in (c) of FIG. 3 . Since the target application contains the process currently running in the background of the application 2, after the user clears the background application of the application 2, the user can re-access the application corresponding to the process by clicking the icon a page.
在一种示例中,上述的目标应用程序为内存占用较小、运行较快的一种小程序,即上述的目标应用程序中仅包含该第一应用程序当前在后台运行的进程,即对于第一应用程序的后台运行数据,终端设备仅保留该第一应用程序当前在后台运行的进程以及该进程相关信息,从而在保证用户可以直接运行该进程的同时,还可以释放终端设备的部分内存。In an example, the above-mentioned target application is a small program that occupies less memory and runs faster, that is, the above-mentioned target application only includes the process currently running in the background of the first application, that is, for the first application For the background running data of an application, the terminal device only retains the process currently running in the background of the first application and information related to the process, so as to ensure that the user can directly run the process, and can also release part of the memory of the terminal device.
在一种示例中,终端设备可以增加设置选项,从而自定义设定第一应用程序名单,即该第一应用程序名单内的应用程序在后台运行时,便可使用该应用程序对应的目标应用程序替换该应用程序的后台运行数据。用户可以按照喜好、应用程序的使用频率等,灵活的调整第一应用程序名单内的应用程序。In an example, the terminal device can add setting options to customize the first application list, that is, when an application in the first application list is running in the background, the target application corresponding to the application can be used The program replaces the background running data of the application. The user can flexibly adjust the applications in the first application list according to the preference, the frequency of using the application, and the like.
在一种示例中,终端设备可以针对本文提供的程序替换功能,为每个应用程序增加一个启动选项。例如,当某一应用程序的程序替换功能处于开启状态时,则在该应用程序在后台运行时,终端设备便可使用该应用程序对应的目标应用程序替换该应用程序的后台运行数据,反之,当该应用程序的程序替换功能处于关闭状态时,则在该应用程序在后台运行、且用户想要释放内存时,清除该应用程序的后台运行数据。In an example, the terminal device may add a startup option for each application program according to the program replacement function provided herein. For example, when the program replacement function of an application is turned on, when the application is running in the background, the terminal device can use the target application corresponding to the application to replace the background running data of the application. When the program replacement function of the application is turned off, when the application is running in the background and the user wants to release the memory, the background running data of the application is cleared.
可选的,在本发明实施例中,上述的步骤201具体包括如下步骤:Optionally, in this embodiment of the present invention, the foregoing step 201 specifically includes the following steps:
步骤201a:在第一应用程序在后台运行的情况下,若第一应用程序在后台运行的运行时间大于预定时间阈值,和/或,终端设备的内存小于预设内存阈值或终端设备的内存占用比大于终端设备的平均内存占用比,则终端设备获取目标应用程序。Step 201a: In the case of the first application running in the background, if the running time of the first application running in the background is greater than a predetermined time threshold, and/or, the memory of the terminal device is less than the preset memory threshold or the memory occupation of the terminal device. If the ratio is greater than the average memory usage ratio of the terminal device, the terminal device acquires the target application.
示例性的,上述的预定时间阈值和/或预设内存阈值可以为固定值,也可以按照应用场景的不同选择不同的阈值,即上述的预定时间阈值和/或预设内存阈值可以按照实际应用场景灵活设定,本发明对此不作设定。Exemplarily, the above-mentioned predetermined time threshold and/or preset memory threshold may be a fixed value, or different thresholds may be selected according to different application scenarios, that is, the above-mentioned predetermined time threshold and/or preset memory threshold may be based on practical applications. The scene is set flexibly, which is not set in the present invention.
示例性的,当终端设备检测到系统内存小于预设内存阈值即内存不足,或者,检测到终端设备的内存占用比大于终端设备的平均内存占用比,则表明终端设备当前的内存过低,会影响用户使用终端设备,此时,需要将后台运行的应用程序的运行数据清除,以释放内存。Exemplarily, when the terminal device detects that the system memory is less than the preset memory threshold, that is, the memory is insufficient, or detects that the memory occupancy ratio of the terminal device is greater than the average memory occupancy ratio of the terminal device, it indicates that the current memory of the terminal device is too low. Affects the user's use of the terminal device. In this case, the running data of the application running in the background needs to be cleared to release the memory.
示例性的,当第一应用程序在后台运行的运行时间大于预定时间阈值,则表明用户已经长时间未使用该应用程序,即该第一应用程序当前的闲置时间较长,需要优先处理,进行应用程序替换,以释放终端设备内存。Exemplarily, when the running time of the first application running in the background is greater than the predetermined time threshold, it indicates that the user has not used the application for a long time, that is, the current idle time of the first application is relatively long, and needs to be prioritized for processing. Application replacement to free end device memory.
可选的,在本发明实施例中,在终端设备的后台运行至少两个应用程序的情况下,终端设备可以按照至少两个应用程序中的每个应用程序的优先级,来选取第一应用程序。Optionally, in this embodiment of the present invention, when at least two application programs are running in the background of the terminal device, the terminal device may select the first application according to the priority of each of the at least two application programs. program.
示例性的,上述的步骤201具体包括如下步骤:Exemplarily, the above-mentioned step 201 specifically includes the following steps:
步骤201b1:终端设备按照至少两个应用程序中的每个应用程序的优先级由高到低的顺序,从上述至少两个应用程序中,确定出至少一个第一应用程序。Step 201b1: The terminal device determines at least one first application program from the above at least two application programs according to the priority of each application program in the at least two application programs in descending order.
步骤201b2:终端设备获取每个第一应用程序对应的目标应用程序。Step 201b2: The terminal device acquires the target application corresponding to each first application.
示例性的,终端设备针对上述的至少一个第一应用程序中的每个第一应用程序,依次或同时执行上述的步骤202。Exemplarily, the terminal device executes the foregoing step 202 sequentially or simultaneously with respect to each of the foregoing at least one first application program.
在一种示例中,终端设备可以根据每个应用程序在后台运行的运行时间,确定出每个应用程序的优先级。其中,优先级越高,则表明需要优先进行内存释放,优先级越低,则表明进行内存释放的概率越低。In an example, the terminal device may determine the priority of each application according to the running time of each application running in the background. Among them, the higher the priority, the higher the priority, the lower the probability of memory release, the lower the priority.
示例性的,应用程序在后台运行的运行时间越长,即闲置时间越长,则表明用户已经长时间未使用该应用程序,可以认为该应用程序对应的优先级越高,应用程序在后台运行的运行时间越短,即闲置时间越短,则表明用户可能短时间内会频繁使用该应用程序,可以认为该应用程序对应的优先级越低。Exemplarily, the longer the running time of the application running in the background, that is, the longer the idle time is, it indicates that the user has not used the application for a long time, and it can be considered that the higher the priority corresponding to the application is, and the application is running in the background. The shorter the running time of the application, that is, the shorter the idle time, it indicates that the user may frequently use the application in a short period of time, and it can be considered that the corresponding priority of the application is lower.
在一种示例中,终端设备可以根据每个应用程序的优先级的高低,从高到低,对所有的应用程序进行排序,并选择排行前M个应用程序,作为第一应用程序。In an example, the terminal device may sort all the applications according to the priority of each application, from high to low, and select the top M applications as the first application.
其中,M为正整数。Among them, M is a positive integer.
本发明实施例提供的终端设备的控制方法,在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序,由于该目标应用程序中包含了该第一应用程序当前在后台运行的进程,因此,终端设备在删除第一应用程序的后台运行数据,并在终端设备的第一界面上显示用于指示该目标应用程序的第一目标标识之后,即将第一应用程序的后台运行数据替换为目标应用程序后,不仅释放了终端设备的部分内存,还保留了第一应用程序的当前运行进程的进程相关信息,使得用户可以再次直接运行该进程,即使得用户能够直接访问到该进程对应的最终页面,提高了访问效率。In the method for controlling a terminal device provided by the embodiment of the present invention, when the first application program of the terminal device is running in the background, a target application program is obtained, because the target application program includes the first application program currently running in the background. Therefore, after the terminal device deletes the background running data of the first application and displays the first target identifier for indicating the target application on the first interface of the terminal device, the background running data of the first application is After being replaced with the target application, not only part of the memory of the terminal device is released, but also the process-related information of the currently running process of the first application is retained, so that the user can directly run the process again, that is, the user can directly access the process. The corresponding final page improves access efficiency.
图4为实现本发明实施例提供的一种终端设备的可能的结构示意图,如图4所示,终端设备300包括获取模块301、处理模块302以及显示模块303,其中:FIG. 4 is a schematic diagram of a possible structure for implementing a terminal device provided by an embodiment of the present invention. As shown in FIG. 4 , the terminal device 300 includes an acquisition module 301, a processing module 302, and a display module 303, wherein:
获取模块301,用于在终端设备300的第一应用程序在后台运行的情况下,获取目标应用程序。The acquiring module 301 is configured to acquire a target application when the first application of the terminal device 300 runs in the background.
处理模块302,用于删除第一应用程序的后台运行数据。The processing module 302 is configured to delete the background running data of the first application.
显示模块303,用于在终端设备300的第一界面上,显示第一目标标识,第一目标标识用于指示目标应用程序;其中,上述目标应用程序包括第一应用程序当前在后台运行的进程。The display module 303 is configured to display a first target identifier on the first interface of the terminal device 300, and the first target identifier is used to indicate a target application; wherein, the target application includes a process currently running in the background of the first application .
可选的,上述获取模块301,具体用于:在第一应用程序在后台运行的情况下,若第一应用程序在后台运行的运行时间大于预定时间阈值,和/或,终端设备300的内存小于预定内存阈值或终端设备300的内存占用比大于终端设备300的平均内存占用比,则获取目标应用程序。Optionally, the above obtaining module 301 is specifically configured to: in the case of the first application running in the background, if the running time of the first application running in the background is greater than a predetermined time threshold, and/or the memory of the terminal device 300 If it is smaller than the predetermined memory threshold or the memory occupation ratio of the terminal device 300 is greater than the average memory occupation ratio of the terminal device 300, the target application is acquired.
可选的,上述获取模块301,具体用于:在终端设备300的后台运行至少两个应用程序的情况下,按照至少两个应用程序中的每个应用程序的优先级由高到低的顺序,从至少两个应用程序中,确定出至少一个第一应用程序,获取每个第一应用程序对应的目标应用程序。Optionally, the above obtaining module 301 is specifically configured to: in the case of running at least two application programs in the background of the terminal device 300, according to the order of priority of each application program in the at least two application programs from high to low , from at least two application programs, determine at least one first application program, and acquire a target application program corresponding to each first application program.
可选的,处理模块302,还用于根据所述每个应用程序在后台运行的运行时间,确定所述每个应用程序的优先级。Optionally, the processing module 302 is further configured to determine the priority of each application program according to the running time of each application program running in the background.
可选的,上述的目标应用程序为小程序。Optionally, the above-mentioned target application is an applet.
本发明实施例提供的终端设备,在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序,由于该目标应用程序中包含了该第一应用程序当前在后台运行的进程,因此,终端设备在删除第一应用程序的后台运行数据,并在终端设备的第一界面上显示用于指示该目标应用程序的第一目标标识之后,即将第一应用程序的后台运行数据替换为目标应用程序后,不仅释放了终端设备的部分内存,还保留了第一应用程序的当前运行进程的进程相关信息,使得用户可以再次直接运行该进程,即使得用户能够直接访问到该进程对应的最终页面,提高了访问效率。The terminal device provided by the embodiment of the present invention acquires a target application program when the first application program of the terminal device is running in the background. Since the target application program includes the process of the first application program currently running in the background, therefore , after the terminal device deletes the background running data of the first application and displays the first target identifier for indicating the target application on the first interface of the terminal device, and replaces the background running data of the first application with the target After the application is applied, not only part of the memory of the terminal device is released, but also the process-related information of the currently running process of the first application is retained, so that the user can directly run the process again, that is, the user can directly access the final corresponding to the process. page to improve access efficiency.
本发明实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided in the embodiments of the present invention can implement each process implemented by the terminal device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.
图5为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图5中示出的终端设备100的结构并不构成对终端设备的限定,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。5 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present invention. The terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , the user input unit 107 , the interface unit 108 , the memory 109 , the processor 110 , and the power supply 111 and other components. Those skilled in the art can understand that the structure of the terminal device 100 shown in FIG. 5 does not constitute a limitation on the terminal device, and the terminal device 100 may include more or less components than those shown, or combine some components, or Different component arrangements. In this embodiment of the present invention, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
其中,处理器110,用于在终端设备100的第一应用程序在后台运行的情况下,获取目标应用程序,删除第一应用程序的后台运行数据;显示单元106,用于在终端设备的第一界面上,显示第一目标标识,第一目标标识用于指示处理器110获取的目标应用程序;其中,目标应用程序包括第一应用程序当前在后台运行的进程。The processor 110 is configured to acquire the target application and delete the background running data of the first application when the first application of the terminal device 100 is running in the background; the display unit 106 is used to display the first application of the terminal device in the background. On an interface, a first target identifier is displayed, and the first target identifier is used to indicate the target application program acquired by the processor 110; wherein, the target application program includes a process currently running in the background of the first application program.
本发明实施例提供的终端设备,在终端设备的第一应用程序在后台运行的情况下,获取目标应用程序,由于该目标应用程序中包含了该第一应用程序当前在后台运行的进程,因此,终端设备在删除第一应用程序的后台运行数据,并在终端设备的第一界面上显示用于指示该目标应用程序的第一目标标识之后,即将第一应用程序的后台运行数据替换为目标应用程序后,不仅释放了终端设备的部分内存,还保留了第一应用程序的当前运行进程的进程相关信息,使得用户可以再次直接运行该进程,即使得用户能够直接访问到该进程对应的最终页面,提高了访问效率。The terminal device provided by the embodiment of the present invention acquires a target application program when the first application program of the terminal device is running in the background. Since the target application program includes the process of the first application program currently running in the background, therefore , after the terminal device deletes the background running data of the first application and displays the first target identifier for indicating the target application on the first interface of the terminal device, and replaces the background running data of the first application with the target After the application is applied, not only part of the memory of the terminal device is released, but also the process-related information of the currently running process of the first application is retained, so that the user can directly run the process again, that is, the user can directly access the final corresponding to the process. page to improve access efficiency.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals in the process of sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 110; The uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
终端设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device 100 provides the user with wireless broadband Internet access through the network module 102, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into audio signals and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102 . The microphone 1042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and the display panel 1061 when the terminal device 100 moves to the ear. / or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the terminal device 100 . Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 1071). operate). The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图5中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备100的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 may be covered on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch The type of event provides corresponding visual output on display panel 1061 . Although in FIG. 5, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be The input and output functions of the terminal device 100 are implemented through integration, which is not specifically limited here.
接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the terminal device 100 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 may be used to receive input from external devices (eg, data information, power, etc.) and transmit the received input to one or more elements within the terminal device 100 or may be used between the terminal device 100 and external Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器110是终端设备100的控制中心,利用各种接口和线路连接整个终端设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal device 100, uses various interfaces and lines to connect various parts of the entire terminal device 100, runs or executes the software programs and/or modules stored in the memory 109, and calls the software programs and/or modules stored in the memory 109. data, perform various functions of the terminal device 100 and process data, so as to monitor the terminal device 100 as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to various components. Optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system management and other functions.
另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some unshown functional modules, which will not be repeated here.
可选的,本发明实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述终端设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides a terminal device, including a processor, a memory, a computer program stored in the memory and executable on the processor 110, and the computer program is executed by the processor to realize the above-mentioned terminal. The various processes of the embodiments of the device control method can achieve the same technical effect, and are not repeated here in order to avoid repetition.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述终端设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the control method for a terminal device can be implemented, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910218549.0A CN109976611B (en) | 2019-03-21 | 2019-03-21 | Terminal device control method and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910218549.0A CN109976611B (en) | 2019-03-21 | 2019-03-21 | Terminal device control method and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109976611A true CN109976611A (en) | 2019-07-05 |
| CN109976611B CN109976611B (en) | 2021-06-29 |
Family
ID=67079876
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910218549.0A Active CN109976611B (en) | 2019-03-21 | 2019-03-21 | Terminal device control method and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109976611B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111651218A (en) * | 2020-05-26 | 2020-09-11 | 北京百度网讯科技有限公司 | A kind of applet retention method, device, electronic device and storage medium |
| CN111722903A (en) * | 2020-06-16 | 2020-09-29 | 北京达佳互联信息技术有限公司 | A data processing method, device, electronic device and storage medium |
| CN111880702A (en) * | 2020-06-19 | 2020-11-03 | 维沃移动通信有限公司 | Interface switching method and device and electronic equipment |
| CN112416212A (en) * | 2020-11-25 | 2021-02-26 | 维沃移动通信有限公司 | Program access method, device, electronic equipment and readable storage medium |
| CN116501162A (en) * | 2023-04-23 | 2023-07-28 | 深圳中柏科技有限公司 | Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102460366A (en) * | 2009-06-09 | 2012-05-16 | 三星电子株式会社 | User list providing method and apparatus applying the method |
| WO2014180462A1 (en) * | 2013-05-07 | 2014-11-13 | Mag Glance Gmbh | Method for creating electronically portable documents for e-book-like page turning on common browsers in application-optimised manifestation for online, offline, and print applications |
| CN104571802A (en) * | 2013-10-28 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| US20170115840A1 (en) * | 2013-03-04 | 2017-04-27 | Facebook, Inc. | Techniques for asynchronous rendering |
| CN106897135A (en) * | 2017-02-28 | 2017-06-27 | 努比亚技术有限公司 | Restoration methods and device after a kind of application interruption |
| CN107643859A (en) * | 2017-09-07 | 2018-01-30 | 维沃移动通信有限公司 | A kind of running status restoration methods and mobile terminal |
| CN108307236A (en) * | 2018-02-01 | 2018-07-20 | 深圳创维-Rgb电子有限公司 | A kind of method, storage medium and the smart television of smart television memory optimization |
| CN108427526A (en) * | 2018-03-16 | 2018-08-21 | 维沃移动通信有限公司 | A kind of application management method and terminal |
| US20180373574A1 (en) * | 2017-06-26 | 2018-12-27 | Net Law Group, Inc. | Cloud-based enterprise-customizable multi-tenant service interface |
-
2019
- 2019-03-21 CN CN201910218549.0A patent/CN109976611B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102460366A (en) * | 2009-06-09 | 2012-05-16 | 三星电子株式会社 | User list providing method and apparatus applying the method |
| US20170115840A1 (en) * | 2013-03-04 | 2017-04-27 | Facebook, Inc. | Techniques for asynchronous rendering |
| WO2014180462A1 (en) * | 2013-05-07 | 2014-11-13 | Mag Glance Gmbh | Method for creating electronically portable documents for e-book-like page turning on common browsers in application-optimised manifestation for online, offline, and print applications |
| CN104571802A (en) * | 2013-10-28 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN106897135A (en) * | 2017-02-28 | 2017-06-27 | 努比亚技术有限公司 | Restoration methods and device after a kind of application interruption |
| US20180373574A1 (en) * | 2017-06-26 | 2018-12-27 | Net Law Group, Inc. | Cloud-based enterprise-customizable multi-tenant service interface |
| CN107643859A (en) * | 2017-09-07 | 2018-01-30 | 维沃移动通信有限公司 | A kind of running status restoration methods and mobile terminal |
| CN108307236A (en) * | 2018-02-01 | 2018-07-20 | 深圳创维-Rgb电子有限公司 | A kind of method, storage medium and the smart television of smart television memory optimization |
| CN108427526A (en) * | 2018-03-16 | 2018-08-21 | 维沃移动通信有限公司 | A kind of application management method and terminal |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111651218A (en) * | 2020-05-26 | 2020-09-11 | 北京百度网讯科技有限公司 | A kind of applet retention method, device, electronic device and storage medium |
| CN111722903A (en) * | 2020-06-16 | 2020-09-29 | 北京达佳互联信息技术有限公司 | A data processing method, device, electronic device and storage medium |
| CN111880702A (en) * | 2020-06-19 | 2020-11-03 | 维沃移动通信有限公司 | Interface switching method and device and electronic equipment |
| CN112416212A (en) * | 2020-11-25 | 2021-02-26 | 维沃移动通信有限公司 | Program access method, device, electronic equipment and readable storage medium |
| CN116501162A (en) * | 2023-04-23 | 2023-07-28 | 深圳中柏科技有限公司 | Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment |
| CN116501162B (en) * | 2023-04-23 | 2023-11-24 | 深圳中柏科技有限公司 | Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109976611B (en) | 2021-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110069306A (en) | A kind of message display method and terminal device | |
| CN110752980A (en) | A message sending method and electronic device | |
| CN110851051A (en) | Object sharing method and electronic equipment | |
| CN111459355A (en) | Content sharing method and electronic device | |
| CN109543099B (en) | Content recommendation method and terminal equipment | |
| CN110891144A (en) | Image display method and electronic equipment | |
| CN110231972B (en) | Message display method and terminal equipment | |
| CN109976611B (en) | Terminal device control method and terminal device | |
| CN110209323A (en) | A kind of method and terminal device showing unread message | |
| CN110752981A (en) | An information control method and electronic device | |
| CN111273993A (en) | Icon arrangement method and electronic device | |
| CN110764666A (en) | Display control method and electronic equipment | |
| CN110647277A (en) | Control method and terminal equipment | |
| CN108681427B (en) | Access right control method and terminal equipment | |
| CN111596819A (en) | Unread message processing method and electronic equipment | |
| CN110597437A (en) | Screen capturing method and terminal equipment | |
| CN111399715A (en) | Interface display method and electronic equipment | |
| WO2021093766A1 (en) | Message display method, and electronic apparatus | |
| CN110049486A (en) | A SIM card selection method and terminal device | |
| CN110069304A (en) | A kind of notification message display methods and terminal device | |
| CN111352547A (en) | Display method and electronic equipment | |
| CN110505340A (en) | A kind of message method and terminal device | |
| CN109981442A (en) | Method for sending information and terminal device | |
| CN110196664A (en) | Control method and terminal device | |
| CN111090529B (en) | Method and electronic device for sharing information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |