CN107450711B - Application processing method and device, storage medium and terminal - Google Patents

Application processing method and device, storage medium and terminal Download PDF

Info

Publication number
CN107450711B
CN107450711B CN201710644148.2A CN201710644148A CN107450711B CN 107450711 B CN107450711 B CN 107450711B CN 201710644148 A CN201710644148 A CN 201710644148A CN 107450711 B CN107450711 B CN 107450711B
Authority
CN
China
Prior art keywords
application program
terminal
locking
time
application
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.)
Expired - Fee Related
Application number
CN201710644148.2A
Other languages
Chinese (zh)
Other versions
CN107450711A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710644148.2A priority Critical patent/CN107450711B/en
Publication of CN107450711A publication Critical patent/CN107450711A/en
Priority to PCT/CN2018/094511 priority patent/WO2019024647A1/en
Application granted granted Critical
Publication of CN107450711B publication Critical patent/CN107450711B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention discloses an application program processing method, an application program processing device, a storage medium and a terminal; the method comprises the steps that historical behavior information of a user for locking and unlocking a screen of a terminal is obtained, then a time threshold value representing that the user cannot use the terminal within a preset time period is determined according to the historical behavior information, when the terminal is detected to enter a screen locking state, the duration time of the terminal in the screen locking state is obtained, and when the current duration time is larger than the time threshold value, the current running application program is cached and locked; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, and at the moment, the running application program can be cached and locked, so that the cache of the application program is not required to be reloaded after the screen is released next time, the application program can be started quickly, and the power consumption of the terminal is reduced.

Description

Application processing method and device, storage medium and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to an application program processing method, an application program processing device, a storage medium and a terminal.
Background
With the rapid development of terminal technology, the functions of the terminal are stronger and more applications are available.
At present, after a terminal enters a screen locking stage, an application process of a background application program can be killed, so that cache data of the application process needs to be reloaded after a user unlocks a screen, and the application program can be opened. However, this reduces the opening speed of the application and increases power consumption.
Disclosure of Invention
The embodiment of the invention provides an application program processing method, an application program processing device, a storage medium and a terminal, which can improve the opening speed of an application program and reduce power consumption.
In a first aspect, an embodiment of the present invention provides an application processing method, including:
acquiring historical behavior information of a user for locking and unlocking a screen of a terminal;
determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information;
when the terminal is detected to enter a screen locking state, acquiring the current duration of the terminal in the screen locking state;
when the current duration is larger than the time threshold, performing cache locking on the currently running application program
In a second aspect, an application processing apparatus provided in an embodiment of the present invention includes:
the information acquisition module is used for acquiring historical behavior information of a user for locking and unlocking a screen of the terminal;
the threshold value determining module is used for determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information;
the terminal comprises a time acquisition module, a screen locking module and a display module, wherein the time acquisition module is used for acquiring the current duration of the terminal in the screen locking state when detecting that the terminal enters the screen locking state;
and the locking module is used for carrying out cache locking on the currently running application program when the current duration is greater than the time threshold.
In a third aspect, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions adapted to, when executed on a computer, cause the computer to execute the application processing method as described above.
In a fourth aspect, a terminal includes a processor and a memory, the memory storing a plurality of instructions, the processor being configured to execute the application processing method as described above by loading the instructions in the memory.
The method comprises the steps that historical behavior information of a user for locking and unlocking a screen of a terminal is obtained, then a time threshold value representing that the user cannot use the terminal within a preset time period is determined according to the historical behavior information, when the terminal is detected to enter a screen locking state, the duration time of the terminal in the screen locking state is obtained, and when the current duration time is larger than the time threshold value, the current running application program is cached and locked; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, at the moment, the cache locking can be carried out on the running application program, so that after the screen is released next time, the cache of the application program does not need to be reloaded, the application program can be started quickly, and the power consumption of the terminal is reduced.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of an application processing method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an application processing method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an association process of an application according to an embodiment of the present invention.
Fig. 4 is another flowchart illustrating an application processing method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a second application processing apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a third application processing apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of a fourth structure of an application processing apparatus according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Fig. 10 is another schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present invention are described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, but on the contrary, it is to be understood that various steps and operations described hereinafter may be implemented in hardware.
The term "module" as used herein may be a software object that executes on the computing system. The different components, modules, engines, and services described herein may be implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present invention.
The terms "first", "second", and "third", etc. in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, a scene diagram of an application processing method is shown, and for convenience of explanation, only a part related to the contents of the present invention is shown.
The executing subject of the embodiment of the present invention may be a terminal, and the terminal may include a mobile phone (or a "cellular" phone, such as a smart phone) or a computer with a wireless communication module, such as a tablet computer, and may also be a portable, pocket, or handheld vehicle-mounted computer, which exchange languages and/or data with a wireless access network. For example, the devices include, but are not limited to, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs).
In the terminal, a plurality of different applications may be installed, for example, referring to fig. 1, the terminal has an application program A, B, C, D installed thereon. Assuming that the terminal runs an application a in the background, referring to fig. 1, when the terminal enters a screen locking state, detecting a duration of the terminal in the screen locking state, then comparing the duration with a time threshold, and if the duration is greater than the time threshold, performing cache locking on the application a.
In an embodiment, an embodiment of the present invention provides an application processing method, and with reference to fig. 2, a specific flow of the application processing method is as follows:
101. and acquiring historical behavior information of a user for locking and unlocking a screen of the terminal.
The historical behavior information can be behavior information of a user performing screen locking operation and screen unlocking operation on the terminal within a certain period of time in the past; for example, the behavior information of the user performing the screen locking operation and the screen unlocking operation on the terminal within a certain time before the current time.
In one embodiment, the historical behavior information may include: time information from the time when the user locks the terminal screen to the time when the user unlocks the terminal screen within a certain period of time before the current time, user use habit information after the terminal screen is locked, and the like
102. And determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information.
The embodiment of the invention can deduce the time threshold value representing that the user can not use the terminal in a certain time period based on the historical behavior information of the user locking and unlocking the screen of the terminal.
For example, when the historical behavior information includes time information from the time when the user locks the screen of the terminal to the time when the user unlocks the screen of the terminal within a certain period of time before the current time; average time information from when the user locks the terminal screen to when the user unlocks the terminal screen can be calculated, and then a time threshold value is derived based on the average time information.
103. And when the terminal is detected to enter the screen locking state, acquiring the current duration of the terminal in the screen locking state.
The current duration is a time difference between a current time when the terminal is in the screen locking state and a time when the terminal enters the screen locking state.
The starting point of the timing of the duration time of the terminal in the screen locking state can be the time when the terminal enters the screen locking state.
104. And when the current duration is greater than the time threshold, performing cache locking on the currently running application program.
The currently running application programs may include: foreground applications currently running in the foreground, background applications currently running in the background, and the like.
The currently running application may include all applications currently running, or may include part of the applications currently running.
In order to determine whether the user needs not to use the terminal for a certain period of time, the present embodiment may compare the current duration with the previous time threshold, and when the duration is greater than the time threshold, it may be considered that the user does not use the terminal for a certain period of time or the possibility of using the terminal is low.
In order to improve the opening speed of the application program and reduce the power consumption, the embodiment of the invention can perform cache locking on some running application programs under the condition that a user does not use the terminal in a certain period of time or the possibility of using the terminal is low.
The cache locking refers to locking or freezing a cache resource of an application program, such as cache data, for example, a cache resource of a process of the application program may be locked or frozen.
In one embodiment, in order to save resources, some target application programs may be selected from currently running application programs for cache locking, instead of performing cache locking on all running application programs; the selection manner of the target application may be various, for example, the selection manner may be selected based on the time when the application program is last run in the foreground. Specifically, the step "cache locking the currently running application" may include:
acquiring the final use time of a background application program which runs in the background at present, wherein the final use time is the time when the background application program runs in the foreground for the last time;
selecting a corresponding target background application program from the background application programs according to the final use time of the background application programs;
and carrying out cache locking on the target background application program.
The target background application selected according to the final use time may be in various manners, for example, a background application whose final use time is closest to the current time may be selected, or for example, a background application whose time difference between the final use time and the current time is within a preset range may be selected.
In practical applications, the application with the later end use time indicates that the application is more likely to be run by the user after unlocking the screen, and therefore, the cache of the application can be locked or frozen so that the application can be quickly opened after unlocking the screen.
In an embodiment, in order to save resources and facilitate user selection, a white list may be further set, and only the application programs on the white list are cache-locked, for example, the step "cache-locking the currently running application program" may include:
selecting a target application program in a preset application set from currently running application programs, wherein the preset application set comprises the application programs needing cache locking;
and carrying out cache locking on the selected target application program.
The preset application set represents a white list, and the preset application set comprises all application programs needing to be cached. An application that is not within the preset set of applications indicates that no cache lock is required.
In an embodiment, in order to save terminal resources, the application program that is not in the preset application set may be closed, that is, the application program processing method may further include: and closing the currently running application program which does not exist in the preset application set.
In an embodiment, the currently running application may include multiple processes, such as a primary process, a secondary process, and the like, and in order to increase the opening speed of the application and save resources, cache locking may be performed on some processes in the application instead of performing cache locking on all processes. That is, the step "cache locking the currently running application" may include:
acquiring a main process of a currently running application program and a secondary process associated with the main process;
selecting a corresponding target sub-process from the sub-processes;
and carrying out cache locking on the main process and the target secondary process.
The main process is a process for implementing most of the main functions of the application and can control the invocation of the secondary process associated with the main process, and in some cases, the main process may also be called a parent process or a program process; the sub-process is used to handle service functions related to the application, such as updating, monitoring, etc. the application, and in some cases, may also be referred to as a sub-process or a service process.
The process is locked or frozen, and the cache resource occupied by the process is not released in the screen locking state.
For example, referring to fig. 3, the associated process of application a may be obtained, and the associated process of application a may include "primary process a", and "secondary process b", "secondary process c", and "secondary process d" bound thereto. And then, selecting a secondary process b from the secondary process b, the secondary process c and the secondary process d, and then, carrying out cache locking on the main process a and the secondary process b.
For example, in an embodiment, the target sub-process may be determined according to a priority of the sub-processes, such as determining the target sub-process with the highest priority.
For another example, in an embodiment, the sub-process may be selected according to the number of calls of the sub-process in a past period of time, for example, since the larger the number of calls indicates that the sub-process is important for the application, the sub-process with the largest number of calls or the number of calls greater than a preset number may be selected for cache locking, so as to speed up the opening of the application. Specifically, the step of "selecting a corresponding target sub-process from the sub-processes" may include:
acquiring the historical calling times of the process;
and selecting a corresponding target subprocess from the subprocess according to the historical calling times of the subprocess.
The historical calling times can be obtained from a system log file, and the historical calling times of the process are recorded in the system log file.
For example, the associated process of application a may include "primary process a", and "secondary process b", "secondary process c", "secondary process d" bound thereto. At this time, the historical calling times of the "sub-process b", "sub-process c", and "sub-process d" may be obtained, and then, the sub-process with the historical calling times larger than the preset times is selected as the target sub-process, for example, the "sub-process b" and the "sub-process c" are selected as the target process.
In an embodiment, after the terminal unlocks the screen, when an opening instruction of the application program is received, the cache of the application program can be unlocked according to the opening instruction, so that the application program can be started quickly. For example, the cache of the target process in the application program may be unlocked to quickly pull up the target process, thereby realizing quick opening of the application program.
As can be seen from the above, the embodiment of the present invention obtains the historical behavior information of the user for locking and unlocking the screen of the terminal, and then determines the time threshold value representing that the user will not use the terminal within the preset time period according to the historical behavior information; when the terminal is detected to enter a screen locking state, acquiring the duration of the terminal in the screen locking state, and when the current duration is greater than a time threshold, performing cache locking on the currently running application program; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, at the moment, the cache locking can be carried out on the running application program, so that after the screen is released next time, the cache of the application program does not need to be reloaded, the application program can be started quickly, and the power consumption of the terminal is reduced.
In addition, according to the scheme, the cache locking can be carried out on the application program when the user cannot use the terminal, the phenomenon that the cache needs to be unlocked quickly after being locked temporarily can be avoided, terminal resources are saved, and the starting efficiency of the application program is improved.
In an embodiment, the present invention further provides another application processing method, and referring to fig. 4, a flow of the application processing method is as follows:
201. and the terminal collects historical behavior information of locking and unlocking the screen by the user.
The historical behavior information can be behavior information of a user performing screen locking operation and screen unlocking operation on the terminal within a certain period of time in the past; for example, the behavior information of the user performing the screen locking operation and the screen unlocking operation on the terminal within a certain time before the current time.
202. And the terminal deduces a time threshold according to the historical behavior information, wherein the time threshold is used for representing that the user cannot use the terminal within a preset time period.
For example, when the historical behavior information includes time information from the time when the user locks the screen of the terminal to the time when the user unlocks the screen of the terminal within a certain period of time before the current time; the time interval from when the user locks the terminal to when the user unlocks the terminal screen can be calculated, then the weighted sum of the time intervals is calculated, and the time threshold value is derived based on the weighted sum information.
203. And when the terminal is detected to enter the screen locking state, acquiring the current duration of the terminal in the screen locking state.
And the current duration is the time difference between the current moment when the terminal is in the screen locking state and the moment when the terminal enters the screen locking state.
204. And when the current duration is greater than the time threshold, the terminal selects a background application program in a preset application set from the background application programs running in the background at present as a target application program.
In order to determine whether the user needs not to use the terminal for a certain period of time, the present embodiment may compare the current duration with the previous time threshold, and when the duration is greater than the time threshold, it may be considered that the user does not use the terminal for a certain period of time or the possibility of using the terminal is low.
In order to improve the opening speed of the application program and reduce the power consumption, the embodiment of the invention can perform cache locking on some running background application programs under the condition that a user does not use the terminal in a certain period of time or the possibility of using the terminal is low, so that the background application programs can be quickly started after unlocking the screen.
In an embodiment, in order to save resources and facilitate user selection, a white list may be further set, and only the application programs on the white list are cached and locked, where a preset application set represents the white list, and the preset application set includes all the application programs that need to be cached. An application that is not within the preset set of applications indicates that no cache lock is required.
205. And the terminal performs cache locking on the target application program and closes other background application programs.
The cache locking refers to locking or freezing a cache resource of an application program, such as cache data, for example, a cache resource of a process of the application program may be locked or frozen.
In an embodiment, the currently running application may include multiple processes, such as a primary process, a secondary process, and the like, and in order to increase the opening speed of the application and save resources, cache locking may be performed on some processes in the application instead of performing cache locking on all processes.
For example, the terminal may obtain a main process of a currently running application program and a sub-process associated with the main process, and the terminal may select a desired target sub-process from the sub-processes based on the historical calling times of the sub-processes to perform cache locking on the main process and the target sub-process.
The main process is a process for implementing most of the main functions of the application and can control the invocation of the secondary process associated with the main process, and in some cases, the main process may also be called a parent process or a program process; the sub-process is used to handle service functions related to the application, such as updating, monitoring, etc. the application, and in some cases, may also be referred to as a sub-process or a service process.
The process is locked or frozen, and the cache resource occupied by the process is not released in the screen locking state.
206. And after the terminal detects that the screen is unlocked, acquiring an operation instruction of the target application program.
For example, receiving an operation instruction of a target application triggered by a user through a terminal operation.
207. And the terminal performs cache unlocking on the target application program according to the operation instruction so as to enable the terminal to rapidly operate the target application program.
For example, the terminal may perform cache unlocking on the target secondary process of the target application program according to the operation instruction, so that the target application program can be operated based on the primary process and the secondary process after the cache of the target secondary process is unlocked, and the operation speed of the target application program and the power consumption of the terminal are accelerated.
As can be seen from the above, the embodiment of the present invention obtains the historical behavior information of the user for locking and unlocking the screen of the terminal, and then determines the time threshold value representing that the user will not use the terminal within the preset time period according to the historical behavior information; when the terminal is detected to enter a screen locking state, acquiring the duration of the terminal in the screen locking state, and when the current duration is greater than a time threshold, performing cache locking on the currently running application program; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, at the moment, the cache locking can be carried out on the running application program, so that after the screen is released next time, the cache of the application program does not need to be reloaded, the application program can be started quickly, and the power consumption of the terminal is reduced.
In addition, according to the scheme, the cache locking can be carried out on the application program when the user cannot use the terminal, the phenomenon that the cache needs to be unlocked quickly after being locked temporarily can be avoided, terminal resources are saved, and the starting efficiency of the application program is improved.
In order to better implement the application processing method provided by the embodiment of the present invention, an application processing apparatus is further provided in an embodiment. The terms are the same as those in the above application processing method, and details of implementation may refer to the description in the method embodiment.
As shown in fig. 5, the application processing device 30 may include: an information acquisition module 301, a threshold determination module 302, a time acquisition module 303, and a locking module 304;
the information acquisition module 301 is configured to acquire historical behavior information of a user for locking and unlocking a screen of the terminal;
a threshold determining module 302, configured to determine, according to the historical behavior information, a time threshold indicating that the user will not use the terminal within a preset time period;
a time obtaining module 303, configured to obtain a current duration of the terminal in the screen lock state when it is detected that the terminal enters the screen lock state;
and a locking module 304, configured to perform cache locking on the currently running application program when the current duration is greater than the time threshold.
In an embodiment, referring to fig. 6, the locking module 304 may include:
a time obtaining sub-module 3041, configured to, when the current duration is greater than the time threshold, obtain a final use time of a background application currently running in a background, where the final use time is a time when the background application is last running in a foreground;
a selecting submodule 3042, configured to select a corresponding target background application program from the background application programs according to the final use time of the background application programs;
the locking submodule 3043 is configured to perform cache locking on the target background application.
In an embodiment, referring to fig. 7, wherein the locking module 304 may comprise:
an application selecting submodule 3044, configured to select, when the current duration is greater than the time threshold, a target application program in a preset application set from currently running application programs, where the preset application set includes application programs that need to be cache-locked;
a cache locking submodule 3045, configured to perform cache locking on the selected target application;
at this time, the application processing apparatus 30 may further include a closing module 305, where the closing module 305 is configured to close a currently running application that does not exist in the preset application set.
In an embodiment, referring to fig. 8, wherein the locking module 304 may comprise:
a process obtaining sub-module 3046, configured to, when the current duration is greater than the time threshold, obtain a main process of the currently running application program and a secondary process associated with the main process;
a process selecting submodule 3047 for selecting a corresponding target sub-process from the sub-processes;
a process locking submodule 3048 configured to perform cache locking on the primary process and the target secondary process.
In an embodiment, the process selection submodule 3047 may be configured to obtain a historical calling number of the process; and selecting a corresponding target subprocess from the subprocess according to the historical calling times of the subprocess.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment of the present invention, the information obtaining module 301 obtains the historical behavior information of the user for locking and unlocking the screen of the terminal, and then the threshold determining module 302 determines the time threshold representing that the user will not use the terminal within the preset time period according to the historical behavior information; when the time acquisition module 303 detects that the terminal enters the screen locking state, acquiring the duration of the terminal in the screen locking state, and when the current duration is greater than a time threshold, performing cache locking on the currently running application program by the locking module 304; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, at the moment, the cache locking can be carried out on the running application program, so that after the screen is released next time, the cache of the application program does not need to be reloaded, the application program can be started quickly, and the power consumption of the terminal is reduced.
In addition, according to the scheme, the cache locking can be carried out on the application program when the user cannot use the terminal, the phenomenon that the cache needs to be unlocked quickly after being locked temporarily can be avoided, terminal resources are saved, and the starting efficiency of the application program is improved.
In an embodiment, the present invention further provides a storage medium, where the storage medium stores instructions, and the instructions, when executed by a processor, implement the steps of the application processing method provided in any one of the embodiments of the present invention.
In an embodiment, referring to fig. 9, the present invention further provides a terminal 400, including a memory 401 and a processor 402, where the memory 401 stores instructions, and the processor 402 loads the instructions to perform the steps of the application processing method according to any one of the embodiments of the present invention.
The embodiment of the invention also provides a terminal which can be equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer, a palm computer and the like. Referring to fig. 10, the terminal 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the terminal 500, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 500 and processes data by running or loading an application stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the terminal 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage 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 created according to the use of the server, and the like. Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In the embodiment of the present invention, the processor 501 in the terminal 500 loads the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, thereby implementing various functions as follows:
acquiring historical behavior information of a user for locking and unlocking a screen of a terminal, and then determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information; when the terminal is detected to enter a screen locking state, acquiring the duration of the terminal in the screen locking state; and when the current duration is greater than the time threshold, performing cache locking on the currently running application program.
In one embodiment, the processor 501 may further implement the following steps:
acquiring the final use time of a background application program which runs in a background at present, wherein the final use time is the time when the background application program runs in the foreground for the last time;
selecting a corresponding target background application program from the background application programs according to the final use time of the background application programs;
and carrying out cache locking on the target background application program.
In one embodiment, the processor 501 may implement the following steps:
selecting a target application program in a preset application set from currently running application programs, wherein the preset application set comprises the application programs needing cache locking;
performing cache locking on the selected target application program
At this time, the processor 501 may further implement the steps of: and closing the currently running application program which does not exist in the preset application set.
In one embodiment, the processor 501 may implement the following steps:
acquiring a main process of a currently running application program and a secondary process associated with the main process;
selecting a corresponding target sub-process from the sub-processes;
and carrying out cache locking on the main process and the target secondary process.
In one embodiment, the processor 501 may implement the following steps:
acquiring the historical calling times of the secondary process;
and selecting a corresponding target subprocess from the subprocesses according to the historical calling times of the subprocesses.
Referring also to fig. 10, in some embodiments, the terminal 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, a wireless fidelity module 506, and a power supply 507. The display 503, the rf circuit 504, the audio circuit 505, the wireless fidelity module 506, and the power supply 507 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 503 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be configured to transceive rf signals for establishing wireless communication with a network device or other terminals via wireless communication, and to transceive signals with the network device or other terminals.
The audio circuit 505 may be used to provide an audio interface between the user and the terminal through a speaker, microphone.
The wireless fidelity module 506 may be used for short-range wireless transmission, may assist the user in sending and receiving e-mail, browsing websites, accessing streaming media, etc., and provides wireless broadband internet access for the user.
The power supply 507 may be used to power various components of the terminal 500. In some embodiments, power supply 507 may be logically coupled to processor 501 through a power management system, such that functions to manage charging, discharging, and power consumption management are performed through the power management system.
Although not shown in fig. 10, the terminal 500 may further include a camera, a bluetooth module, and the like, which will not be described in detail herein.
The terminal acquires historical behavior information of a user for locking and unlocking a screen of the terminal, and then determines a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information; when the terminal is detected to enter a screen locking state, acquiring the duration of the terminal in the screen locking state, and when the current duration is greater than a time threshold, performing cache locking on the currently running application program; according to the scheme, after the terminal enters the screen locking state for a period of time, the user can not use the terminal within a certain period of time, at the moment, the cache locking can be carried out on the running application program, so that after the screen is released next time, the cache of the application program does not need to be reloaded, the application program can be started quickly, and the power consumption of the terminal is reduced.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable medium, which may include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The foregoing detailed description is directed to an application processing method, an application processing apparatus, a storage medium, and a terminal according to embodiments of the present invention, and a specific example is used herein to explain the principles and implementations of the present invention, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An application processing method, comprising the steps of:
acquiring historical behavior information of a user for locking and unlocking a screen of a terminal;
determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information;
when the terminal is detected to enter a screen locking state, acquiring the current duration of the terminal in the screen locking state;
when the current duration is larger than the time threshold, judging that the user cannot use the terminal within a period of time from the current moment, determining a target application program from the currently running application programs, and performing cache locking on the target application program;
the determining a target application program from currently running application programs and performing cache locking on the target application program includes: acquiring a main process of a currently running target application program and a secondary process associated with the main process, selecting a corresponding target secondary process from the secondary processes, performing cache locking on the main process and the target secondary process, and not performing cache locking on a non-target application program in the currently running application program, wherein the cache locking on the process refers to locking or freezing cache data of the process, and the secondary process is used for processing a service function related to application;
wherein the determining the target application program from the currently running application programs comprises: acquiring the final use time of a background application program which runs in a background at present, wherein the final use time is the time when the background application program runs in the foreground for the last time; selecting a corresponding target background application program from the background application programs according to the final use time of the background application programs;
when the terminal unlocking screen is detected, acquiring an operation instruction of the target application program;
and unlocking the cache data corresponding to the target application program according to the running instruction so as to start the target application program without reloading the cache data of the target application program.
2. The application processing method of claim 1, wherein determining a target application from currently running applications and performing cache locking on the target application comprises:
selecting a target application program in a preset application set from currently running application programs, wherein the preset application set comprises the application programs needing cache locking;
performing cache locking on the selected target application program;
the application processing method further comprises the following steps: and closing the currently running application program which does not exist in the preset application set.
3. The application processing method of claim 1, wherein selecting a corresponding target sub-process from the sub-processes comprises:
acquiring the historical calling times of the secondary process;
and selecting a corresponding target subprocess from the subprocesses according to the historical calling times of the subprocesses.
4. An application processing apparatus, comprising:
the information acquisition module is used for acquiring historical behavior information of a user for locking and unlocking a screen of the terminal;
the threshold value determining module is used for determining a time threshold value representing that the user cannot use the terminal within a preset time period according to the historical behavior information;
the terminal comprises a time acquisition module, a screen locking module and a display module, wherein the time acquisition module is used for acquiring the current duration of the terminal in the screen locking state when detecting that the terminal enters the screen locking state;
the locking module is used for judging that the user cannot use the terminal within a period of time from the current moment when the current duration is greater than the time threshold, determining a target application program from the currently running application programs, and performing cache locking on the target application program;
the locking module is further configured to: acquiring a main process of a currently running target application program and a secondary process associated with the main process, selecting a corresponding target secondary process from the secondary processes, performing cache locking on the main process and the target secondary process, and not performing cache locking on a non-target application program in the currently running application program, wherein the cache locking on the process refers to locking or freezing cache data of the process, and the secondary process is used for processing a service function related to application;
wherein the locking module comprises: the time obtaining sub-module is used for obtaining the final use time of the background application program which runs in the background currently when the current duration is greater than the time threshold, wherein the final use time is the last time when the background application program runs in the foreground;
when the terminal unlocking screen is detected, acquiring an operation instruction of the target application program;
and unlocking the cache data corresponding to the target application program according to the running instruction so as to start the target application program without reloading the cache data of the target application program.
5. The application processing apparatus of claim 4, wherein the locking module comprises:
the application selection submodule is used for selecting a target application program in a preset application set from currently running application programs when the current duration is greater than the time threshold, wherein the preset application set comprises the application programs needing cache locking;
the cache locking submodule is used for carrying out cache locking on the selected target application program;
the application processing apparatus further includes: closing the module;
and the closing module is used for closing the current running application program which does not exist in the preset application set.
6. The application processing apparatus of claim 4, wherein the process selection submodule is configured to obtain a history of invocation times of the sub-process; and selecting a corresponding target subprocess from the subprocesses according to the historical calling times of the subprocesses.
7. A storage medium storing a plurality of instructions adapted to cause a computer to perform the application processing method according to any one of claims 1 to 3 when the computer runs on the computer.
8. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor being configured to perform the application processing method of any one of claims 1 to 3 by loading the instructions in the memory.
CN201710644148.2A 2017-07-31 2017-07-31 Application processing method and device, storage medium and terminal Expired - Fee Related CN107450711B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710644148.2A CN107450711B (en) 2017-07-31 2017-07-31 Application processing method and device, storage medium and terminal
PCT/CN2018/094511 WO2019024647A1 (en) 2017-07-31 2018-07-04 Application program processing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644148.2A CN107450711B (en) 2017-07-31 2017-07-31 Application processing method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN107450711A CN107450711A (en) 2017-12-08
CN107450711B true CN107450711B (en) 2020-08-14

Family

ID=60490101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644148.2A Expired - Fee Related CN107450711B (en) 2017-07-31 2017-07-31 Application processing method and device, storage medium and terminal

Country Status (2)

Country Link
CN (1) CN107450711B (en)
WO (1) WO2019024647A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450711B (en) * 2017-07-31 2020-08-14 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal
CN110046030B (en) * 2018-01-12 2021-08-31 Oppo广东移动通信有限公司 Application program processing method and device, electronic equipment and computer readable storage medium
WO2020133392A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program control method and apparatus, storage medium and electronic device
CN110162161A (en) * 2019-04-17 2019-08-23 努比亚技术有限公司 Control method, wearable device and the computer readable storage medium of target application
CN111045507B (en) * 2019-11-27 2022-04-19 RealMe重庆移动通信有限公司 List management and control method, device, mobile terminal and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101808625B1 (en) * 2010-11-23 2018-01-18 엘지전자 주식회사 Content control apparatus and method thereof
US9541986B2 (en) * 2012-10-08 2017-01-10 Google Inc. Adaptive screen timeouts based on user preferences, interaction patterns and active applications
CN104298335B (en) * 2013-07-19 2017-11-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105573460B (en) * 2014-10-10 2020-01-10 中兴通讯股份有限公司 Method and device for adjusting application program wake-up time
CN104580710B (en) * 2014-12-30 2018-01-09 中国农业科学院农业资源与农业区划研究所 A kind of automatic power save method based on learning user operation custom
CN105260319A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Cleaning method and cleaning system for mobile terminal
CN106547582A (en) * 2015-09-22 2017-03-29 阿里巴巴集团控股有限公司 A kind of preprocess method and device
CN105653008B (en) * 2015-12-29 2019-12-03 北京金山安全软件有限公司 Night sleep message prompting method and device and electronic equipment
CN106125899A (en) * 2016-07-01 2016-11-16 北京金山安全软件有限公司 Method and device for stopping process and mobile terminal
CN106406966B (en) * 2016-10-31 2020-04-07 维沃移动通信有限公司 Application program preloading method and mobile terminal
CN107450711B (en) * 2017-07-31 2020-08-14 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal
CN107402791B (en) * 2017-07-31 2020-05-12 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN107450711A (en) 2017-12-08
WO2019024647A1 (en) 2019-02-07

Similar Documents

Publication Publication Date Title
CN107450711B (en) Application processing method and device, storage medium and terminal
CN107402791B (en) Application processing method and device, storage medium and terminal
CN108205451A (en) application management method, device, storage medium and electronic equipment
CN108363528B (en) Application page starting method and device, storage medium and electronic equipment
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
US8510748B2 (en) Portable communication device operating method
CN107357617B (en) Application updating method and device, storage medium and electronic equipment
CN107423127B (en) Application program control method and device, storage medium and electronic equipment
US10474507B2 (en) Terminal application process management method and apparatus
WO2019024649A1 (en) Application program launching method, device, storage medium and terminal
CN109697359A (en) A kind of message prompt method, device, storage medium and electronic equipment
CN107450709B (en) Application processing method, device, storage medium and electronic equipment
CN109284261A (en) Using lookup method, device, storage medium and electronic equipment
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
CN108228776A (en) Data processing method, device, storage medium and electronic equipment
US20140304720A1 (en) Method for starting process of application and computer system
WO2019024646A1 (en) Application management and control method, apparatus, and electronic device
CN103220392A (en) Method and device for automatically recording sound as well as mobile terminal
CN108093177B (en) Image acquisition method and device, storage medium and electronic equipment
CN114063675A (en) Temperature control method and device
CN107908273B (en) Application management method and device, storage medium and electronic equipment
MX2014009375A (en) Application installation method, apparatus and device.
CN112016080A (en) Application authority management method and device and electronic equipment
CN106980498B (en) Window management method and device
CN107943533B (en) Image acquisition method and device, storage medium and electronic 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200814