CN109976611B - Terminal device control method and terminal device - Google Patents

Terminal device control method and terminal device Download PDF

Info

Publication number
CN109976611B
CN109976611B CN201910218549.0A CN201910218549A CN109976611B CN 109976611 B CN109976611 B CN 109976611B CN 201910218549 A CN201910218549 A CN 201910218549A CN 109976611 B CN109976611 B CN 109976611B
Authority
CN
China
Prior art keywords
application program
terminal
background
running
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.)
Active
Application number
CN201910218549.0A
Other languages
Chinese (zh)
Other versions
CN109976611A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910218549.0A priority Critical patent/CN109976611B/en
Publication of CN109976611A publication Critical patent/CN109976611A/en
Application granted granted Critical
Publication of CN109976611B publication Critical patent/CN109976611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04817Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object or an image, setting a parameter value or selecting a range
    • G06F3/04842Selection of a displayed object
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5016Allocation 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5013Request control

Abstract

The embodiment of the invention provides a control method of a terminal device and the terminal device, which are applied to the technical field of communication and aim to solve the problem that when the memory of the existing terminal device is released, the related historical records of the current running process of an application program cannot be reserved due to the fact that background running data of the application program is cleared. The method comprises the following steps: under the condition that a first application program of the terminal equipment runs in a background, acquiring a target application program; deleting background running data of the first application program, and displaying a first target identifier on a first interface of the terminal equipment, wherein the first target identifier is used for indicating the target application program; the first target application program comprises a process which is currently operated in the background by the first application program.

Description

Terminal device control method and terminal device
Technical Field
The embodiment of the invention relates to the technical field of terminal equipment, in particular to a control method of the terminal equipment and the terminal equipment.
Background
With the development of terminal device technology, the frequency of using the terminal device by the user is higher and higher, and the requirement of the user on the operation speed of the terminal device is higher and higher. In the prior art, the memory is released mainly 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 the related history are also cleared.
Therefore, if the user wants to access the page corresponding to the currently 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, so that the overall access step is complex and low in efficiency.
Disclosure of Invention
The embodiment of the invention provides a control method of a terminal device and the terminal device, which are used for solving the problem that when the memory of the existing terminal device is released, the related historical records of the current running process of an application program cannot be reserved due to the fact that background running data of the application program is cleared.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a method for controlling a terminal device is provided, and is applied to the terminal device, and the method includes:
under the condition that a first application program of the terminal equipment runs in a background, acquiring a target application program;
deleting background running data of the first application program, and displaying a first target identifier on a first interface of the terminal equipment, wherein the first target identifier is used for indicating the target application program;
wherein the target application comprises a process in which the first application is currently running in the background.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the acquisition module is used for acquiring a target application program under the condition that a first application program of the terminal equipment runs in a background;
the processing module is used for deleting the background running data of the first application program;
the display module is used for displaying a first target identifier on a first interface of the terminal equipment, and the first target identifier is used for indicating the target application program acquired by the acquisition module;
wherein the target application comprises a process in which the first application is currently running in the background.
In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the control method of the terminal device according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the control method for a terminal device according to the first aspect.
In the embodiment of the present invention, when the first application program of the terminal device runs in the background, the target application program is acquired, and the target application program includes the process in which the first application program currently runs in the background, so that after the terminal device deletes the background running data of the first application program and displays the first target identifier for indicating the target application program on the first interface of the terminal device, that is, after the background running data of the first application program is replaced by the target application program, 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 program 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, and the access efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a control method of a terminal device according to an embodiment of the present invention;
fig. 3 is an interface diagram of an application of a control method of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means 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 indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The execution main body of the control method of the terminal device provided in the embodiment of the present invention may be the terminal device (including a mobile terminal device and a non-mobile terminal device), or may also be a functional module and/or a functional entity capable of implementing the control method of the terminal device in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example, and exemplarily describes a control method of the terminal device provided in the embodiment of the present invention.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted 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 (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
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, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the control method of the terminal device provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the control method of the terminal device provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the control method of the terminal device may run based on the android operating system shown in fig. 1. That is, the processor or the terminal device may 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.
The following describes a control method of a terminal device according to an embodiment of the present invention with reference to a flowchart of the control method of the terminal device shown in fig. 2, where fig. 2 is a flowchart of the control method of the terminal device according to the embodiment of the present invention, and includes steps 201 and 202:
step 201: under the condition that the first application program of the terminal equipment runs in the background, the terminal equipment acquires the target application program.
Step 202: and the terminal equipment deletes the background running data of the first application program and displays the first target identification on a first interface of the terminal equipment.
In an embodiment of the present invention, the first target identifier is used to indicate a target application. For example, the first target identifier may be an application icon of the target application, and the user may directly access a page corresponding to a process, which is currently running in the background, of the first application by clicking the application icon.
In this embodiment of the present invention, the first interface may be a main interface of the terminal device, and may also be a taskbar interface, which is not limited in this respect. For example, the terminal device may display the first target identifier on any desktop page of the main interface, or may display the first target identifier on an operation page of a currently foreground-operating application program displayed on a current interface of the terminal device.
In an embodiment of the present invention, the target application includes a process in which the first application is currently running in the background. Generally, the memory size occupied by the target application is smaller than the memory size occupied by the background running data of the first application.
In this embodiment of the present invention, the first application may be any application running in the background of the terminal device, or may also be a specific application running in the background of the terminal device, which is not limited in this invention.
In the embodiment of the present invention, under the condition that the first application program of the terminal device runs in the background, when the terminal device generates the target application program, the terminal device may call the data interface to be docked with the first application program, so as to obtain the process information of the first application program which runs in the background currently.
Optionally, in the embodiment of the present invention, the process of acquiring the target application by the terminal device may be an active acquisition process by the user. Illustratively, the step 201 includes the following steps:
step A1: and receiving first input of the second target identifier by the user under the condition that the terminal equipment displays the second interface.
Step A2: and responding to the first input, taking the application program corresponding to the second target identification as the first application program, and acquiring the target application program.
The second interface displays N first marks, one first mark is used for indicating an application program running in a background, the second target mark is at least one of the N first marks, and N is a positive integer.
For example, the first input of the user may be an input of clearing the memory of the user, such as a click input, a slide input, and other feasibility inputs of the user for the second target identifier, which may be determined according to an actual use requirement, and the embodiment of the present invention is not limited thereto.
For example, the click input in this document may be a single click input, a double click input, or any number of click inputs; the click input may be a long-press input or a short-press input. The sliding input in this context may be a sliding input in any direction, such as sliding upwards, sliding downwards, sliding leftwards or sliding rightwards, and the sliding trajectory of the sliding input may be a straight line or a curved line, and may be set according to actual requirements.
In an example, the second interface may be understood as a background running interface of the terminal device (as shown in fig. 3 (b)), where the background running interface displays first identifiers of all applications running in the background, and one first identifier is used to indicate one application running in the background, for example, when a user re-clicks any one first identifier, a page corresponding to a current process of the application corresponding to the first identifier may be re-displayed, and the user performs a sliding input for the first identifier, so that background running data of the application corresponding to the first identifier may be cleared. For example, the first input may be a user's upglide input for a second target identifier in the background running interface.
For example, as shown in fig. 3 (a), when the user wants to release the memory, the user may display the background running interface (i.e., a3 in fig. 3) (i.e., the second interface described above) on the terminal device by long-pressing the hover ball control (i.e., a2 in fig. 3) on the main interface (i.e., a1 in fig. 3) of the terminal device, and as shown in fig. 3 (b), the page identifiers (i.e., b1, b2, b3 in fig. 3) of 3 application pages are displayed in the background running interface a3 (i.e., the first identifier described above). The page identifier b1 is used to indicate the application program 1, the page identifier b2 is used to indicate the application program 2, and the page identifier b3 is used to indicate the application program 3.
As shown in (b) of fig. 3, when the user wants to clear the backstage supporter data of the application 2, the user may perform a slide-up operation (i.e., the above-mentioned first input) on the page identifier b2 (i.e., the above-mentioned second object identifier), thereby deleting the backstage supporter data of the application 2 and displaying the icon a (i.e., a4 in fig. 3) (i.e., the above-mentioned first object identifier) corresponding to the target application corresponding to the application 2 on the main interface a1, as shown in (c) of fig. 3. Since the target application includes the current background running process of the application 2, after the user clears the background application of the application 2, the user can re-access the application page corresponding to the process by clicking the icon a.
In an example, the target application is a small program with a small memory occupation and a fast running, that is, the target application only includes a process in which the first application is currently running in the background, that is, for background running data of the first application, the terminal device only retains the process in which the first application is currently running in the background and information related to the process, so that it is ensured that a user can directly run the process, and at the same time, a part of the memory of the terminal device can be released.
In an example, the terminal device may add a setting option, so as to set the first application list in a user-defined manner, that is, when the applications in the first application list run in the background, the background running data of the application may be replaced with the target application corresponding to the application. The user can flexibly adjust the application programs in the first application program list according to the preference, the use frequency of the application programs and the like.
In one example, the terminal device may add a launch option for each application for the program replacement functionality provided herein. For example, when the program replacement function of an application is in an open state, the terminal device may replace the background running data of the application with the target application corresponding to the application when the application runs in the background, or conversely, when the program replacement function of the application is in a closed state, the background running data of the application is cleared when the application runs in the background and the user wants to release the memory.
Optionally, in an embodiment of the present invention, the step 201 specifically includes the following steps:
step 201 a: under the condition that the first application program runs in the background, if the running time of the first application program running in the background is greater than a preset time threshold value, and/or the memory of the terminal device is smaller than a preset memory threshold value or the memory occupation ratio of the terminal device is greater than the average memory occupation ratio of the terminal device, the terminal device acquires the target application program.
For example, the predetermined time threshold and/or the preset memory threshold may be fixed values, or different thresholds may be selected according to different application scenarios, that is, the predetermined time threshold and/or the preset memory threshold may be flexibly set according to actual application scenarios, which is not set in the present invention.
Illustratively, when the terminal device detects that the system memory is smaller than a preset memory threshold, that is, the memory is insufficient, or detects that the memory occupancy ratio of the terminal device is larger than the average memory occupancy ratio of the terminal device, it indicates that the current memory of the terminal device is too low, which may affect the user to use the terminal device, and at this time, the running data of the application program running in the background needs to be cleared to release the memory.
For example, 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 long, and it needs to be preferentially processed, and the application is replaced, so as to release the memory of the terminal device.
Optionally, in the embodiment of the present invention, in a case that the terminal device runs the at least two applications in the background, the terminal device may select the first application according to a priority of each application in the at least two applications.
Illustratively, the step 201 includes the following steps:
step 201b 1: the terminal device determines at least one first application program from the at least two application programs according to the sequence of the priority of each application program from high to low.
Step 201b 2: and the terminal equipment acquires the target application program corresponding to each first application program.
Illustratively, the terminal device performs the step 202 for each of the at least one first application in sequence or simultaneously.
In one example, the terminal device may determine the priority of each application according to the running time of each application running in the background. The higher the priority is, the memory release needs to be performed preferentially, and the lower the priority is, the lower the probability of performing the memory release is.
For example, the longer the running time of the application running in the background, i.e., the longer the idle time, is to indicate that the user has not used the application for a long time, the higher the priority corresponding to the application may be considered, and the shorter the running time of the application running in the background, i.e., the shorter the idle time, is to indicate that the user may frequently use the application in a short time, and the lower the priority corresponding to the application may be considered.
In one example, the terminal device may sort all the applications according to the priority level of each application from high to low, and select the top M applications as the first application.
Wherein M is a positive integer.
In the method for controlling a terminal device provided in the embodiment of the present invention, when a first application program of the terminal device runs in a background, a target application program is obtained, and the target application program includes a process in which the first application program currently runs in the background, so that after the terminal device deletes background running data of the first application program and displays a first target identifier indicating the target application program on a first interface of the terminal device, that is, after the background running data of the first application program is replaced with the target application program, not only a part of a memory of the terminal device is released, but also process-related information of the currently running process of the first application program is retained, so that a user can directly run the process again, that is, the user can directly access a final page corresponding to the process, and thus, the access efficiency is improved.
Fig. 4 is a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention, as shown in fig. 4, the terminal device 300 includes an obtaining module 301, a processing module 302, and a display module 303, where:
an obtaining module 301, configured to obtain the target application program when the first application program of the terminal device 300 runs in the background.
The processing module 302 is configured to delete the background running data of the first application.
A display module 303, configured to display a first target identifier on a first interface of the terminal device 300, where the first target identifier is used to indicate a target application; the target application program comprises a process of the first application program running in the background.
Optionally, the obtaining module 301 is specifically configured to: under the condition that the first application program runs in the background, if the running time of the first application program running in the background is greater than a preset time threshold, and/or the memory of the terminal device 300 is less than a preset 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 program is acquired.
Optionally, the obtaining module 301 is specifically configured to: under the condition that at least two applications are run in the background of the terminal device 300, at least one first application is determined from the at least two applications according to the sequence from high priority to low priority of each application in the at least two applications, and a target application corresponding to each first application is obtained.
Optionally, the processing module 302 is further configured to determine the priority of each application according to the running time of each application running in the background.
Optionally, the target application is an applet.
In the terminal device provided in the embodiment of the present invention, when the first application program of the terminal device runs in the background, the target application program is acquired, and the target application program includes the process in which the first application program runs in the background currently, so that after the terminal device deletes the background running data of the first application program and displays the first target identifier indicating the target application program on the first interface of the terminal device, that is, after the background running data of the first application program is replaced with the target application program, not only part of the memory of the terminal device is released, but also the process-related information of the current running process of the first application program 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, and the access efficiency is improved.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
Fig. 5 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of the terminal device 100 shown in fig. 5 does not constitute a limitation of the terminal device, and that the terminal device 100 may include more or less components than those shown, or combine some components, or arrange different components. In the 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 palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 110 is configured to, under a condition that a first application program of the terminal device 100 runs in the background, acquire a target application program, and delete background running data of the first application program; a display unit 106, configured to display a first target identifier on a first interface of the terminal device, where the first target identifier is used to indicate the target application acquired by the processor 110; wherein the target application comprises a process in which the first application is currently running in the background.
In the terminal device provided in the embodiment of the present invention, when the first application program of the terminal device runs in the background, the target application program is acquired, and the target application program includes the process in which the first application program runs in the background currently, so that after the terminal device deletes the background running data of the first application program and displays the first target identifier indicating the target application program on the first interface of the terminal device, that is, after the background running data of the first application program is replaced with the target application program, not only part of the memory of the terminal device is released, but also the process-related information of the current running process of the first application program 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, and the access efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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 a network and other devices through a wireless communication system.
The terminal device 100 provides the user with wireless broadband internet access via the network module 102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
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 an audio signal 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 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic 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 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
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 that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a 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.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs 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. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 5, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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.
The processor 110 is a control center of the terminal device 100, connects various parts of the entire terminal device 100 by various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the control method embodiment of the terminal device, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further 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 computer program implements each process of the control method embodiment of the terminal device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A control method of a terminal device is applied to the terminal device, and is characterized by comprising the following steps:
under the condition that a first application program of the terminal equipment runs in a background, acquiring a target application program;
deleting background running data of the first application program, and displaying a first target identifier on a first interface of the terminal equipment, wherein the first target identifier is used for indicating the target application program, and the target application program is an applet;
the target application program only comprises a process of the first application program which is currently running in the background, and the memory size occupied by the target application program is smaller than the memory size occupied by the background running data of the first application program.
2. The method according to claim 1, wherein the acquiring the target application in the case that the first application of the terminal device is running in the background comprises:
under the condition that the first application program runs in the background, if the running time of the first application program running in the background is greater than a preset time threshold value, and/or the memory of the terminal equipment is smaller than a preset memory threshold value or the memory occupation ratio of the terminal equipment is greater than the average memory occupation ratio of the terminal equipment, acquiring the target application program.
3. The method according to claim 1, wherein in the case that at least two applications are running in the background of the terminal device, the obtaining the target application comprises:
determining at least one first application program from the at least two application programs according to the sequence of the priority of each application program from high to low;
and acquiring a target application program corresponding to each first application program.
4. The method of claim 3, wherein before determining at least a first application from the at least two applications in order of high to low priority for each of the at least two applications, the method further comprises:
and determining the priority of each application program according to the running time of each application program running in the background.
5. A terminal device, comprising:
the acquisition module is used for acquiring a target application program under the condition that a first application program of the terminal equipment runs in a background;
the processing module is used for deleting the background running data of the first application program;
a display module, configured to display a first target identifier on a first interface of the terminal device, where the first target identifier is used to indicate the target application program acquired by the acquisition module, and the target application program is an applet;
the target application program only comprises a process of the first application program which is currently running in the background, and the memory size occupied by the target application program is smaller than the memory size occupied by the background running data of the first application program.
6. The terminal device of claim 5, wherein the obtaining module is specifically configured to:
under the condition that the first application program runs in the background, if the running time of the first application program running in the background is greater than a preset time threshold value, and/or the memory of the terminal equipment is smaller than a preset memory threshold value or the memory occupation ratio of the terminal equipment is greater than the average memory occupation ratio of the terminal equipment, acquiring the target application program.
7. The terminal device of claim 5, wherein the obtaining module is specifically configured to:
under the condition that at least two application programs run in the background of the terminal device, determining at least one first application program from the at least two application programs according to the sequence of the priority of each application program from high to low, and acquiring a target application program corresponding to each first application program.
8. The terminal device of claim 7,
the processing module is further configured to determine the priority of each application program according to the running time of each application program running in the background.
9. A terminal device, characterized by comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the control method of a terminal device according to any one of claims 1 to 4.
CN201910218549.0A 2019-03-21 2019-03-21 Terminal device control method and terminal device Active CN109976611B (en)

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 CN109976611A (en) 2019-07-05
CN109976611B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100132174A (en) * 2009-06-09 2010-12-17 삼성전자주식회사 Method for displaying user list and device using the same
US9575634B2 (en) * 2013-03-04 2017-02-21 Facebook, Inc. Techniques for asynchronous rendering
DE102013007748A1 (en) * 2013-05-07 2014-11-13 Mag Glance Gmbh Method for creating electronically portable documents for e-book-like browsing on market-standard browsers in application-optimized form for online, offline, and print applications
CN104571802B (en) * 2013-10-28 2019-01-15 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106897135A (en) * 2017-02-28 2017-06-27 努比亚技术有限公司 Restoration methods and device after a kind of application interruption
US10776178B2 (en) * 2017-06-26 2020-09-15 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
CN108427526B (en) * 2018-03-16 2020-03-31 维沃移动通信有限公司 Application program management method and terminal

Also Published As

Publication number Publication date
CN109976611A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN110489029B (en) Icon display method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN110752980A (en) Message sending method and electronic equipment
CN110851051B (en) Object sharing method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
CN108681427B (en) Access right control method and terminal equipment
CN109117037B (en) Image processing method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN110647277A (en) Control method and terminal equipment
CN111027030A (en) Permission setting method and terminal device
CN111163224B (en) Voice message playing method and electronic equipment
CN110225180B (en) Content input method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN111443968A (en) Screenshot method and electronic equipment
CN111352547A (en) Display method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN109901761B (en) Content display method and mobile terminal
CN109857292B (en) Object display method and terminal equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN108762606B (en) Screen unlocking method and terminal equipment
CN110647506B (en) Picture deleting method and terminal equipment
CN110908750B (en) Screen capturing method and electronic equipment
CN110445924B (en) Network task execution method and terminal equipment

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