CN109388487A - Applied program processing method and device, electronic equipment, computer readable storage medium - Google Patents

Applied program processing method and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN109388487A
CN109388487A CN201811204974.6A CN201811204974A CN109388487A CN 109388487 A CN109388487 A CN 109388487A CN 201811204974 A CN201811204974 A CN 201811204974A CN 109388487 A CN109388487 A CN 109388487A
Authority
CN
China
Prior art keywords
application
freeze
moment
list
program
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
CN201811204974.6A
Other languages
Chinese (zh)
Other versions
CN109388487B (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.)
Zeku Technology Shanghai 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 CN201811204974.6A priority Critical patent/CN109388487B/en
Publication of CN109388487A publication Critical patent/CN109388487A/en
Application granted granted Critical
Publication of CN109388487B publication Critical patent/CN109388487B/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

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

Abstract

The application provides a kind of application program method, apparatus, electronic equipment, computer readable storage medium.Freeze list the described method includes: obtaining, wherein described to freeze list for storing the application identities of background application and corresponding freezing the moment;From it is described freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, identified as target application;When the current time reaches that target application mark is corresponding to freeze the moment, freezes the target application and identify corresponding background application.Above-mentioned application program method, apparatus, electronic equipment, computer readable storage medium, can more accurately be handled application program.

Description

Applied program processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of applied program processing method, device, electronics Standby, computer readable storage medium.
Background technique
Application program can be installed, various application operatings may be implemented in the application program of installation in electronic equipment. For example, can be done shopping by the application program installed in electronic equipment, listened to music, see video, play games.Application program , can be in front stage operation when operation in the electronic device, it can also be in running background.Application program in front stage operation, It can be shown in the interface of electronic equipment, user can operate application program by the interface of displaying.Using Program will not be generally shown, user can not pass through electronic equipment in running background in the interface of electronic equipment Interface operates application program.
Summary of the invention
The embodiment of the present application provides a kind of application program method, apparatus, electronic equipment, computer readable storage medium, can More accurately to handle application program.
A kind of applied program processing method, comprising:
List is freezed in acquisition, wherein described to freeze list for storing the application identities of background application and corresponding Freeze the moment;
From it is described freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, as mesh Mark application identities;
When the current time reaches that target application mark is corresponding to freeze the moment, freeze the target application mark Know corresponding background application.
A kind of application processing apparatus, comprising:
List obtains module, freezes list for obtaining, wherein described to freeze list for storing background application Application identities and corresponding freeze the moment;
Identifier acquisition module, for from it is described freeze to obtain in list nearest freeze corresponding to the moment apart from current time Application identities, as target application identify;
Using freezing module, for when the current time reaches that the target application mark is corresponding to freeze the moment, Freeze the target application and identifies corresponding background application.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes following steps:
List is freezed in acquisition, wherein described to freeze list for storing the application identities of background application and corresponding Freeze the moment;
From it is described freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, as mesh Mark application identities;
When the current time reaches that target application mark is corresponding to freeze the moment, freeze the target application mark Know corresponding background application.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
List is freezed in acquisition, wherein described to freeze list for storing the application identities of background application and corresponding Freeze the moment;
From it is described freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, as mesh Mark application identities;
When the current time reaches that target application mark is corresponding to freeze the moment, freeze the target application mark Know corresponding background application.
Above-mentioned application program method, apparatus, electronic equipment, computer readable storage medium, can be more accurately to application Program is handled, and can be stored the application identities of background application by freezing list and corresponding be freezed the moment.Then From freezing in list for acquisition, obtain apart from current time it is nearest freeze application identities corresponding to the moment, answered as target With mark.Current time reach target application mark it is corresponding freeze the moment when, by the target application identify it is corresponding Background application freezes.Application program can be accurately controlled by freezing list in this way to freeze, avoid electronic equipment corresponding The resource occupation of electronic equipment is reduced to realize the accuracy for improving and handling application program with the unitized processing of program.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of applied program processing method in one embodiment;
Fig. 2 is the flow chart of applied program processing method in another embodiment;
Fig. 3 is the schematic diagram for freezing list in one embodiment;
Fig. 4 is the flow chart of applied program processing method in another embodiment;
Fig. 5 is the structural schematic diagram of application processing apparatus in one embodiment;
Fig. 6 is the structural schematic diagram of application processing apparatus in another embodiment;
Fig. 7 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, first can be freezed to be known as second freezing the moment constantly, and similarly, Second can be freezed to be known as freezing the moment constantly.First, which freezes the moment and second, freezes moment both client, but it is not It is same to freeze the moment.
Fig. 1 is the flow chart of applied program processing method in one embodiment.As shown in Figure 1, the application program processing side Method includes step 102 to step 106.Wherein:
Step 102, it obtains and freezes list, wherein freeze list for storing the application identities of background application and right That answers freezes the moment.
Application program (Application, APP) refers to the software write in electronic equipment for certain application purpose, Electronic equipment can realize the Demand and service to user by application program.For example, user can pass through game class application program Game is played, video can also be seen by video class application program, music etc. can also be played by music class application program.Using Program can be divided into foreground application and background application according to the state of operation.
Foreground application refers to the application program in the front stage operation of electronic equipment, and foreground application can be at interface Upper display is simultaneously interacted with user's realization.Background application refers in the application program of the running background of electronic equipment, answers from the background It cannot generally be shown on interface with program, user can not operate application program by the interface of electronic equipment.
Application program can be frozen, and frozen application program is not turned off, but not run temporarily.In freezing The application program of state is not take up the processor resource of electronic equipment, but memory and hardware of still occupancy electronic equipment etc. provide Source.Therefore, electronic equipment can freeze the application program not run temporarily during running application program, with Reduce the resource occupation in electronic equipment.
In one embodiment, it can store in electronic equipment and freeze list, this freezes list for managing electronic equipment Application program is freezed to handle.Specifically, may include the application mark of one or more background applications in electronic equipment Know, each application identities store it is corresponding freeze the moment, by the application identities and freeze constantly to control background application journey Sequence is freezed.
Step 104, from freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, make For target application mark.
In the embodiment of the present application, electronic equipment can define a thread, and the reading constantly recycled by the thread Freeze list, is identified to obtain and freeze to freeze in list the application identities at moment closest to current time as target application. Then the clock for constantly reading electronic equipment obtains current time, and the current time that will acquire is corresponding with target application mark Freeze to be compared constantly, application program is controlled according to comparison result and is freezed.
Step 106, current time reach target application mark it is corresponding freeze the moment when, freeze target application mark pair The background application answered.
Specifically, electronic equipment can be read a current time at interval of certain time length, then by current time and target Application program is corresponding to be freezed to be compared constantly, judges whether current time reaches above-mentioned and freeze the moment.It is arrived at current time Up to it is above-mentioned freeze the moment when, just freeze the corresponding background application of above-mentioned destination application.
For example, after getting and freezing list, get that target application mark is corresponding to be freezed constantly as " 12:00 " (point: the second).Then electronic equipment can be at interval of 1 second current time of reading, and by the current time of reading and when freezing Quarter is compared, and when current time reaches this and freezes the moment, just freezes the target application and identifies corresponding background application.
Background application after freezing can also be defrosted, and the background application after being defrosted again can be normal Ground operation.For example, when detecting that frozen background application is switched to foreground, by the frozen background application journey Sequence is thawed.Or background application was frozen after a period of time, automatically solved the frozen background application Freeze.
Applied program processing method provided by the above embodiment can store answering for background application by freezing list With mark and corresponding freeze the moment.Then freeze in list from acquisition, obtain apart from current time it is nearest freeze the moment Corresponding application identities are identified as target application.It reaches target application at current time and identifies and corresponding freeze moment When, which is identified into corresponding background application and is freezed.It can be accurately controlled by freezing list and be answered in this way Freezed with program, avoid unitized processing of the electronic equipment to application program, to realize the standard for improving and handling application program True property, reduces the resource occupation of electronic equipment.
Fig. 2 is the flow chart of applied program processing method in another embodiment.As shown in Fig. 2, the application program is handled Method includes step 202 to step 214.Wherein:
Step 202, when detecting that the first application program is switched to backstage from foreground, the first application program is obtained from foreground It is switched to the switching moment on backstage.
During electronic equipment runs application program, the operating status of application program is changed in real time 's.For example, the application program of front stage operation may be switched to backstage, the application program of running background may be switched to foreground. Therefore, whether the operating status that electronic equipment need to ceaselessly detect application program changes, in the fortune for detecting application program When row state changes, adjustment is gone to freeze the application identities in list in real time.
Step 204, obtain that the first application program is corresponding freezes the moment according to switching moment, and by the first application program pair The application identities answered and freezes to store constantly and freeze in list.
Specifically, electronic equipment can monitor the operating condition of the application program of front stage operation, when detecting front stage operation The first application program when being switched to backstage from foreground, obtain the switching moment that the first application program is switched to backstage from foreground, And obtained and freezed the moment according to the switching moment, then freeze moment application identities corresponding with the first application program for what is obtained It stores and freezes in list.It will be appreciated that the application identities and freeze be constantly according to freeze in list put in order into Row insertion, it is just able to maintain freezes putting in order for application program in list in this way.
For example, be spaced at the time of application program is switched to backstage from foreground at the time of freezing the application program when It is long, it is pre-set changeless value.So, every time when being inserted into application identities and freezing the moment, so that it may Directly application identities and it will freeze to be inserted into the last bit for freezing list constantly.
In one embodiment, obtaining the step of freezing the moment according to switching moment can specifically include: obtain default freeze It ties duration, and according to switching moment and presets and freeze duration calculation and be applied that program is corresponding to freeze the moment;Or obtain first The application level of application program is freezed duration according to application level acquisition is corresponding, and is freezed according to switching moment with what is obtained Duration calculation obtains that the first application program is corresponding to freeze the moment.
Freeze duration to refer at the time of preset application program is switched to backstage from foreground to frozen at the time of institute The duration at interval.Freezing duration can be that user is preset, can also be selected at random with electronic equipment, can also be basis What the operating condition of background application obtained, it can also be and obtain by other means, it is not limited here.
For example, electronic equipment can test the operating condition of the background application of history run, backstage is obtained Generally after running background 15 seconds, the active value of operation starts to be reduced to a smaller value application program.Namely explanation Application program can be reduced to a smaller value generally after running background 15 seconds, to the resources occupation rate of electronic equipment. It is so default to freeze duration and be set as 15 seconds.Assuming that switching moment is " 12:00 " (dividing: the second), then freezing the moment just It is to add 15 seconds, i.e. " 12:15 " (dividing: the second) on the basis of switching moment.
In other embodiments provided by the present application, when can also be freezed according to the acquisition of the application level of the first application program It is long, then further according to freezing duration and switching moment calculates and freezes the moment.Application level is used to indicate the important etc. of application program Grade.For example, the application level of system level application is higher than the application level of third party application, that is, indicate system-level application The important level of program is higher than the important level of third party application.Specifically, electronic equipment can be preset using journey Then the application level of sequence and the corresponding relationship for freezing duration obtain corresponding freeze according to the application level of the first application program Duration calculates further according to freeze duration and the switching moment of acquisition and freezes the moment.For example, application level is higher, it is corresponding to freeze Duration is longer.
Step 206, when detect the second application program from when being switched to foreground or the second application program out of service from the background, It obtains from being switched to application identities corresponding to second application program on foreground from the background.
Electronic equipment can monitor the operating status of application program, when detecting that second in background application answers With program from be switched to from the background foreground or it is out of service when, illustrate that second application program no longer needs to be freezed, then can will The application identities of second application program are from freezing to delete in list.
Step 208, by the corresponding application identities of the second application program and freeze the moment from freezing to delete in list.
Specifically, after getting the application identities of the second application program, from freezing to search this in list second using journey The application identities of sequence, and by the application identities found and it is corresponding freeze the moment, then by application identities found and right That answers freezes the moment from freezing to delete in list.By the corresponding application identities of the second application program and freeze the moment from freezing list After middle deletion, i.e., without carrying out freezing to handle the second application program.
It is understood that freezing after list generates, electronic equipment can also be at any time according to operating condition to freezing to arrange Freeze to be adjusted constantly in table.Specifically, statistics freezes the mark quantity for the application identities for including in list, and according to mark The each application identities of knowledge quantity adjusting are corresponding to freeze the moment.The mark quantity for freezing the application identities for including in list reflects The quantity of background application, the mark quantity for freezing the application identities for including in list is more, illustrates the background application of operation The quantity of program is more namely the resource occupation of electronic equipment is more.
Therefore, the moment can be freezed to adjust according to mark quantity.For example, can be incited somebody to action when mark quantity is more Freeze to turn down constantly, thus can rapidly freeze background application, to reduce the resource occupation of electronic equipment.
Specifically, multiple quantity sections can be divided into mark quantity in advance, then establishes each quantity section and adjust Save the corresponding relationship of duration.When the mark quantity for the application identities for freezing to include in list is greater than amount threshold, the mark is determined Know the corresponding adjusting duration in quantity section that quantity is fallen into, and application identities pair in list are freezed according to adjusting duration reduction That answers freezes the moment.For example, being obtained a length of when mark 10 corresponding adjusting of quantity when freezing in list comprising 10 application identities 5 seconds, then each for freezing to include in list can freeze to the moment to be cut 5 seconds.
Step 210, it obtains and freezes list.
List is freezed in storage in electronic equipment, and freezes list records by this and need answering for the background application freezed Freeze the moment with corresponding with mark.Specifically, freezing to cut with corresponding storage background application from foreground in list The switching moment on backstage is changed to, it is not limited here.
Step 212, according to freezing constantly to be ranked up the application identities for freezing to store in list, from freezing after sequence List read apart from current time it is nearest freeze application identities corresponding to the moment, identified as target application.
Freeze to store in list one or more application mark and it is corresponding freeze the moment, in order to more easily search Application identities, can be according to freezing constantly to be ranked up the application identities for freezing to store in list.Specifically, can be according to jelly The moment is tied by being ranked up as far as close sequence to application identities, it can also be according to freezing the sequence of moment from the near to the remote to application Mark is ranked up, it is not limited here.
According to freezing after application identities sort constantly, can from after sequence freeze to read in list apart from it is current when Carve it is nearest freeze application identities corresponding to the moment, identified as target application.That is, according to freezing constantly to application After mark is ranked up, freezing the moment apart from the time interval at current time is also to gradually change according to collating sequence, just The first place freezed in list or last bit application identities after sequence can be read directly, identify as target application.
For example, according to freezing constantly to be ranked up application identities, sort more forward application identities, corresponding when freezing It carves closer to current time, then the first application identities of freezing to sort in list can be directly acquired, as target application Mark.
In one embodiment, electronic equipment can realize looper mechanism by a thread, pass through looper mechanism Constantly circulation, which is read, freezes list " freeze_list ".This freezes to store one or more in list " freeze_list " Data structure " freeze_unit ", each data structure " freeze_unit " are used to store the UID of background application (User Identification, user identity), packet name, the switching moment that backstage is switched to from foreground freeze the letter such as constantly Breath.
Wherein, application identities can be identified by UID and/packet name, " the freeze_ in " freeze_list " Unit " is arranged according to freezing the sequence of moment from the near to the remote.Looper mechanism can be directly read in this way Application identities in " freeze_unit " of sequence first place in " freeze_list ", identify as target application.
Fig. 3 is the schematic diagram for freezing list in one embodiment.As shown in figure 3, this freezes to be had recorded in list using mark Know 302 and freeze the moment 304, and application identities 302 are ranked up according to the moment 304 is freezed.By freezing in list in Fig. 3 The moment 304 of freezing of storage is sorted " on 08 12nd, 2018 14:00:12 " → " 2018 08 as follows according to time order and function Moon 14:00:20 " on the 12nd → " on 08 12nd, 2018 14:00:25 " → " on 08 12nd, 2018 14:00:31 ", then application is marked Knowing 302 can be arranged according to above-mentioned collating sequence.
Step 214, current time reach target application mark it is corresponding freeze the moment when, freeze target application mark pair The background application answered.
Get target application mark it is corresponding freeze the moment after, electronics can constantly be read by above-mentioned thread Clock in equipment obtains current time.When the current time of acquisition arrival target application mark is corresponding freezes the moment, just Freeze the target application and identifies corresponding background application.For example, obtain target application mark it is corresponding freeze be constantly " 15:20:10 on the 25th of September in 2018 ", then above-mentioned thread can be at interval of 1 second current time of reading, when current When being carved into up to " 15:20:10 on the 25th of September in 2018 ", the corresponding background application of above-mentioned destination application is freezed.
In one embodiment, after the corresponding background application of target application mark is frozen, target can be answered With mark and corresponding freeze the moment from freezing to delete in list.Target application identifies corresponding background application and is frozen it Afterwards, it can also be waken up, the background application after being waken up can be restored to normal operating status again.For example, user can Frozen background application is waken up with manual, one is also can be set and freezes duration, be frozen in background application Duration reaches above-mentioned when freezing duration, and the background application freezed is waken up.
Applied program processing method provided by the above embodiment can store answering for background application by freezing list With mark and corresponding freeze the moment.Then freeze in list from acquisition, obtain apart from current time it is nearest freeze the moment Corresponding application identities are identified as target application.It reaches target application at current time and identifies and corresponding freeze moment When, which is identified into corresponding background application and is freezed.It can be accurately controlled by freezing list and be answered in this way Freezed with program, avoid unitized processing of the electronic equipment to application program, to realize the standard for improving and handling application program True property, reduces the resource occupation of electronic equipment.
In one embodiment, as shown in figure 4, above-mentioned freeze to may include first constantly and freeze the moment and second when freezing It carves, first freezes to can specifically include the step of freezing the moment less than second constantly, background application is freezed:
Step 402, when current time arrival target application mark corresponding first freezes the moment, target application mark is controlled Know corresponding background application and enter resource constraint state, wherein the application program in resource constraint state sets electronics Standby resources occupation rate is less than occupancy threshold.
In embodiment provided by the present application, application identities, first can freeze to the moment and second freezes to correspond to constantly Ground is stored, and first freezes to enter resource constraint state for controlling application program constantly, and second freezes constantly for controlling Application program is freezed.Specifically, resource refers to the software that electronic equipment must be used when handling application affairs or hardware money Source, such as CPU (Central Processing Unit, central processing unit), the memory (Memory), hardware, net of electronic equipment Network resource, IO (Input-Output, input and output) etc..
Application program in frozen state is not turned off, and is not run temporarily only.If application program, which is in, freezes shape State, then application program is not take up processor resource, but still occupies the resources such as memory and the hardware of electronic equipment.Resource constraint State refers to the state that the resource of the electronic equipment used at runtime application program is limited, and is in resource constraint state Application program occupancy threshold is less than to the resources occupation rate of electronic equipment.Such as control application program uses at runtime CPU usage no more than 5%.
Electronic equipment can control when detecting that current time arrival target application mark corresponding first freezes the moment Target application identifies corresponding background application and enters resource constraint state.Background application in resource constraint state It is smaller to the resources occupation rate of electronic equipment, it can prevent the resource of electronic equipment from being occupied too much in this way.
Step 404, when current time arrival target application mark corresponding second freezes the moment, freeze target application mark Know corresponding background application.
Enter resource constraint state in background application and then freezes to compare constantly with second by current time Compared with.When the moment is freezed in current time arrival second, freezes the target application and identify corresponding background application.
In one embodiment, freeze constantly to include first freezing the moment and second when freezing the moment, it can be according to first Freeze constantly to be ranked up the application identities for freezing to store in list, then work as from the reading distance in list of freezing after sequence The preceding moment it is nearest first freeze application identities corresponding to the moment, identified as target application.First is reached at current time When freezing the moment, control destination application enters resource constraint state, and target application mark and corresponding second are freezed Moment is added to one and new freezes in list.
The new destination application for freezing to store in list freezes to be ranked up constantly according to second, then obtain away from Second nearest from current time freezes the mark of target application corresponding to the moment and is used as application identities to be freezed.Electronic equipment meeting Monitor whether current time reaches and above-mentioned freeze the moment wait freeze corresponding to application identities second in real time.It is reached at current time It is above-mentioned when freezing corresponding to application identities second and freezing the moment, freeze above-mentioned to answer wait freeze backstage corresponding to application identities Use program.
It should be understood that although each step in the flow chart of Fig. 1,2,4 is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 1,2,4 extremely Few a part of step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps Moment executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage is also not necessarily It successively carries out, but in turn or can be handed over at least part of the sub-step or stage of other steps or other steps Alternately execute.
Fig. 5 is the structural schematic diagram of application processing apparatus in one embodiment.As shown in figure 5, at the application program Reason device 500 includes that module 506 is freezed in list acquisition module 502, identifier acquisition module 504 and application.Wherein:
List obtains module 502, freezes list for obtaining, wherein described to freeze list for storing background application journey The application identities of sequence and corresponding freeze the moment.
Identifier acquisition module 504, for from it is described freeze to obtain in list apart from current time it is nearest freeze moment institute Corresponding application identities are identified as target application.
Using module 506 is freezed, for reaching at the current time, the target application mark is corresponding to freeze the moment When, freeze the target application and identifies corresponding background application.
Application processing apparatus provided by the above embodiment can store answering for background application by freezing list With mark and corresponding freeze the moment.Then freeze in list from acquisition, obtain apart from current time it is nearest freeze the moment Corresponding application identities are identified as target application.It reaches target application at current time and identifies and corresponding freeze moment When, which is identified into corresponding background application and is freezed.It can be accurately controlled by freezing list and be answered in this way Freezed with program, avoid unitized processing of the electronic equipment to application program, to realize the standard for improving and handling application program True property, reduces the resource occupation of electronic equipment.
Fig. 6 is the structural schematic diagram of application processing apparatus in another embodiment.As shown in fig. 6, the application program Processing unit 600 includes that module is freezed in List Generating Module 602, list acquisition module 604, identifier acquisition module 606 and application 608.Wherein:
List Generating Module 602 obtains described for when detecting that the first application program is switched to backstage from foreground One application program is switched to the switching moment on backstage from foreground;It is corresponding that first application program is obtained according to the switching moment Freeze the moment, and the corresponding application identities of first application program and will freeze to store described freeze in list constantly.
List obtains module 604, freezes list for obtaining, wherein described to freeze list for storing background application journey The application identities of sequence and corresponding freeze the moment.
Identifier acquisition module 606, for from it is described freeze to obtain in list apart from current time it is nearest freeze moment institute Corresponding application identities are identified as target application.
Using module 608 is freezed, for reaching at the current time, the target application mark is corresponding to freeze the moment When, freeze the target application and identifies corresponding background application.
Application processing apparatus provided by the above embodiment can be accurately controlled application program jelly by freezing list Knot, avoids unitized processing of the electronic equipment to application program, to realize the accuracy for improving and handling application program, reduces The resource occupation of electronic equipment.
In one embodiment, List Generating Module 602 be also used to obtain it is default freezes duration, and when according to the switching It carves and obtains that the application program is corresponding to freeze the moment with default duration calculation of freezing;Or obtain answering for first application program With grade, freeze duration according to first application level acquisition is corresponding, and according to the switching moment and acquisition Freeze duration calculation and obtains that first application program is corresponding to freeze the moment.
In one embodiment, List Generating Module 602 is also used to when detecting the second application program from being switched to from the background When foreground or second application program out of service, obtains from being switched to corresponding to second application program on foreground from the background and answer With mark;By the corresponding application identities of second application program and freezes the moment and from described freeze to delete in list.
In one embodiment, List Generating Module 602 is also used to count described and freezes the application identities for including in list Mark quantity, and adjust according to the mark quantity that each application identities are corresponding to freeze the moment.
In one embodiment, identifier acquisition module 606 is also used to freeze to freeze described in list constantly according to described The application identities of storage are ranked up, from after sequence freeze to read in list apart from current time it is nearest to freeze moment institute right The application identities answered are identified as target application.
In one embodiment, it is also used to reach the target application mark at the current time using freezing module 608 When knowing corresponding first and freezing the moment, controls the target application and identify corresponding background application and enter resource constraint shape State, wherein the application program in the resource constraint state is less than occupancy threshold to the resources occupation rate of electronic equipment;
When the current time arrival target application mark corresponding second freezes the moment, freezes the target and answer With the corresponding background application of mark.
The division of modules is only used for for example, in other embodiments in above-mentioned application processing apparatus, can Application processing apparatus is divided into different modules as required, with complete above-mentioned application processing apparatus whole or Partial function.
Specific about application processing apparatus limits the limit that may refer to above for applied program processing method Fixed, details are not described herein.Modules in above-mentioned application processing apparatus can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
The realization of the modules in application processing apparatus provided in the embodiment of the present application can be computer program Form.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in On the memory of terminal or server.When the computer program is executed by processor, side described in the embodiment of the present application is realized The step of method.
The embodiment of the present application also provides a kind of electronic equipment.As shown in fig. 7, for ease of description, illustrating only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone For:
Fig. 7 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to Fig. 7, Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 710, memory 720, input unit 730, display unit 740, passes Sensor 750, voicefrequency circuit 760, Wireless Fidelity (wireless fidelity, WiFi) module 770, processor 780, Yi Ji electricity The components such as source 790.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 7 does not constitute the restriction to mobile phone Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 710 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 780;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 710 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 720 can be used for storing software program and module, and processor 780 is stored in memory 720 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 720 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 720 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 730 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 700 And the related key signals input of function control.Specifically, input unit 730 may include touch panel 731 and other inputs Equipment 732.Touch panel 731, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 731 or near touch panel 731), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 731 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 780, and can receive order that processor 780 is sent and be executed.In addition, Touch panel 731 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 731, input unit 730 can also include other input equipments 732.Specifically, other input equipments 732 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 740 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 740 may include display panel 741.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 741.In one embodiment, touch panel 731 can cover display panel 741, when touch panel 731 is examined After measuring touch operation on it or nearby, processor 780 is sent to determine the type of touch event, is followed by subsequent processing device 780 provide corresponding visual output according to the type of touch event on display panel 741.Although in Fig. 7, touch panel 731 and display panel 741 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 731 and display panel 741 and that realizes mobile phone output and input function.
Mobile phone 700 may also include at least one sensor 750, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 741, and proximity sensor can close display panel when mobile phone is moved in one's ear 741 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 760, loudspeaker 761 and microphone 762 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 761, be converted to sound by loudspeaker 761 by road 760 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 762, is turned after being received by voicefrequency circuit 760 It is changed to audio data, then by after the processing of audio data output processor 780, another mobile phone can be sent to through RF circuit 710, or Person exports audio data to memory 720 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 770 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7 is shown WiFi module 770, but it is understood that, and it is not belonging to must be configured into for mobile phone 700, it can according to need and omit.
Processor 780 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 720, and call and be stored in memory 720 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 780 may include one or more processing units.In one embodiment, processor 780 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 780.
Mobile phone 700 further includes the power supply 790 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 780 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 700 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 780 included by the electronic equipment executes the calculating of storage on a memory The step of applied program processing method is realized when machine program.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the step of processor executing application processing method.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes application Program processing method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of applied program processing method characterized by comprising
List is freezed in acquisition, wherein described to freeze list for storing the application identities of background application and corresponding freezing Moment;
From it is described freeze to obtain in list apart from current time it is nearest freeze application identities corresponding to the moment, answered as target With mark;
When the current time reaches that target application mark is corresponding to freeze the moment, freeze the target application mark pair The background application answered.
2. the method according to claim 1, wherein described freeze to obtain in list apart from current time from described Nearest freezes application identities corresponding to the moment, identifies as target application, comprising:
Freeze constantly to be ranked up the application identities for freezing to store in list according to described, freezes list from after sequence It is middle read apart from current time it is nearest freeze application identities corresponding to the moment, identified as target application.
3. the method according to claim 1, wherein described freeze to freeze moment and the second jelly including first constantly It ties the moment, described first freezes to freeze the moment less than described second constantly;
It is described when the current time reaches that target application mark is corresponding to freeze the moment, freeze the target application mark Know corresponding background application, comprising:
When the current time arrival target application mark corresponding first freezes the moment, the target application mark is controlled Know corresponding background application and enter resource constraint state, wherein the application program in the resource constraint state is to electricity The resources occupation rate of sub- equipment is less than occupancy threshold;
When the current time arrival target application mark corresponding second freezes the moment, freeze the target application mark Know corresponding background application.
4. the method according to claim 1, wherein the method also includes:
When detecting that the first application program is switched to backstage from foreground, after acquisition first application program is switched to from foreground The switching moment of platform;
Obtain that first application program is corresponding to be freezed the moment according to the switching moment, and by first application program pair The application identities answered and freeze to store described freeze in list constantly.
5. according to the method described in claim 4, it is characterized in that, described obtain first application according to the switching moment Program is corresponding to freeze the moment, comprising:
Obtain it is default freezes duration, and duration calculation freezed according to switching moment and presetting to obtain the application program corresponding Freeze the moment;Or
The application level for obtaining first application program, according to first application level obtain it is corresponding freeze duration, and Freeze duration calculation described in obtaining according to the switching moment and obtains that first application program is corresponding to freeze the moment.
6. the method according to claim 1, wherein the method also includes:
When detecting that the second application program from when being switched to foreground or second application program out of service from the background, obtains from rear Platform is switched to application identities corresponding to second application program on foreground;
By the corresponding application identities of second application program and freezes the moment and from described freeze to delete in list.
7. method according to any one of claim 1 to 6, which is characterized in that the method also includes:
Freeze the mark quantity for the application identities for including in list described in statistics, and each described according to mark quantity adjusting Application identities are corresponding to freeze the moment.
8. a kind of application processing apparatus characterized by comprising
List obtains module, freezes list for obtaining, wherein described to freeze list for storing the application of background application Mark and corresponding freeze the moment;
Identifier acquisition module, for from it is described freeze to obtain in list apart from current time it is nearest freeze to answer corresponding to the moment With mark, identified as target application;
Using freezing module, for freezing when the current time reaches that the target application mark is corresponding to freeze the moment The target application identifies corresponding background application.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor executes the step of the method as described in any one of claims 1 to 7 Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201811204974.6A 2018-10-16 2018-10-16 Application program processing method and device, electronic equipment and computer readable storage medium Active CN109388487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811204974.6A CN109388487B (en) 2018-10-16 2018-10-16 Application program processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811204974.6A CN109388487B (en) 2018-10-16 2018-10-16 Application program processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109388487A true CN109388487A (en) 2019-02-26
CN109388487B CN109388487B (en) 2020-12-22

Family

ID=65427420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811204974.6A Active CN109388487B (en) 2018-10-16 2018-10-16 Application program processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109388487B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256119A (en) * 2019-07-02 2021-01-22 中兴通讯股份有限公司 Application program freezing control method and device, terminal and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007108065A1 (en) * 2006-03-17 2007-09-27 Fujitsu Limited Server management method, program, and device
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 Application program management method and electronic equipment
CN106155788A (en) * 2016-06-28 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and terminal unit
CN106201683A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of manage the method for application, device and terminal
CN106547615A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of management method and management module of background application
CN107329772A (en) * 2017-05-16 2017-11-07 广东小天才科技有限公司 Application program management method and device of mobile terminal
CN107436805A (en) * 2016-05-27 2017-12-05 宇龙计算机通信科技(深圳)有限公司 A kind of method and device for freezing application
CN107943571A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Background application management-control method, device, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007108065A1 (en) * 2006-03-17 2007-09-27 Fujitsu Limited Server management method, program, and device
CN107436805A (en) * 2016-05-27 2017-12-05 宇龙计算机通信科技(深圳)有限公司 A kind of method and device for freezing application
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 Application program management method and electronic equipment
CN106155788A (en) * 2016-06-28 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and terminal unit
CN106201683A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of manage the method for application, device and terminal
CN106547615A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of management method and management module of background application
CN107329772A (en) * 2017-05-16 2017-11-07 广东小天才科技有限公司 Application program management method and device of mobile terminal
CN107943571A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Background application management-control method, device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256119A (en) * 2019-07-02 2021-01-22 中兴通讯股份有限公司 Application program freezing control method and device, terminal and readable storage medium
US12032429B2 (en) 2019-07-02 2024-07-09 Xi'an Zhongxing New Software Co., Ltd. Application program freezing control method and apparatus, terminal, and readable storage medium

Also Published As

Publication number Publication date
CN109388487B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN103024205B (en) Method, device and terminal for controlling power
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN108616653B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108112063A (en) Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN106412093A (en) Method, device and system for uploading data
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN112148579B (en) User interface testing method and device
CN108988909A (en) Audio-frequency processing method and device, electronic equipment, computer readable storage medium
CN109992370A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109445917A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN108334345A (en) Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN109992323A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110022405A (en) Radio frequency parameter method of adjustment, device and storage medium
CN107708092B (en) Flow information update method and device, terminal, computer readable storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing
CN107491349B (en) Applied program processing method and device, computer equipment, storage medium
CN104244448B (en) Reduce the method and system of data transmission delay
CN108549576A (en) File monitor method, apparatus, electronic equipment and storage medium
CN109992363A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109388487A (en) Applied program processing method and device, electronic equipment, computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210609

Address after: Room 01, 8th floor, No.1 Lane 61, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee after: Zheku Technology (Shanghai) Co., Ltd

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

Patentee before: OPPO Guangdong Mobile Communications Co.,Ltd.

TR01 Transfer of patent right