CN107402791A - Applied program processing method, device, storage medium and terminal - Google Patents

Applied program processing method, device, storage medium and terminal Download PDF

Info

Publication number
CN107402791A
CN107402791A CN201710643056.2A CN201710643056A CN107402791A CN 107402791 A CN107402791 A CN 107402791A CN 201710643056 A CN201710643056 A CN 201710643056A CN 107402791 A CN107402791 A CN 107402791A
Authority
CN
China
Prior art keywords
application
application program
program
terminal
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710643056.2A
Other languages
Chinese (zh)
Other versions
CN107402791B (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 CN201710643056.2A priority Critical patent/CN107402791B/en
Publication of CN107402791A publication Critical patent/CN107402791A/en
Application granted granted Critical
Publication of CN107402791B publication Critical patent/CN107402791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

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

Abstract

The invention discloses a kind of applied program processing method, device, storage medium and terminal;The embodiment of the present invention obtains the current duration that terminal is in screen lock state when detecting that terminal enters screen lock state;When current duration is more than preset time threshold, it is determined that the application program currently run, be applied set;The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from set of applications;Cache lock is carried out to destination application;The program can be after terminal enters a period of time of screen lock state, think that user will not using terminal in certain period of time, now, the application program of operation (i.e. conventional application program) that can be larger to frequency of use carries out cache lock, after so in next time, solution is shielded, caching of the application program such as conventional application program need not be reloaded, can quickly start the application program, and reduce the power consumption of terminal.

Description

Applied program processing method, device, storage medium and terminal
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of applied program processing method, device, storage medium and end End.
Background technology
With the fast development of terminal technology, the function of terminal is more and more stronger, and application program is also more and more.
The application process of background application can be killed after terminal enters the screen locking stage at present, is caused in user Xie Suoping Backstage needs to reload the data cached of the application process, could open the application program.However, it can so reduce using journey The opening speed of sequence and improve power consumption.
The content of the invention
The embodiment of the present invention provides a kind of applied program processing method, device, storage medium and terminal, can lift application The opening speed and reduction power consumption of program.
In a first aspect, the embodiment of the present invention provides a kind of applied program processing method, including:
When detecting that terminal enters screen lock state, the current duration that the terminal is in screen lock state is obtained;
When the current duration is more than preset time threshold, it is determined that the application program currently run, is applied Set;
The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from the set of applications;
Cache lock is carried out to the destination application.
Second aspect, a kind of application processing apparatus provided in an embodiment of the present invention, including:
Time-obtaining module, for when detecting that terminal enters screen lock state, obtaining the terminal and being in screen lock state Current duration;
Using determining module, for when the current duration is more than preset time threshold, it is determined that currently run Application program, be applied set;
Module is chosen, the intended application journey for being more than predeterminated frequency threshold value for choosing frequency of use from the set of applications Sequence;
Processing module, for carrying out cache lock to the destination application.
The third aspect, the embodiment of the present invention provide a kind of storage medium, and the storage medium stores a plurality of instruction, described more When bar instruction is suitable to run on computers so that the computer performs applied program processing method as described above.
Fourth aspect, a kind of terminal, including processor and memory, a plurality of instruction of memory storage, the processing Device is used to perform applied program processing method as described above by loading the instruction in the memory.
The embodiment of the present invention obtains the existing continuous that terminal is in screen lock state when detecting that terminal enters screen lock state Time;When current duration is more than preset time threshold, it is determined that the application program currently run, be applied set;From The destination application that frequency of use is more than predeterminated frequency threshold value is chosen in set of applications;Buffer lock is carried out to destination application It is fixed;The program can be after terminal enters a period of time of screen lock state, it is believed that user will not use eventually in certain period of time End, at this point it is possible to which the operation application program (i.e. conventional application program) larger to frequency of use carries out cache lock, so exist After next time solves screen, without reloading caching of the application program such as conventional application program, it can quickly start the application program, with And reduce the power consumption of terminal.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the present invention is described in detail, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the application scenarios schematic diagram of applied program processing method provided in an embodiment of the present invention.
Fig. 2 is the schematic flow sheet of applied program processing method provided in an embodiment of the present invention.
Fig. 3 is the association process schematic diagram of application program provided in an embodiment of the present invention.
Fig. 4 is another schematic flow sheet of applied program processing method provided in an embodiment of the present invention.
Fig. 5 is the first structural representation of application processing apparatus provided in an embodiment of the present invention.
Fig. 6 is second of structural representation of application processing apparatus provided in an embodiment of the present invention.
Fig. 7 is the third structural representation of application processing apparatus provided in an embodiment of the present invention.
Fig. 8 is the 4th kind of structural representation of application processing apparatus provided in an embodiment of the present invention.
Fig. 9 is the 5th kind of structural representation of application processing apparatus provided in an embodiment of the present invention.
Figure 10 is the structural representation of terminal provided in an embodiment of the present invention.
Figure 11 is another structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention is by with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.The data or the opening position being maintained in the memory system of the computer are changed in this operation, and its is reconfigurable Or change the running of the computer in a manner of known to the tester of this area in addition.The data structure that the data are maintained For the provider location of the internal memory, it has the particular characteristics as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour Also may be implemented among hardware.
Term as used herein " module " can be the software object performed in the arithmetic system.Difference as described herein Component, module, engine and service can be the objective for implementation in the arithmetic system.And device and method as described herein can be with The mode of software is implemented, and can also be implemented certainly on hardware, within the scope of the present invention.
Term " first ", " second " and " the 3rd " in the present invention etc. is to be used to distinguish different objects, rather than for retouching State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include. Such as contain the step of process, method, system, product or the equipment of series of steps or module is not limited to list or Module, but some embodiments also include the step of not listing or module, or some embodiments also include for these processes, Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Referring to Fig. 1, the scene graph of applied program processing method is shown in figure, for convenience of description, illustrate only in figure The part related to present invention.
Wherein, the executive agent of the embodiment of the present invention can be terminal, and it (or is " honeybee that terminal, which can include mobile phone, Nest " phone, such as smart mobile phone) or computer with wireless communication module, for example, tablet personal computer, can also be it is portable, The car-mounted computer of pocket, hand-held, they exchange language and/or data with wireless access network.For example, PCS (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, WLL (Wireless Local Loop, WLL) stand, individual digital The equipment such as assistant (Personal Digital Assistant, PDA), are not limited thereto.
In the terminal, multiple different applications can be installed, such as, with reference to figure 1, application program is mounted with the terminal A、B、C、D.Assuming that terminal in running background application program A, with reference to figure 1, when terminal enters screen lock state, at detection terminal In the duration of screen lock state, then, duration and time threshold are contrasted, if being more than time threshold, it is determined that application Gather { application program A, B, C, D }, and choose frequency of use from set of applications and enter more than the application program A of predeterminated frequency threshold value Row cache lock.
In one embodiment, the embodiments of the invention provide a kind of applied program processing method, with reference to figure 2, this applies journey The idiographic flow of sequence processing method is as follows:
101st, when detecting that terminal enters screen lock state, the current duration that terminal is in screen lock state is obtained.
The current duration be at the time of terminal is in the current time of screen lock state and terminal enters screen lock state it Between time difference.
Wherein, at the time of terminal is in the time zero of the duration of screen lock state and can enter screen lock state with terminal.
102nd, when the current duration is more than the time threshold, it is determined that the application program currently run, is applied Set.
Wherein, set of applications includes at least one application program currently run, for example, determining the application journey currently run Sequence is application program A, application program B, application program C, application program D, at this point it is possible to the set that is applied application program A, Application program B, application program C, application program D }.
In one embodiment, the application program currently run can include:Currently the foreground application in front stage operation, Currently in background application of running background etc..
The application program currently run can include all application programs currently run, and can also include current operation Certain applications program.
In order to determine user whether need some period will not using terminal, when the present embodiment can be by existing continuous Between compared with time threshold before, when the duration being more than time threshold, it is believed that user is in certain section of period Will not using terminal or using terminal possibility it is smaller.
The embodiment of the present invention can think user in certain section to lift the opening speed of application program and reduce power consumption Period will not using terminal or using terminal possibility it is less in the case of, the application program that some are currently running is entered Row cache lock.
Wherein, the determination mode of preset time threshold can have a variety of, such as, in one embodiment, can be with user to end The behavioural information of end solution screen locking determines, namely before detecting that terminal enters screen lock state, present invention method is also Including:
Obtain user and screen locking, the historical behavior information of solution screen are carried out to terminal;
Determine that the time threshold of the terminal will not be used in preset time period by characterizing user according to the historical behavior information.
Wherein, historical behavior information can be that user carries out screen locking operation, solution lock screen to terminal in certain time in the past The behavioural information of operation;For example user carries out screen locking operation, solution lock screen to terminal in certain time before current time The behavioural information of operation.
In one embodiment, the historical behavior information can include:User is to end in certain time before current time Hold after screen locking to user to user's use habit information after the temporal information of terminal unlocking screen, terminal screen locking etc.
The embodiment of the present invention can be shifted onto out based on the historical behavior information of screen locking of the user to terminal, solution screen and represent user Some period will not using terminal time threshold.
Such as when historical behavior information include current time before certain time in user to terminal screen locking after to use Temporal information of the family to terminal unlocking screen;User can be calculated to being put down after terminal screen locking to user to terminal unlocking screen Equal temporal information, then, time threshold is gone out based on average time information inference.
103rd, the destination application that frequency of use is more than predeterminated frequency threshold value is chosen from the set of applications.
In one embodiment, in order to save resource, some intended applications can be chosen from the application program currently run Program carries out cache lock, rather than carries out cache lock to the application program of all operations.Wherein, the selection side of intended application Formula can have it is a variety of, such as, for save resource and lifted cache lock flexibility, some conventional application journeys can be selected Sequence carries out cache lock, namely obtains the frequency of use of each application program in set of applications, and then, being chosen from set of applications makes It is more than the destination application of predeterminated frequency threshold value with frequency.
Wherein, frequency of use can be history frequency of use, namely before current time application program frequency of use. The frequency of use can be calculated by history access times and historical time section.
Wherein, predeterminated frequency threshold value demand can be set according to, such as, can be 0.5 etc..
For example, when set of applications is { application program A, application program B, application program C, application program D }, can obtain respectively Take application program A, application program B, application program C, application program D frequency of use, assume application program A, application program B Frequency of use is more than predeterminated frequency threshold value, then, it is destination application to determine application program A, application program B.
In one embodiment, the application program of usage time rearward can also be chosen and carry out cache lock, such as, obtaining should With the final usage time of application program in set, the final usage time be application program last time front stage operation when Between;According to the final usage time of application program, corresponding destination application is chosen from set of applications.
Wherein, according to final usage time choose destination application mode can have it is a variety of, such as, can choose The final usage time application program nearest apart from current time, and for example, final usage time and current time can be chosen Between time difference application program within a preset range, etc..
104th, cache lock is carried out to the destination application.
Wherein, cache lock refers to being locked the cache resources of application program are for example data cached etc. or being freezed, example Such as, the cache resources of the process of application program can be locked or freezed.
In one embodiment, the application program currently run can include multiple processes, such as host process, secondary process, be Resource is saved while application program opening speed is improved, some processes in application program that can be directed to carry out cache lock, Rather than cache lock is carried out to all processes.That is, step " carrying out cache lock to the destination application " can include:
The secondary process for obtaining the host process of the destination application and being associated with host process;
Corresponding target time process is chosen from this process;
The host process and the target time process to the destination application carries out cache lock.
Wherein, host process is for realizing the process using most of major function, and can control time being associated The calling of process, in some cases, the host process are referred to as parent process or program process;Secondary process is used to handle with answering With the service function of correlation, such as to the application program update, monitoring etc., in some cases, this time process is referred to as Subprocess or service processes.
Wherein, it is that the shared cache resources of process are locked or freezed to carry out cache lock to process, in screen locking shape The cache resources will not be discharged under state.
For example, with reference to Fig. 3, the association process using A can be obtained, this can include " host process using A association process A ", and " secondary process b ", " secondary process c ", " the secondary process d " bound therewith.Then, from secondary process b, secondary process c, secondary process d It is middle to choose time process b, then, cache lock is carried out to host process a and time process b.
Wherein, the mode of selection target time process can have a variety of, such as, in one embodiment, can be according to secondary progress Priority determine target time process, such as determine the target time process of highest priority.
Again for example, in one embodiment, can also be entered according to time call number of the process in the past period, selection time Journey, for example, due to call number show more greatly this process for application program it is important, therefore, tune can be chosen It is more than the secondary process progress cache lock of preset times with number maximum, or call number, to accelerate opening for application program Open speed.Specifically, step " corresponding target time process is chosen from this process " can include:
Obtain the history call number of this process;
According to the history call number of secondary process, corresponding target time process is chosen from this process.
Wherein, history call number can obtain from syslog file, record the process history in syslog file Call number.
For example, " host process a ", and " secondary process b ", " the secondary process bound therewith can be included using A association process C ", " secondary process d ".At this point it is possible to obtain " secondary process b ", " secondary process c ", " secondary process d " history call number, then, choosing It is target time process to take history call number to be more than secondary processes of preset times, such as selection " secondary process b ", " secondary process c " conducts Target process.
In one embodiment, after terminal unlocking screen, when receiving the open command of destination application, Ke Yigen The caching of destination application is unlocked according to open command, quickly to start the destination application.Such as can be to mesh The caching of target process is unlocked in mark application program, with the quick pull-up target process, and then realizes destination application Quick opening.
In one embodiment, consider that some application program current times being currently running also interact with network side data, So at this point it is possible to maintain the running status of the application program, to avoid that such application program progress EMS memory locked is caused to count According to the experience for losing, influenceing user.Namely step " chooses the mesh that frequency of use is more than predeterminated frequency threshold value from the set of applications Mark application program " can include:
Determination there is currently the interactive application of data interaction from the set of applications;
The destination application that frequency of use is more than predeterminated frequency threshold value, candidate application are chosen from candidate's application program Program is the application program in addition to interactive application in the set of applications;
Now, step " carrying out cache lock to the destination application " can include:Maintain the interactive application Running status, and cache lock is carried out to the destination application.
Wherein, what interactive application referred to is currently running, and is present in network side data interaction and (uploads, download number According to etc.) application program.
For example, when set of applications is { application program A, application program B, application program C, application program D }, when it is determined that using , can be from the application journey in addition to application program C, application program D when program C, application program D and network side have data interaction The application progress cache lock that frequency of use is more than predeterminated frequency threshold value is chosen in sequence, i.e. application program A, application program B, than Such as, when application program A, application program B frequency of use are all higher than predeterminated frequency threshold value, it may be determined that application program A, application Program B is the destination application of pending cache lock;Application program C, application program D operation shape can be maintained afterwards State, and cache lock is carried out to application program A, application program B respectively.
In one embodiment, in order to save electricity, the larger application program of some power consumption can also be closed, that is, this The applied program processing method of inventive embodiments can also include:
The history power consumption of remaining application program is obtained, the remaining application program is to remove the interactive application in the set of applications Application program beyond program and the destination application;
The target residue application program that history power consumption is more than default power threshold is chosen from the remaining application program;
The target residue application program is closed.
In one embodiment, the closing to application program, cache lock and running status maintain to carry out simultaneously, Front and rear it can carry out.The execution sequential closed, lock, maintained can be set according to the actual requirements.Such as in order to a greater degree of Resource is saved, can preferentially close application program, in lock cache.
For example, when set of applications is { application program A, application program B, application program C, application program D, application program E }, When it is determined that application program C has data interaction with network side, can it be applied from the application program in addition to application program C The application progress cache lock that frequency of use is more than predeterminated frequency threshold value is chosen in program A, application program B, such as, when using journey When sequence A, application program B frequency of use are all higher than predeterminated frequency threshold value, it may be determined that application program A, application program B for treat into The destination application of row cache lock.
It can be applied afterwards from the residue in addition to application program A, application program B, application program C, i.e. application program D, The remaining application of target that history power consumption is more than default power threshold is chosen in application program E, such as when application program E history consumes When electricity is more than default power threshold, it is target residue application program to be closed to determine application program E., can be with after so Application program C, application program D running status are maintained, carries out cache lock to application program A, application program B respectively, and Close application program E.
From the foregoing, it will be observed that the embodiment of the present invention, which when detecting that terminal enters screen lock state, obtains terminal, is in screen lock state Current duration;When current duration is more than preset time threshold, it is determined that the application program currently run, is answered With set;The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from set of applications;To destination application Carry out cache lock;The program can be after terminal enters a period of time of screen lock state, it is believed that user is in certain period of time Will not using terminal, at this point it is possible to which the operation application program larger to frequency of use (i.e. conventional application program) caches Locking, after so solution is shielded in next time, without reloading caching of the application program such as conventional application program, it can quickly start this Application program, and reduce the power consumption of terminal.
In addition, the program can be it is determined that user will not carry out cache lock during using terminal to application program, can be with Quick release again is avoided after of short duration locking is cached, terminal resource is saved, improves the starting efficiency of application program;And The operation such as it can be closed, be locked, being maintained to background application, improving the operating flexibility to background application.
In one embodiment, present invention also offers another applied program processing method, with reference to figure 4, the application program The flow of processing method is as follows:
201st, terminal collects user and screen locking, the historical behavior information of solution screen is carried out to it.
Wherein, historical behavior information can be that user carries out screen locking operation, solution lock screen to terminal in certain time in the past The behavioural information of operation;For example user carries out screen locking operation, solution lock screen to terminal in certain time before current time The behavioural information of operation.
202nd, according to historical behavior information inference time threshold, the time threshold is used to characterize user in preset time terminal The terminal will not be used in section.
Such as when historical behavior information include current time before certain time in user to terminal screen locking after to use Temporal information of the family to terminal unlocking screen;User can be calculated to arriving user after terminal screen locking to terminal unlocking screen Every the time, then, the weighted sum of time in counting period, time threshold is gone out based on weighted sum information inference.
203rd, when detecting that terminal enters screen lock state, the current duration that terminal is in screen lock state is obtained.
Wherein, the current duration be terminal be in current time of screen lock state and terminal into screen lock state when Time difference between quarter.
204th, when current duration is more than time threshold, it is determined that the application program currently run, be applied set.
Wherein, set of applications includes at least one application program currently run.
In one embodiment, the application program currently run can include:Currently the foreground application in front stage operation, Currently in background application of running background etc..
205th, terminal determines to there is currently the interactive application for carrying out data interaction with network side from set of applications.
Wherein, what interactive application referred to is currently running, and is present in network side data interaction and (uploads, download number According to etc.) application program.
206th, in application program of the terminal out of set of applications in addition to interactive application, choose frequency of use and be more than in advance If the locking applications of frequency threshold.
207th, terminal chooses the power consumption application program that history power consumption is more than default power threshold from remaining application program, The remaining application program is the application program in addition to interactive application and locking applications in set of applications.
208th, terminal maintain interactive application running status and to locking applications carry out cache lock and Power consumption application program.
Wherein, cache lock refers to being locked the cache resources of application program are for example data cached etc. or being freezed, example Such as, the cache resources of the process of application program can be locked or freezed.
In one embodiment, application program can include multiple processes, such as host process, secondary process, be to improve application Resource is saved while program opening speed, some processes in application program that can be directed to carry out cache lock, rather than to institute There is process to carry out cache lock.
Such as the secondary process that terminal can obtain the host process for the application program currently run and be associated with host process, Terminal can the history call number based on secondary process desired target time process is chosen from secondary process, to host process and mesh Mark time process carries out cache lock.
Wherein, host process is for realizing the process using most of major function, and can control time being associated The calling of process, in some cases, the host process are referred to as parent process or program process;Secondary process is used to handle with answering With the service function of correlation, such as to the application program update, monitoring etc., in some cases, this time process is referred to as Subprocess or service processes.
Wherein, it is that the shared cache resources of process are locked or freezed to carry out cache lock to process, in screen locking shape The cache resources will not be discharged under state.
In one embodiment, after terminal detects unlocking screen, the operating instruction of destination application can be obtained For example receive user and pass through operating instruction of destination application for being triggered to terminal operation etc..Then, terminal can be according to fortune Row instruction carries out caching unblock to destination application, to cause the quick operational objective application program of terminal.
For example terminal can carry out caching unblock according to operating instruction to the target time process of destination application, so , can be based on host process and time process operational objective application program, to accelerate target after the caching unblock of target time process The speed of service of application program and the power consumption of terminal.
From the foregoing, it will be observed that the embodiment of the present invention, which when detecting that terminal enters screen lock state, obtains terminal, is in screen lock state Current duration;When current duration is more than preset time threshold, it is determined that the application program currently run, is answered With set;The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from set of applications;To destination application Carry out cache lock;The program can be after terminal enters a period of time of screen lock state, it is believed that user is in certain period of time Will not using terminal, at this point it is possible to which the operation application program larger to frequency of use (i.e. conventional application program) caches Locking, after so solution is shielded in next time, without reloading caching of the application program such as conventional application program, it can quickly start this Application program, and reduce the power consumption of terminal.
In addition, the program can be it is determined that user will not carry out cache lock during using terminal to application program, can be with Quick release again is avoided after of short duration locking is cached, terminal resource is saved, improves the starting efficiency of application program;And The operation such as it can be closed, be locked, being maintained to background application, improving the operating flexibility to background application.
For the ease of preferably implementing applied program processing method provided in an embodiment of the present invention, also carry in one embodiment A kind of application processing apparatus is supplied.Wherein the implication of noun is identical with above-mentioned applied program processing method, specific implementation Details may be referred to the explanation in embodiment of the method.
As shown in figure 5, application processing apparatus 30 can include:Time-obtaining module 301, using determining module 302, Choose module 303 and application processing module 304;
Time-obtaining module 301, for when detecting that terminal enters screen lock state, obtaining the terminal and being in screen locking shape The current duration of state;
Using determining module 302, for when the current duration is more than preset time threshold, it is determined that current operation Application program, be applied set;
Module 303 is chosen, the target that predeterminated frequency threshold value is more than for choosing frequency of use from the set of applications should Use program;
Application processing module 304, for carrying out cache lock to the destination application.
In one embodiment, with reference to figure 6, module 303 is chosen, can be included:
Interactive application chooses submodule 3031, for determining to there is currently the interaction of data interaction from the set of applications Application program;
Submodule 3032 is chosen in conventional application, is more than predeterminated frequency threshold for choosing frequency of use from candidate's application program The destination application of value, candidate's application program are the application journey in addition to interactive application in the set of applications Sequence;
The application processing module 304, for maintaining the running status of the interactive application, and should to the target Cache lock is carried out with program.
In one embodiment, can also include with reference to figure 7, the application programmer 30:Electricity acquisition module 305 and power consumption Application selection module 306;
Electricity acquisition module 305, for obtaining the history power consumption of remaining application program, the remaining application program is institute State the application program in addition to the interactive application and the destination application in set of applications;
Power consumption application selection module 306, it is more than default electricity for choosing history power consumption from the remaining application program Measure the target residue application program of threshold value;
Application processing module 304, it is additionally operable to close the target residue application program.
In one embodiment, can include with reference to figure 8, application processing module 304:
Process acquisition submodule 3041, for obtaining the host process of the destination application and being associated with host process Secondary process;
Process chooses submodule 3042, for choosing corresponding target time process from the secondary process;
Process lock stator modules 3043, enter for the host process to the destination application and the target time Cheng Jinhang cache locks.
In one embodiment, process chooses submodule 3042, for obtaining the history call number of the secondary process;According to The history call number of secondary process, corresponding target time process is chosen from the secondary process.
In one embodiment, with reference to figure 9, the application programmer 30 can be with:Threshold determination module 307;
Threshold determination module 307, is used for:Obtain user and screen locking, the historical behavior information of solution screen are carried out to terminal;
Determine that the time of the terminal will not be used in preset time period by characterizing user according to the historical behavior information Threshold value.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not Repeat again.
From the foregoing, it will be observed that the application processing apparatus of the embodiment of the present invention when detecting that terminal enters screen lock state, leads to Cross time-obtaining module 301 and obtain the current duration that terminal is in screen lock state;By being held using determining module 302 currently When the continuous time is more than preset time threshold, it is determined that the application program currently run, be applied set;By selection module 303 from The destination application that frequency of use is more than predeterminated frequency threshold value is chosen in set of applications;By application processing module 304 to target Application program carries out cache lock;The program can be after terminal enters a period of time of screen lock state, it is believed that user is certain In period will not using terminal, at this point it is possible to the operation application program larger to frequency of use (i.e. conventional application program) Cache lock is carried out,, can be fast without reloading caching of the application program such as conventional application program after so in next time, solution is shielded Speed starts the application program, and reduces the power consumption of terminal.
In addition, the program can be it is determined that user will not carry out cache lock during using terminal to application program, can be with Quick release again is avoided after of short duration locking is cached, terminal resource is saved, improves the starting efficiency of application program.
In one embodiment, the present invention also provides a kind of storage medium, and the storage medium is stored with instruction, the instruction The step of applied program processing method of any offer of the embodiment of the present invention is provided when being executed by processor.
In one embodiment, a kind of terminal 400, including memory 401 and processor are also provided with reference to figure 11, the present invention 402, the memory 401 is stored with instruction, and the processor 402 loads the instruction, and to perform, the embodiment of the present invention is any to be carried The step of applied program processing method of confession.
Figure 11 is referred to, Figure 11 is terminal structure schematic diagram provided in an embodiment of the present invention.The terminal 500 can include penetrating Frequently (RF, Radio Frequency) circuit 501, include the memories of one or more computer-readable recording mediums 502nd, input block 503, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, include the part such as one or the processor 508 of more than one processing core and power supply 509. It will be understood by those skilled in the art that the restriction of the terminal structure shown in Figure 11 not structure paired terminal, can be included than figure Show more or less parts, either combine some parts or different parts arrangement.
Radio circuit 501 can be used for receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, sent up data are related to To base station.
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 508 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.Memory 502 can mainly include storing program area and data storage Area, wherein, storing program area can storage program area, needed at least one function application program (such as sound-playing function, Image player function etc.) etc.;Storage data field can store uses created data (such as voice data, electricity according to terminal Script for story-telling etc.) etc..In addition, memory 502 can include high-speed random access memory, nonvolatile memory can also be included, A for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 is gone back Memory Controller can be included, to provide the access of processor 508 and input block 503 to memory 502.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.
Display unit 504 can be used for display by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 504 may include display panel.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal by loudspeaker, microphone.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and accessed. Although Figure 11 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, completely It can be omitted as needed in the essential scope for do not change invention.
Processor 508 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the application program being stored in memory 502, and call the data being stored in memory 502, perform The various functions and processing data of terminal, so as to carry out integral monitoring to terminal.Optionally, processor 508 may include one or Multiple processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein, application processor Main processing operating system, user interface and application program etc., modem processor mainly handles radio communication.It is appreciated that , above-mentioned modem processor can not also be integrated into processor 508.
Terminal also includes the power supply 509 (such as battery) to all parts power supply.
Although not shown in Figure 11, terminal can also include camera, bluetooth module etc., will not be repeated here.
Wherein, the instruction in the load store device 502 of processor 508 or program are to realize following steps:
When detecting that terminal enters screen lock state, the current duration that the terminal is in screen lock state is obtained;
When the current duration is more than preset time threshold, it is determined that the application program currently run, is applied Set;
The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from the set of applications;
Cache lock is carried out to the destination application.
In one embodiment, processor 508 can realize following steps:
Determination there is currently the interactive application of data interaction from the set of applications;
The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from candidate's application program, the candidate should It is the application program in the set of applications in addition to interactive application with program;
The running status of the interactive application is maintained, and cache lock is carried out to the destination application.
In one embodiment, processor 508 can also realize following steps:
The history power consumption of remaining application program is obtained, the remaining application program is to remove the friendship in the set of applications Application program beyond mutual application program and the destination application;
The target residue application program that history power consumption is more than default power threshold is chosen from the remaining application program;
The target residue application program is closed.
In one embodiment, processor 508 can realize following steps:
The secondary process for obtaining the host process of the destination application and being associated with host process;
Corresponding target time process is chosen from the secondary process;
The host process and the target time process to the destination application carries out cache lock.
In one embodiment, processor 508 can realize following steps:
Obtain the history call number of the secondary process;
According to the history call number of secondary process, corresponding target time process is chosen from the secondary process.
In one embodiment, processor 508 can also realize following steps:
Before detecting that terminal enters screen lock state, obtain the historical behavior that user carries out screen locking to terminal, solution is shielded and believe Breath;
Determine that the time of the terminal will not be used in preset time period by characterizing user according to the historical behavior information Threshold value.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable medium In, the medium can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Applied program processing method, device, storage medium and the terminal provided above the embodiment of the present invention is carried out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, above example Illustrate to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those skilled in the art, according to this The thought of invention, there will be changes in specific embodiments and applications, in summary, this specification content should It is interpreted as limitation of the present invention.

Claims (12)

1. a kind of applied program processing method, it is characterised in that comprise the following steps:
When detecting that terminal enters screen lock state, the current duration that the terminal is in screen lock state is obtained;
When the current duration is more than preset time threshold, it is determined that the application program currently run, be applied set;
The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from the set of applications;
Cache lock is carried out to the destination application.
2. applied program processing method as claimed in claim 1, it is characterised in that chosen from the set of applications using frequency Rate is more than the destination application of predeterminated frequency threshold value, including:
Determination there is currently the interactive application of data interaction from the set of applications;
The destination application that frequency of use is more than predeterminated frequency threshold value is chosen from candidate's application program, the candidate applies journey Sequence is the application program in addition to interactive application in the set of applications;
Cache lock is carried out to the destination application, including:
The running status of the interactive application is maintained, and cache lock is carried out to the destination application.
3. applied program processing method as claimed in claim 2, it is characterised in that the applied program processing method also wraps Include:
The history power consumption of remaining application program is obtained, the remaining application program is except the interaction should in the set of applications With the application program beyond program and the destination application;
The target residue application program that history power consumption is more than default power threshold is chosen from the remaining application program;
The target residue application program is closed.
4. applied program processing method as claimed in claim 1, it is characterised in that cached to the destination application Locking, including:
The secondary process for obtaining the host process of the destination application and being associated with host process;
Corresponding target time process is chosen from the secondary process;
The host process and the target time process to the destination application carries out cache lock.
5. applied program processing method as claimed in claim 4, it is characterised in that choose corresponding mesh from the secondary process Mark time process, including:
Obtain the history call number of the secondary process;
According to the history call number of secondary process, corresponding target time process is chosen from the secondary process.
6. the applied program processing method as described in claim any one of 1-5, it is characterised in that locked detecting that terminal enters Before screen state, the applied program processing method also includes:
Obtain user and screen locking, the historical behavior information of solution screen are carried out to terminal;
Determine that the time threshold of the terminal will not be used in preset time period by characterizing user according to the historical behavior information.
A kind of 7. application processing apparatus, it is characterised in that including:
Time-obtaining module, working as screen lock state is in for when detecting that terminal enters screen lock state, obtaining the terminal The preceding duration;
Using determining module, for when the current duration is more than preset time threshold, it is determined that the application currently run Program, be applied set;
Module is chosen, the destination application for being more than predeterminated frequency threshold value for choosing frequency of use from the set of applications;
Processing module, for carrying out cache lock to the destination application.
8. application processing apparatus as claimed in claim 7, it is characterised in that the selection module, including:
Interactive application chooses submodule, for determining to there is currently the interactive application journey of data interaction from the set of applications Sequence;
Submodule is chosen in conventional application, the target for being more than predeterminated frequency threshold value for choosing frequency of use from candidate's application program Application program, candidate's application program are the application program in addition to interactive application in the set of applications;
The application processing module, for maintaining the running status of the interactive application, and to the destination application Carry out cache lock.
9. application processing apparatus as claimed in claim 8, it is characterised in that also include:Electricity acquisition module and power consumption Application selection module;
The electricity acquisition module, for obtaining the history power consumption of remaining application program, the remaining application program is described Application program in set of applications in addition to the interactive application and the destination application;
The power consumption application selection module, it is more than default electricity threshold for choosing history power consumption from the remaining application program The target residue application program of value;
The application processing module, it is additionally operable to close the target residue application program.
10. application processing apparatus as claimed in claim 7, it is characterised in that the application processing module, including:
Process acquisition submodule, for the secondary process for obtaining the host process of the destination application and being associated with host process;
Process chooses submodule, for choosing corresponding target time process from the secondary process;
Process lock stator modules, delay for the host process to the destination application and the target time process Deposit locking.
11. a kind of storage medium, it is characterised in that the storage medium stores a plurality of instruction, and a plurality of instruction is suitable to counting When being run on calculation machine so that the computer performs the applied program processing method as described in claim 1 to 6 any one.
A kind of 12. terminal, it is characterised in that including processor and memory, a plurality of instruction of memory storage, the processing The application program that device is used to perform as described in claim 1 to 6 any one by the instruction loaded in the memory is handled Method.
CN201710643056.2A 2017-07-31 2017-07-31 Application processing method and device, storage medium and terminal Active CN107402791B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107402791A true CN107402791A (en) 2017-11-28
CN107402791B CN107402791B (en) 2020-05-12

Family

ID=60401418

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN107402791B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240763A (en) * 2018-08-20 2019-01-18 奇酷互联网络科技(深圳)有限公司 Application program accelerates method, mobile terminal and the storage medium of starting
WO2019024647A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Application program processing method and device, storage medium and terminal
CN111741053A (en) * 2020-04-22 2020-10-02 百度在线网络技术(北京)有限公司 Data pre-downloading method, device, server, terminal and storage medium
CN113115482A (en) * 2021-03-31 2021-07-13 影石创新科技股份有限公司 Terminal communication method and device based on android system, terminal and storage medium
CN115033304A (en) * 2022-06-27 2022-09-09 维沃移动通信有限公司 Application program control method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104580710A (en) * 2014-12-30 2015-04-29 中国农业科学院农业资源与农业区划研究所 Automatic power saving method based on learning operation habit of user
CN106125899A (en) * 2016-07-01 2016-11-16 北京金山安全软件有限公司 Method and device for stopping process and mobile terminal
CN106569585A (en) * 2016-11-07 2017-04-19 深圳市金立通信设备有限公司 Method and terminal of managing application program process
CN106919448A (en) * 2017-02-16 2017-07-04 北京小米移动软件有限公司 Using method for cleaning and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104580710A (en) * 2014-12-30 2015-04-29 中国农业科学院农业资源与农业区划研究所 Automatic power saving method based on learning operation habit of user
CN106125899A (en) * 2016-07-01 2016-11-16 北京金山安全软件有限公司 Method and device for stopping process and mobile terminal
CN106569585A (en) * 2016-11-07 2017-04-19 深圳市金立通信设备有限公司 Method and terminal of managing application program process
CN106919448A (en) * 2017-02-16 2017-07-04 北京小米移动软件有限公司 Using method for cleaning and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019024647A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Application program processing method and device, storage medium and terminal
CN109240763A (en) * 2018-08-20 2019-01-18 奇酷互联网络科技(深圳)有限公司 Application program accelerates method, mobile terminal and the storage medium of starting
CN111741053A (en) * 2020-04-22 2020-10-02 百度在线网络技术(北京)有限公司 Data pre-downloading method, device, server, terminal and storage medium
CN111741053B (en) * 2020-04-22 2023-06-23 百度在线网络技术(北京)有限公司 Data pre-downloading method, device, server, terminal and storage medium
CN113115482A (en) * 2021-03-31 2021-07-13 影石创新科技股份有限公司 Terminal communication method and device based on android system, terminal and storage medium
CN113115482B (en) * 2021-03-31 2022-11-22 影石创新科技股份有限公司 Terminal communication method and device based on android system, terminal and storage medium
CN115033304A (en) * 2022-06-27 2022-09-09 维沃移动通信有限公司 Application program control method and device and electronic equipment

Also Published As

Publication number Publication date
CN107402791B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN107402791A (en) Applied program processing method, device, storage medium and terminal
CN107450711A (en) Applied program processing method, device, storage medium and terminal
CN107249074A (en) Application program quick start method, mobile terminal and computer-readable recording medium
CN108205451A (en) application management method, device, storage medium and electronic equipment
CN106708554B (en) Program operating method and device
CN106776036A (en) A kind of resource allocation methods and device
CN110152299A (en) A kind of construction method and device of game resource
CN107479954A (en) process management method, device, storage medium and electronic equipment
CN102479207A (en) Information search method, system and device
CN106095489B (en) A kind of application control method and mobile terminal
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN107450952B (en) Using management-control method, device, storage medium and electronic equipment
CN107479951A (en) Process management-control method, device, storage medium and electronic equipment
CN107436948A (en) File search method, device and terminal
CN107463435A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN107786738B (en) Network control method and equipment
Fedchenko et al. Feedforward neural networks for caching: N enough or too much?
CN102436457A (en) Method and equipment for distributing progresses of browser
CN107329901A (en) Packet grasping means, terminal, server and storage medium
CN106997351A (en) A kind of caching resource management method and system and device
CN111459565B (en) Client page rendering method and device and mobile terminal
CN107133065A (en) A kind of method and device for opening software function
CN108334330A (en) Using discharging method, device, storage medium and electronic equipment
US20220300328A1 (en) Application optimization method and device, storage medium, and electronic equipment
CN107577712A (en) The method, apparatus and computer equipment of a kind of loading page

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant