CN106125882B - Application program management method and electronic equipment - Google Patents

Application program management method and electronic equipment Download PDF

Info

Publication number
CN106125882B
CN106125882B CN201610423786.7A CN201610423786A CN106125882B CN 106125882 B CN106125882 B CN 106125882B CN 201610423786 A CN201610423786 A CN 201610423786A CN 106125882 B CN106125882 B CN 106125882B
Authority
CN
China
Prior art keywords
application program
preset condition
electronic equipment
meeting
backstage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610423786.7A
Other languages
Chinese (zh)
Other versions
CN106125882A (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201610423786.7A priority Critical patent/CN106125882B/en
Publication of CN106125882A publication Critical patent/CN106125882A/en
Application granted granted Critical
Publication of CN106125882B publication Critical patent/CN106125882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an application program management method and electronic equipment, wherein the method comprises the steps of determining an application program meeting a first preset condition, sending a freezing signal to a process group of the application program meeting the first preset condition to freeze the application program meeting the first preset condition according to the freezing signal, wherein the application program meeting the first preset condition is an application program which does not need to run in a background of the electronic equipment. By adopting the management method for the application program, the application program meeting the first preset condition can be frozen, so that the power consumption of the electronic equipment is reduced, the electric quantity is saved, the standby time of the electronic equipment is prolonged, the application program which does not need to run in the background is frozen, the utilization efficiency of the resources of the electronic equipment is improved, and the condition that the electronic equipment is randomly stuck is effectively avoided.

Description

A kind of management method and electronic equipment of application program
Technical field
The present invention relates to a kind of electronic equipments that can reduce randomness Caton occur and reduce electronic equipment power consumption The management method and electronic equipment of application program.
Background technique
Existing calculating equipment (such as mobile intelligent terminal) supports multiple utility program to run simultaneously, what these ran simultaneously In application program, some runs on the foreground for calculating equipment, can be directly viewable and be operated by user, we term it foreground applications Program;Some then runs on the backstage for calculating equipment dumbly, will not interfere operation of the user to foreground application, we claim Be background application.
In general, background application, which can occupy, calculates the certain resource of equipment, such as memory source, electric power resource or net Network resource etc., and influence whether to calculate the operational efficiency of equipment.
In the technical solution for calculating the management of equipment background application provided by the prior art, background application can not be allowed Program receives the operations such as broadcast message, release GPS resource.
But certain background applications do not need to receive broadcast message or GPS resource when running background , so, even if broadcast message and release GPS resource, the background application can not be received by controlling the background application , easily there is randomness Caton so as to cause equipment and reduces the continuation of the journey of equipment in the resource that still will continue to occupy electronic equipment Time.
Summary of the invention
The embodiment of the invention provides a kind of management method of application program and electronic equipments, to reduce the application on backstage The occupied resource of program, reduces the consumption of electricity.
The embodiment of the invention provides a kind of management methods of application program, wherein includes:
Determine that the application program for meeting the first preset condition, the application program for meeting the first preset condition are not need In the application program of the running background of electronic equipment;
Freeze signal is sent to the process group of the application program for meeting the first preset condition, so that described meet first The application program of preset condition is freezed according to the freeze signal.
Optionally, before the determining application program for meeting the first preset condition, the method also includes:
Judge whether application program is greater than or equal to preset duration in the runing time on the backstage of the electronic equipment;
If runing time of the application program on the backstage of the electronic equipment is greater than or equal to the preset duration, The step of executing the determining application program for meeting the first preset condition.
Optionally, the determining application program for meeting the first preset condition includes:
Judging the application program for being greater than or equal to the preset duration in the runing time on the backstage of the electronic equipment is It is no to meet first preset condition;
If the application program that the runing time on the backstage of the electronic equipment is greater than or equal to the preset duration meets First preset condition then executes the process group transmission to the application program for meeting the first preset condition and freezes letter Number the step of;
The method also includes:
If the application program that the runing time on the backstage of the electronic equipment is greater than or equal to the preset duration is discontented Foot first preset condition, it is determined that the application program for being unsatisfactory for first preset condition does not need to be freezed.
Optionally, after the process group to the application program for meeting the first preset condition sends freeze signal, The method also includes:
Determine that the application program for meeting the second preset condition, the application program for meeting the second preset condition are to need to solve The application program on the backstage of jelly;
Defrosting signal is sent to the process group of the application program for meeting the second preset condition, so that described meet second The application program of preset condition is thawed.
Optionally, the application program for meeting the second preset condition are as follows:
Application interface provided by Activity component receives the operational order of user's input, and/or needs to receive wide It broadcasts information, and/or needs to start Service component, and/or need to access database, and/or need the foreground to electronic equipment Interface pushing application program is without response dialogue.
The embodiment of the invention provides a kind of electronic equipment, wherein includes:
First determination unit, for determining the application program for meeting the first preset condition, the first preset condition of the satisfaction Application program be the application program not needed in the running background of electronic equipment;
First transmission unit freezes letter for the process group transmission to the application program for meeting the first preset condition Number, so that the application program for meeting the first preset condition is freezed according to the freeze signal.
Optionally, the electronic equipment further include:
First judging unit, whether be greater than in the runing time on the backstage of the electronic equipment for judging application program or Equal to preset duration;
First determination unit is also used to, if runing time of the application program on the backstage of the electronic equipment is big In or equal to the preset duration, it is determined that meet the application program of the first preset condition.
Optionally, first determination unit is also used to, and judges that the runing time on the backstage in the electronic equipment is greater than Or whether meet first preset condition equal to the application program of the preset duration;
First transmission unit is also used to, if described in being greater than or equal in the runing time on the backstage of the electronic equipment The application program of preset duration meets first preset condition, then to it is described meet the first preset condition application program into Journey group sends freeze signal;
The electronic equipment further include:
Second determination unit, if be greater than or equal to described default for the runing time on the backstage of the electronic equipment Long application program is unsatisfactory for first preset condition, it is determined that the application program for being unsatisfactory for first preset condition is not required to Freezed.
Optionally, the electronic equipment further include:
Third determination unit, for determining the application program for meeting the second preset condition, the second preset condition of the satisfaction Application program be the application program on backstage for needing to thaw;
Second transmission unit, for sending the letter that thaws to the process group of the application program for meeting the second preset condition Number, so that the application program for meeting the second preset condition is thawed.
Optionally, the application program for meeting the second preset condition are as follows:
Application interface provided by Activity component receives the operational order of user's input, and/or needs to receive wide It broadcasts information, and/or needs to start Service component, and/or need to access database, and/or need the foreground to electronic equipment Interface pushing application program is without response dialogue.
Using the management method of application program shown in the present embodiment, the running background not needed in electronic equipment is being determined Application program after, can to the application program send freeze signal so that it is described meet the first preset condition application journey Sequence is freezed according to the freeze signal, so that the application program will not be in the running background of electronic equipment, to reduce The power consumption of electronic equipment, saves electricity, extends the standby time of electronic equipment, and freezes without answering in running background It is effectively avoided electronic equipment to be improved the utilization efficiency of electronic equipment resource with program and randomness Caton occurs Situation.
Detailed description of the invention
Fig. 1 is a kind of embodiment step flow chart of the management method of application program provided by the present invention;
Fig. 2 is a kind of example structure schematic diagram of electronic equipment provided by the present invention.
Specific embodiment
The management method of application program provided by embodiment for a better understanding of the present invention, below first to of the invention real Electronic equipment provided by example is applied to be illustrated.
Electronic equipment provided by the embodiment of the present invention can be smart phone (Android phone, iOS mobile phone etc.), plate Computer, palm PC and mobile internet device (full name in English: Mobile Internet Devices, English abbreviation: MID), the terminal devices such as PC, are specifically not construed as limiting in embodiments of the present invention.
The application program to the foreground of electronic equipment and the application program on backstage are illustrated below.
In general, the application program in electronic equipment is divided into two classes, one kind is the third-party application that user independently installs Program, such as the application programs such as " wechat ", " mobile phone QQ ", " microblogging ";Another kind of is the system built in electronic device system Application program, such as the application programs such as " phone ", " setting ", " information ", " photograph album ".
When user do not use operated in foreground application program or or when needing using other applications, then use Family, which can be closed, does not use the application program for having operated in foreground.The quick load to application program, electronics are set for convenience It is standby that all there is the function that application program is placed in backstage, that is, user can not have to close the application program, but this is applied journey Sequence is placed in electronic equipment backstage, when user reuses the application program, need to be only somebody's turn to do by dispatching out from electronic equipment backstage Application program.
For example user is talked in smart phone using application program " wechat " and good friend, is pressed after navigation key " wechat " Display interface be closed, still, " wechat " is not closed thoroughly, and " wechat " at this time is exactly the application journey on a backstage Sequence.When next user needs using application program " wechat ", application program " wechat " is directly dispatched out.
In the present embodiment, the application program on the backstage refers to the third party that operating status is currently in electronic equipment Application program and system application.
In this way, the application program saves the time of application program load without reopening operation.But work as application When program is placed in backstage, the application program still can occupying system resources continue to run, will cause the waste of resource in this way, such as Waste etc. of the waste of power consumption, the waste of flow and CPU scheduling, so in general, user be not intended to be placed in backstage and The application program still occupying system resources in running background are not needed.
It is described in detail below in conjunction with the management method for being provided for the embodiments of the invention application program shown in Fig. 1, Wherein, Fig. 1 show a kind of embodiment step flow chart of the management method of application program provided by the present invention.
Step 101 judges whether application program is greater than or equal to preset duration in the runing time on the backstage of electronic equipment, If so, thening follow the steps 102.
In the present embodiment, the preset duration can be systemic presupposition, the present embodiment to the occurrence of the preset duration not It limits, the present embodiment is illustrated so that the preset duration is 1 minute as an example.
The present embodiment sets the purpose of the preset duration, is during actually using electronic equipment, when using journey When runing time of the sequence on the backstage of electronic equipment is less than the preset duration, then user re-calls the application program to electronics The foreground of equipment carry out again using a possibility that it is larger, then be the waste for avoiding system resource, then electronic equipment only needs pair The application program that the runing time on the backstage of electronic equipment has been greater than or equal to preset duration executes the step for whether needing to freeze Suddenly.
Need it is clear that, step 101 shown in the present embodiment be optional step, if execution do not limit in the present embodiment Fixed, the present embodiment is illustrated for executing step 101.
Step 102 judges to be greater than or equal to answering for the preset duration in the runing time on the backstage of the electronic equipment Whether meet first preset condition with program, if so, 103 are thened follow the steps, if it is not, thening follow the steps 104.
In the present embodiment, first preset condition can have data for the application program not with the foreground of the electronic equipment Interaction.First preset condition is not construed as limiting, as long as the application program for meeting first preset condition is not need The application program of the running background of electronic equipment.
To better understand the data interaction between the application program on backstage and the application program on foreground, below first to electricity The component of sub- device systems is illustrated.
Need it is clear that, the present embodiment is exemplary illustration to the explanation of the component of the electronic apparatus system, specifically not It limits.
For the present embodiment by taking the electronic apparatus system is android system as an example, electronic apparatus system includes four big components, Movable (Activity) component, service (Service) component, content provide (Content Provider) component and broadcast connects Receive device (Broadcast Receiver) component.
In one application program, Activity component is usually exactly an individual operation interface, can be in operation interface It shows that some controls can also be monitored and handle the event of user to respond.One Service component is one section of long Life Cycle Phase, the program of user interface, can not be used to develop as monitored class method.Content Provider component makes one to answer Other applications are supplied to the specified data set of program, these data can store in file system, at one SQLite database or with any other reasonable manner.Broadcast Receiver component can receive external transmission Broadcast message simultaneously makes a response, and Broadcast Receiver component does not have user interface, however, Broadcast Receiver Component can star an Activity component or Service component to respond the broadcast message that they are received.
First preset condition shown in the present embodiment can for backstage application program not with the foreground of the electronic equipment The service Service component and/or content of application program, which provide Content Provider component, data interaction.
As it can be seen that freezing method shown in the present embodiment can by not with the Service component of the application program on foreground and/or interior Holding offer Content Provider component has the application program on the backstage of data interaction to be freezed.
For another example, first preset condition can be for without wake-up lock (wakelock).
Application program with the backstage for waking up lock can prevent electronic equipment from entering sleep pattern.
As it can be seen that the backstage that freezing method shown in the present embodiment can will prevent electronic equipment from entering sleep pattern is answered Freezed with program.
For another example, first preset condition can be for the foreground interface push operation interface of the electronic equipment.
The present embodiment can be used for receiving the operational order of user's input to the operation interface, and the present embodiment is to the operation Instruction is not construed as limiting, for example, the operational order of starting or closing application program.
The present embodiment is not construed as limiting the mode that is particularly shown of the operation interface, for example, the operation interface can be The form of form, button, icon or pop-up at the foreground interface.
As it can be seen that freezing method shown in the present embodiment will not push institute to the foreground interface of the electronic equipment The application program for stating the backstage of operation interface is freezed.
For another example, first preset condition can be input method application program.
If the application program on backstage is input method application program, the mistake that the application program on the backstage is actually used in user Cheng Zhong, a possibility that calling to foreground, are very big, waste power consumption to avoid starting input method application program repeatedly, are promoted and call institute The efficiency of input method application program is stated, then freezing method shown in the present embodiment does not freeze the input method application program Knot.
For another example, first preset condition can be for without using GPS positioning function.
If the application program on backstage uses GPS positioning function, illustrates that the application program on the backstage may provide and lead Boat function, then freezing method shown in the present embodiment can not freeze the application program on the backstage using GPS positioning function.
For another example, first preset condition can be in the application program of current time broadcasting audio.
As it can be seen that the application program that freezing method shown in the present embodiment will not play the backstage of audio at current time carries out Freeze.
For another example, first preset condition can within a preset time download behavior downloading flow be less than preset threshold, And/or the upload flow of behavior is uploaded in the preset time less than preset threshold.
Preset time and preset threshold can be preset in electronic equipment shown in the present embodiment.
When the application program on backstage download within a preset time behavior downloading flow be greater than or equal to preset threshold, then say The application program on the bright backstage is from internet download data, then the present embodiment will not download behavior within a preset time The application program that downloading flow is greater than or equal to the backstage of preset threshold is freezed.
When the application program on backstage upload within a preset time behavior upload flow be greater than or equal to preset threshold, then say The application program on the bright backstage uploads data to internet, then the present embodiment will not upload the upper of behavior within a preset time The application program that the amount of spreading is greater than or equal to the backstage of preset threshold is freezed.
Step 103 freezes the process group of the application program for meeting the first preset condition.
Electronic equipment shown in the present embodiment can traverse the application program for meeting the backstage of first preset condition into Journey group, and freeze signal is sent to the process group, for example, with the system of electronic equipment shown in the present embodiment for Android system For system, then the bottom of the system is Linux system, then the freeze signal can be SIGSTOP signal, when answering for the backstage When receiving the freeze signal with the process group of program, then all processes of the application program will not all rerun, at this point, should Application program is then in frozen state.
When the application program is in frozen state, the application program will not continue to occupy cpu resource, not receive Broadcast message is not responding to action event, do not called by other applications etc., so that the application program freezed can save electronics The resource of device systems, avoids the waste of electronic apparatus system resource, reduces power consumption, improve electronic equipment it is standby when It is long, effectively avoid electronic equipment from the case where randomness Caton occur.
The broadcast message shown in the present embodiment includes but is not limited to application program Installation Events, application program unloading thing Part, network change event receive short message event, receive calling event, setting date and/or time-event.
For example, file can be pre-created in the system of electronic equipment in the present embodiment, it is put into each file created Application program so that each application program and respectively the file that has created corresponds, created file title can for sys or fs or Cgroup or freezer is able to determine whether to freeze the application program in this document by monitoring the content of each file Knot, however, it is determined that needs freeze, then the freeze signal is directly sent into the file for be placed with the application program, described to freeze letter It number may include having FROZEN character string.
Step 104 determines that the application program for being unsatisfactory for first preset condition does not need to be freezed.
If the application program that the runing time on the backstage of the electronic equipment is greater than or equal to the preset duration is discontented Foot first preset condition then illustrates that the application program is the application program needed in running background, such as the application program It needs to scan for GPS resource, and/or needs to carry out data interaction with the application program on electronic equipment foreground, and/or have to call out Wake up lock resource, and/or need to the electronic equipment foreground interface push operation interface, and/or for input method application program, And/or it plays the application program of audio at current time, and/or downloads the downloading flow of behavior within a preset time and be greater than or wait In preset threshold, and/or in the preset time upload behavior upload flow be greater than or equal to preset threshold situations such as.
Step 105 judges whether frozen application program meets the second preset condition, if so, 106 are thened follow the steps, If it is not, thening follow the steps 107.
The electronic equipment, which can be established, freezes list, after the electronic equipment freezes the application program on backstage, can incite somebody to action The mark of the application program is stored in described freeze in list.
As it can be seen that being located at all application programs freezed in list is frozen application program.
The electronic equipment can traverse all frozen application programs freezed in list, and judgement application one by one Whether program meets second preset condition.
The application program for meeting second preset condition is the application program thawed, and is unsatisfactory for described second The application program of preset condition is the application program for not needing to thaw.
For example, movable Activity component institute of the second preset condition shown in the present embodiment for frozen application program The application interface of offer receives the operational order of user's input.
Application interface provided by the movable Activity component of the application program on backstage shown in the present embodiment is for connecing The operational order of user's input is received, the present embodiment is not construed as limiting the operational order, for example, the operational order can be user The instruction etc. for re-calling the application program of input.
For another example, second preset condition can also need to receive broadcast message for frozen application program.
The system of electronic equipment shown in the present embodiment the period or can detect in real time whether frozen application program needs Receive broadcast message, however, it is determined that frozen application program needs to receive broadcast message, that is, can determine that the application program meets Second preset condition.
For another example, second preset condition can also need to start the service Service group for frozen application program Part.
The system of electronic equipment shown in the present embodiment the period or can detect in real time whether frozen application program needs Starting the service Service component, however, it is determined that frozen application program needs to start the service Service component, It can determine that the application program meets second preset condition.
For another example, second preset condition can also need to access database for frozen application program.
The system of electronic equipment shown in the present embodiment the period or can detect in real time whether frozen application program needs The storage of acquisition or data that data are carried out by access database acts, however, it is determined that frozen application program needs to visit It asks database, that is, can determine that the application program meets second preset condition.
For another example, second preset condition can also need the foreground circle to the electronic equipment for frozen application program Face pushing application program is without response ANR dialog box.
The system of electronic equipment shown in the present embodiment the period or can detect in real time whether frozen application program needs Will to the electronic equipment foreground interface pushing application program without response ANR dialog box, wherein if the electronic equipment is It unites and determines that application program is more than that scheduled duration does not respond to, then can determine that the application program needs before the electronic equipment Platform interface pushing application program is without response ANR dialog box.If the system of electronic equipment determine frozen application program need to The foreground interface pushing application program of the electronic equipment can determine described in application program satisfaction without response ANR dialog box Second preset condition.
For another example, when second preset condition can also occur abnormal for frozen application program, in the present embodiment, As long as it is abnormal that the system of electronic equipment determines that frozen application program occurs, that is, it is default to can determine that the application program meets second Condition.
Step 106 sends defrosting signal to the process group of the application program for meeting the second preset condition.
Electronic equipment shown in the present embodiment can traverse the application program for meeting the backstage of second preset condition into Journey group, and defrosting signal is sent to the process group, for example, with the system of electronic equipment shown in the present embodiment for Android system For system, then the bottom of the system is Linux system, then the defrosting signal can be SIGstart signal, when the backstage When the process group of application program receives the defrosting signal, then all processes of the application program can voluntarily start again transports again Row, at this point, the application program is then in thawed state.
For example, the system of electronic equipment can be able to determine whether by the content of each file of monitoring to this in the present embodiment Application program in file is thawed, however, it is determined that is needed to thaw, is then directly sent into the file for be placed with the application program The defrosting signal, the freeze signal may include having THAWED character string.
Step 107, the control application program are in frozen state.
When electronic equipment determines that frozen application program is unsatisfactory for the second preset condition, it is determined that be unsatisfactory for described second The electronic equipment of preset condition is without thawing, then the electronic equipment is the controllable electronics for being unsatisfactory for second preset condition Equipment keeps frozen state.
As it can be seen that not needed after electronic equipment using the management method of application program shown in the present embodiment in determination After the application program of platform operation, freeze signal can be sent to the application program, so that the first preset condition of the satisfaction Application program is freezed according to the freeze signal so that the application program will not in the running background of electronic equipment, thus The power consumption for reducing electronic equipment, saves electricity, extends the standby time of electronic equipment, and freezes without transporting on backstage Capable application program improves the operational efficiency of system, effectively avoids to improve the utilization efficiency of electronic equipment resource There is the case where randomness Caton in electronic equipment.
It is illustrated below in conjunction with the structure for being provided for the embodiments of the invention electronic equipment shown in Fig. 2, the present embodiment Shown in electronic equipment can be realized application program shown in FIG. 1 management method process, the specific process that executes please be detailed in Fig. 1 It is shown, specifically repeat no more in the present embodiment.
The electronic equipment includes:
First judging unit 201, for judging whether application program is big in the runing time on the backstage of the electronic equipment In or equal to preset duration;
First determination unit 202, for determining the application program for meeting the first preset condition, the first default item of the satisfaction The application program of part is the application program not needed in the running background of electronic equipment;
First determination unit 202 is also used to, if the application program is in the operation on the backstage of the electronic equipment Between be greater than or equal to the preset duration, it is determined that meet the first preset condition application program.
Wherein, the application program for meeting the first preset condition are as follows:
Do not have with the application program on the foreground of the electronic equipment data interaction, and/or do not have wake up lock resource and/ Or it not to the foreground interface push operation interface of the electronic equipment, and/or for input method application program, and/or is not take up Global position system GPS resource, and/or the application program of audio is not played at current time, and/or within a preset time downloaded The downloading flow of behavior is less than preset threshold, and/or uploads the upload flow of behavior in the preset time less than default threshold Value.
Described do not have the data interaction to include: with the application program on the foreground of the electronic equipment
Content is not provided with the service Service component and/or content of the application program on the foreground of the electronic equipment Provider component has data interaction.
First determination unit 202 is also used to, and judges to be greater than or wait in the runing time on the backstage of the electronic equipment Whether meet first preset condition in the application program of the preset duration;
First transmission unit 203 freezes for the process group transmission to the application program for meeting the first preset condition Signal, so that the application program for meeting the first preset condition is freezed according to the freeze signal.
First transmission unit 203 is also used to, if the runing time on the backstage of the electronic equipment is greater than or equal to The application program of the preset duration meets first preset condition, then to the application program for meeting the first preset condition Process group send freeze signal;
Second determination unit 204, if being greater than or equal to for the runing time on the backstage of the electronic equipment described pre- If the application program of duration is unsatisfactory for first preset condition, it is determined that be unsatisfactory for the application program of first preset condition It does not need to be freezed.
Third determination unit 205, for determining the application program for meeting the second preset condition, the second default item of the satisfaction The application program of part is to need the application program on the backstage to thaw;
Second transmission unit 206 thaws for sending to the process group of the application program for meeting the second preset condition Signal, so that the application program for meeting the second preset condition is thawed.
The application program for meeting the second preset condition are as follows:
Application interface provided by movable Activity component receives the operational order of user's input, and/or needs connect It receives broadcast message, and/or needs to start the service Service component, and/or need to access database, and/or need to institute The foreground interface pushing application program of electronic equipment is stated without response ANR dialog box.
The beneficial effect tool of the management method of application program shown in FIG. 1 is executed using electronic equipment shown in the present embodiment Body in detail as shown in Figure 1, does not repeat specifically please in the present embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (6)

1. a kind of management method of application program characterized by comprising
Determine that the application program for meeting the first preset condition, the application program for meeting the first preset condition are not need in electricity The application program of the running background of sub- equipment;
Freeze signal is sent to the process group of the application program for meeting the first preset condition, so that the satisfaction first is default The application program of condition is freezed according to the freeze signal;
Determine that the application program for meeting the second preset condition, the application program for meeting the second preset condition are Activity group Application interface provided by part receives the operational order of user's input, and/or needs to receive broadcast message, and/or need to open Dynamic Service component, and/or need to access database, and/or need foreground interface pushing application program to electronic equipment without Response dialogue;
Defrosting signal is sent to the process group of the application program for meeting the second preset condition, so that the satisfaction second is default The application program of condition is thawed.
2. the method according to claim 1, wherein the determining application program for meeting the first preset condition it Before, the method also includes:
Judge whether application program is greater than or equal to preset duration in the runing time on the backstage of the electronic equipment;
If runing time of the application program on the backstage of the electronic equipment is greater than or equal to the preset duration, execute The step of determining application program for meeting the first preset condition.
3. according to the method described in claim 2, it is characterized in that, the determining application package for meeting the first preset condition It includes:
Judge whether the application program for being greater than or equal to the preset duration in the runing time on the backstage of the electronic equipment is full Foot first preset condition;
If the runing time on the backstage of the electronic equipment is greater than or equal to described in the application program satisfaction of the preset duration First preset condition then executes the process group to the application program for meeting the first preset condition and sends freeze signal Step;
The method also includes:
If the application program that the runing time on the backstage of the electronic equipment is greater than or equal to the preset duration is unsatisfactory for institute State the first preset condition, it is determined that the application program for being unsatisfactory for first preset condition does not need to be freezed.
4. a kind of electronic equipment characterized by comprising
First determination unit, it is described to meet answering for the first preset condition for determining the application program for meeting the first preset condition It is the application program not needed in the running background of electronic equipment with program;
First transmission unit, for sending freeze signal to the process group of the application program for meeting the first preset condition, with Freeze the application program for meeting the first preset condition according to the freeze signal;
Third determination unit, it is described to meet answering for the second preset condition for determining the application program for meeting the second preset condition With program be Activity component provided by application interface receive the operational order of user's input, and/or need to receive wide It broadcasts information, and/or needs to start Service component, and/or need to access database, and/or need the foreground to electronic equipment Interface pushing application program is without response dialogue;
Second transmission unit makes for sending defrosting signal to the process group of the application program for meeting the second preset condition The application program for meeting the second preset condition is obtained to thaw.
5. electronic equipment according to claim 4, which is characterized in that the electronic equipment further include:
First judging unit, for judging whether application program is greater than or equal in the runing time on the backstage of the electronic equipment Preset duration;
First determination unit is also used to, if runing time of the application program on the backstage of the electronic equipment be greater than or Equal to the preset duration, it is determined that meet the application program of the first preset condition.
6. electronic equipment according to claim 5, which is characterized in that first determination unit is also used to, and is judged in institute Whether the runing time for stating the backstage of electronic equipment meets described first in advance more than or equal to the application program of the preset duration If condition;
First transmission unit is also used to, if the runing time on the backstage of the electronic equipment is greater than or equal to described preset The application program of duration meets first preset condition, then to the process group of the application program for meeting the first preset condition Send freeze signal;
The electronic equipment further include:
Second determination unit, if being greater than or equal to the preset duration for the runing time on the backstage of the electronic equipment Application program is unsatisfactory for first preset condition, it is determined that be unsatisfactory for first preset condition application program do not need into Row freezes.
CN201610423786.7A 2016-06-15 2016-06-15 Application program management method and electronic equipment Active CN106125882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610423786.7A CN106125882B (en) 2016-06-15 2016-06-15 Application program management method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610423786.7A CN106125882B (en) 2016-06-15 2016-06-15 Application program management method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106125882A CN106125882A (en) 2016-11-16
CN106125882B true CN106125882B (en) 2019-04-26

Family

ID=57270806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610423786.7A Active CN106125882B (en) 2016-06-15 2016-06-15 Application program management method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106125882B (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN106681768A (en) * 2016-12-29 2017-05-17 努比亚技术有限公司 Process control method and electronic equipment
CN107066320B (en) * 2017-01-19 2021-06-15 努比亚技术有限公司 Android process freezing and unfreezing device and method
CN106713490B (en) * 2017-01-19 2021-06-15 努比亚技术有限公司 Process freezing and thawing device and method based on network application
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106933684A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of broadcast recipients, device and mobile terminal
WO2018176245A1 (en) * 2017-03-29 2018-10-04 深圳市卓希科技有限公司 Method for controlling application program, and terminal
CN107239354B (en) * 2017-06-06 2021-01-26 深圳天珑无线科技有限公司 Method and terminal for notifying screen-off event
WO2018227355A1 (en) * 2017-06-13 2018-12-20 上海传英信息技术有限公司 Application program management system and management method for smart terminal
CN107402804B (en) * 2017-07-31 2019-12-10 Oppo广东移动通信有限公司 background process control method and device, storage medium and electronic equipment
CN107479952A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 background process management method, device, storage medium and electronic equipment
CN107728769B (en) * 2017-09-21 2021-11-09 深圳Tcl新技术有限公司 Background application management method and device and computer readable storage medium
CN109600409B (en) * 2017-09-30 2022-08-19 华为终端有限公司 Resource management method and terminal for application
CN107670276B (en) * 2017-10-20 2019-08-30 Oppo广东移动通信有限公司 Game application control method and equipment
CN108021220A (en) * 2017-10-25 2018-05-11 努比亚技术有限公司 A kind of terminal applies control method, terminal and computer-readable recording medium
CN107783858A (en) * 2017-10-31 2018-03-09 努比亚技术有限公司 Terminal freezes solution method, terminal and the computer-readable recording medium of screen
CN107894916A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 A kind of method, mobile terminal and storage device for freezing application
CN107894917A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 Terminal and its method for closing background application, storage device
CN107957771A (en) * 2017-11-20 2018-04-24 珠海市魅族科技有限公司 A kind of control method of application program, device, mobile terminal and storage medium
CN110008008A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992361B (en) * 2017-12-29 2021-08-31 Oppo广东移动通信有限公司 Application freezing method and device, terminal and computer readable storage medium
CN110007968B (en) * 2017-12-29 2022-07-12 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992371A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method, device, electronic equipment, computer readable storage medium
CN110032266B (en) * 2018-01-10 2022-09-09 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN109388487B (en) * 2018-10-16 2020-12-22 Oppo广东移动通信有限公司 Application program processing method and device, electronic equipment and computer readable storage medium
CN112997149B (en) * 2018-12-29 2023-06-13 深圳市欢太科技有限公司 Application management method and device, storage medium and electronic equipment
CN110427092B (en) * 2019-08-02 2021-01-26 Oppo(重庆)智能科技有限公司 Battery switching method, device, terminal and computer readable storage medium
CN110691401B (en) * 2019-08-28 2021-04-09 华为技术有限公司 System application management method and device
CN112433831A (en) * 2020-11-17 2021-03-02 珠海格力电器股份有限公司 Application freezing method, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105975347A (en) * 2016-05-26 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105975347A (en) * 2016-05-26 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and system

Also Published As

Publication number Publication date
CN106125882A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106125882B (en) Application program management method and electronic equipment
CN105159776B (en) Process handling method and device
CN105677477B (en) Method and device for optimizing application program resources and electronic equipment
CN104298335B (en) Application program process cleaning method and device of mobile terminal and mobile terminal
CN106256116B (en) A kind of method and terminal controlling application program
CN105468426A (en) Application freezing method and terminal
US11372672B2 (en) Centralized task scheduling
CN104239196B (en) Method and device for detecting abnormal operation of application program and mobile terminal
CN100463549C (en) Method for down loading network resource using mobile terminal
EP2286315A1 (en) Aggregating recurrent schedules to optimize resource consumption
CN107835311B (en) Application management method and device, storage medium and electronic equipment
CN106131185B (en) Video data processing method, device and system
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
CN106959857A (en) The application control method and apparatus of a kind of electronic equipment
CN104008027A (en) Data backup method and device for mobile terminal and mobile terminal
CN106126305A (en) A kind of application freezing method, device and mobile terminal
CN106844026A (en) A kind of method and system for clearing up terminal device process
CN111045824A (en) Application control method and device, electronic equipment and computer readable medium
CN104346563B (en) The method and electronic equipment of a kind of information processing
CN109992323B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN101729329B (en) Method for managing application programs in open service gateway service platform and architecture thereof
CN112905209A (en) Application program updating method and device
CN103257894B (en) A kind of method and electric terminal of management program
CN108011860A (en) A kind of method and device for handling broadcast message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant