CN106095055A - The method for closing of a kind of application program and device - Google Patents

The method for closing of a kind of application program and device Download PDF

Info

Publication number
CN106095055A
CN106095055A CN201610383791.XA CN201610383791A CN106095055A CN 106095055 A CN106095055 A CN 106095055A CN 201610383791 A CN201610383791 A CN 201610383791A CN 106095055 A CN106095055 A CN 106095055A
Authority
CN
China
Prior art keywords
function
application program
rank
duration
function rank
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
CN201610383791.XA
Other languages
Chinese (zh)
Other versions
CN106095055B (en
Inventor
黄宏用
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610383791.XA priority Critical patent/CN106095055B/en
Publication of CN106095055A publication Critical patent/CN106095055A/en
Priority to PCT/CN2017/086470 priority patent/WO2017206873A1/en
Application granted granted Critical
Publication of CN106095055B publication Critical patent/CN106095055B/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
    • 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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality

Abstract

The embodiment of the invention discloses method for closing and the device of a kind of application program, described method includes: to the function setup function rank in application program, then, obtain current application program and do not receive the first duration of operational order, this operational order is the operational order triggered for the user operation of application program, obtain corresponding first object function rank according to the first duration, close corresponding function in application program according to first object function rank;The program can not operate the duration of application program based on user and closes corresponding function in application program, the electric quantity consumption of terminal can be reduced, and owing to the program does not directly close application program, but corresponding function in closedown application program, therefore, when needs restart this application program, need re invocation and perform the function closed, for hinge structure, while can consuming reducing terminal power, promote the speed that application program restarts.

Description

The method for closing of a kind of application program and device
Technical field
The present invention relates to field of terminal technology, be specifically related to method for closing and the device of a kind of application program.
Background technology
Along with the development of intelligent terminal, intelligent terminal can compatible function get more and more, and not only enriches user's life, also Bring advantage to the user.The most day by day incorporate people's life along with mobile terminal device, application function is gradually improved, and brings to user Great convenience and improve Consumer's Experience.
In order to realize various function to meet the various demands of user, usual intelligent terminal can install various application Program (can referred to as be applied).But, the application program of the upper installation of intelligent terminal can consume substantial amounts of electricity, reduces intelligence eventually The flying power of end.
At present, in order to lower the consumption of intelligent terminal's electricity, and then the flying power of lifting intelligent terminal, intelligent terminal's meeting Close application program, i.e. close all of function (including principal function, subfunction etc.) in application program;Such as intelligent terminal can To be automatically switched off application program, or close application program according to the operation of user;Specifically, intelligent terminal can monitor use The family operation to intelligent terminal, then, closes corresponding application program based on this operation.
But, although the shutdown strategy of current application program can reduce terminal power consumption, but owing to the program is Closing all of function in application program, if after closing application program, intelligent terminal needs to restart this application journey Sequence, then now, intelligent terminal needs all functions of this application program of re invocation, and application program can be caused to restart Speed is slow.
Summary of the invention
The embodiment of the present invention provides method for closing and the device of a kind of application program, can reduce what terminal power consumed Meanwhile, the speed that application program restarts is promoted.
The embodiment of the present invention provides the method for closing of a kind of application program, including:
To the function setup function rank in application program;
Obtaining presently described application program and do not receive the first duration of operational order, described operational order is for described The operational order that the user operation of application program is triggered;
Corresponding first object function rank is obtained according to described first duration;
Corresponding function in described application program is closed according to described first object function rank.
Further, the described step obtaining corresponding first object function rank according to described first duration is specifically wrapped Include:
Determine that whether described first duration is more than the first preset duration;
The most then obtain the first preset function rank that described first preset duration is corresponding, and by this first preset function Rank is as first object function rank.
Further, the described step to the function setup function rank in application program specifically includes:
Obtain the call relation between function in application program;
According to described call relation to the function setup function rank in application program.
Further, described first object function rank is less than the highest function rank;Described according to described first object letter Several levels is not closed the step of corresponding function in described application program and is specifically included:
Judge whether described first object function rank is minimum function rank;
The most then close the function that first object function rank described in described application program is corresponding;
If it is not, then close the function that first object function rank described in described application program is corresponding, and function rank Function less than described first object function rank.
Further, after according to corresponding function in the described first object function rank described application program of closedown, Described method for closing also includes:
Obtain presently described application program and do not receive the second duration of described operational order, according to described second duration First object function rank closes the time interval completed between moment and current time of function;
Corresponding second object function rank, wherein, described second object function rank is obtained according to described second duration Higher than described first object function rank;
Close corresponding residue in described application program according to described second object function rank and be not turned off function.
Further, the described step obtaining corresponding second object function rank according to described second duration is specifically wrapped Include:
Determine that whether described second duration is more than the second preset duration;
The most then obtain the second preset function rank that described second preset duration is corresponding, described second preset function level Gao Yu described first object function rank;
Using this second preset function rank as the second object function rank.
Further, described close corresponding residue in described application program according to described second object function rank and do not close The step closing function specifically includes:
Judge whether described second object function rank is the highest function rank;
The most then close all of residue in described application program and be not turned off function;
If it is not, then close described residue to be not turned off the function that described in function, the second object function rank is corresponding, Yi Jihan Several levels Di Yu the function of described second object function rank.
The embodiment of the present invention additionally provides the shutoff device of a kind of application program, including: arrange module, the first duration obtains Module, first level acquisition module and first close module;
Described module is set, for the function setup function rank in application program;
Described first duration acquisition module, for obtain presently described application program do not receive operational order first time Long, described operational order is the operational order triggered for the user operation of described application program;
Described first level acquisition module, for obtaining corresponding first object function rank according to described first duration;
Described first closes module, for closing in described application program corresponding according to described first object function rank Function.
Further, described first level acquisition module specifically includes: determine that submodule and rank obtain submodule;
Described determine submodule, be used for determining that whether described first duration is more than the first preset duration;
Described rank obtains submodule, for when described determine that submodule is determined as time, obtain described first when presetting Long the first corresponding preset function rank, and using this first preset function rank as first object function rank.
Further, the described module that arranges specifically includes: Relation acquisition submodule and arrange submodule;
Described Relation acquisition submodule, for obtaining in application program the call relation between function;
Described submodule is set, for according to described call relation to the function setup function rank in application program.
Further, described first object function rank is less than the highest function rank, and described first closes module specifically wraps Include: judge submodule and close closed submodule;
Described judgement submodule, is used for judging whether described first object function rank is minimum function rank;
Described pass closed submodule, for when described judgement submodule is judged as YES, closes described in described application program The function that first object function rank is corresponding;When described judgement submodule is judged as NO, close described in described application program The function that first object function rank is corresponding, and function rank is less than the function of described first object function rank.
Further, described device also includes: the second duration acquisition module, second level acquisition module and second are closed Module;
Described second duration acquisition module, closes according to described first object function rank for closing module described first Close in described application program after corresponding function, obtain presently described application program and do not receive the second of described operational order Duration, described second duration is the time completing between moment and current time closing function according to first object function rank Interval;
Described second level acquisition module, for obtaining corresponding second object function rank according to described second duration, Wherein, described second object function is superior to described first object function rank;
Described second closes module, for closing in described application program corresponding according to described second object function rank Residue is not turned off function.
The embodiment of the present invention uses the function setup function rank in application program, then, obtains current application program Not receiving the first duration of operational order, this operational order refers to by the operation triggered for the user operation of application program Order, obtains corresponding first object function rank according to above-mentioned first duration, closes application journey according to first object function rank Corresponding function in sequence;The program can not operate the duration of application program based on user and closes corresponding letter in application program Number, can reduce the electric quantity consumption of terminal, and owing to the program does not directly close application program, but close application program In corresponding function, therefore, when needs restart this application program, need the function that re invocation and performing is closed i.e. Can, for hinge structure, while can consuming reducing terminal power, promote the speed that application program restarts.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those skilled in the art, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
The schematic flow sheet of the method for closing of a kind of application program that Fig. 1 provides for the embodiment of the present invention one;
The flow process signal of the method for closing of application program in the middle of reality application that Fig. 2 provides for the embodiment of the present invention two Figure;
The structural representation of the shutoff device of a kind of application program that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the shutoff device of the second application program that Fig. 4 provides for the embodiment of the present invention three;
The structural representation of the shutoff device of the third application program that Fig. 5 provides for the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides method for closing and the device of a kind of application program.To be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of the shutoff device of application program, and the shutoff device of this application program is concrete Can integrated in the terminal, this terminal can be mobile internet device (such as smart mobile phone, panel computer), Intelligent worn device Each class of electronic devices such as (such as intelligent watch).
Refer to the schematic flow sheet of the method for closing of the application program that Fig. 1, Fig. 1 provide for the embodiment of the present invention one, this The method for closing of the application program of embodiment includes:
Step S101, to the function setup function rank in application program.
Computer compiling or run time, use certain function to complete related command, in the application by letter Calling of number performs function body, and in application program, the realization of each function is carried out by function, specifically, one It is exactly function that the statement of series certain function of execution is combined.
In the middle of the embodiment of the present invention, just function level can be set according to call relation between function in application program Not, the most above-mentioned step to the function setup function rank in application program can specifically include:
Obtain the call relation between function in application program;
According to this call relation to the function setup function rank in application program.
In the middle of reality application, write an application program that can run on an operating system, be required for a principal function, Principal function means to set up an independent process, and this process becomes the entrance of program, adjusts other each function, method With, the running orbit of the most whole program is just as a kind of stack, and sometimes we term it call stack, principal function is entering of program Mouthful, it is again the outlet of program, generally we can also specify a return value to exit again, is assorted to show the last result of program Sample.Owing to principal function bears the important task of entrance and exit, so had better not the logic in terms of too many details is straight Connect and be placed in principal function, be so unfavorable for maintenance and expansion.Principal function should be tried one's best succinctly, and concrete implementation details should encapsulate Go inside invoked subfunction.
The embodiment of the present invention by according to this call relation to the function setup function rank in application program, any one is years old A principal function is all deposited in tripartite's application, such as, in the middle of an application program, this principal function can be set to monoexponential function, The function setup that principal function can be directly invoked is two grades of functions, and being set to of being directly invoked by two grades of functions is three grades of letters Number, by that analogy.
Wherein, function rank can represent with various ways, such as can be with umerical function rank, wherein, The little representative function rank of numeral is the highest or numeral the biggest representative function rank is the highest, and such as, function is defined as 1 grade of function, 2 grades of letters Number, 3 grades of functions etc., the rank of this 1 grade of function is the highest;Further, it is also possible to utilize the function rank of letter representation, the order of letter The most forward, representative function rank is the highest, and such as, function could be arranged to A level function, B level function, C level function etc., wherein, The rank of this A level function is the highest.
Step S102, obtains current application program and does not receives the first duration of operational order.
Wherein, aforesaid operations instruction is the operational order triggered for the user operation of application program, such as by eventually The touch screen of end or button operation application program, or control application program etc. by voice.
In the present invention is embodiment, when above-mentioned first, this application program a length of receives operational order for the last time to current Time interval between time, wherein, the mode obtaining the first duration that current application program does not receives operational order is permissible Have multiple, such as, a timer is set, after terminal receives for the operational order of this application program, start timing, meter Time time of being added up of device be current application program and do not receive the first duration of operational order.
Optionally, the present embodiment may be provided for the mechanism of a detection user operation instruction, is used for whether detecting terminal Receiving user's operational order for application program, timer just can control to start timing and stop according to this testing result Only timing.
Step S103, obtains corresponding first object function rank according to the first duration.
Concrete, the above-mentioned step according to the first duration corresponding first object function rank of acquisition can specifically include: Determine that whether the first duration is more than the first preset duration;
The most then obtain the first preset function rank that the first preset duration is corresponding, and by this first preset function rank As first object function rank.
In the middle of the embodiment of the present invention, the function rank arranged in step S101 is corresponding respectively at preset duration, such as Arranging the first preset duration is 5min, it is judged that the presently described application program got does not receives the first duration of operational order Whether more than 5min, if being more than, then obtaining the first preset function rank that this first preset duration is corresponding, this first is preset and is First object function rank;If during when timer and duration not less than 5min time, terminal receives for this application journey The operational order of sequence, then timer stops timing and will restart timing after resetting the time.Wherein, this first preset duration can With according to user's request sets itself, such as 5min, 10min, 20min etc..
Step S104, closes corresponding function in application program according to first object function rank.
In the middle of the embodiment of the present invention, it is contemplated that the letter that application program is usually constructed with principal function and principal function can be called Number, so to the function setup function rank two-stage to be had in application program in the middle of step S102, such as, principal function is the One function rank, the function that principal function is called is the second function rank.So above-mentioned first object function rank can not be first Function rank, namely this first object function rank is less than the highest function rank.
Concrete, it is above-mentioned that according in first object function rank closedown application program, the step of function can be concrete accordingly Including:
Judge whether first object function rank is minimum function rank;
The most then close the function that described in application program, first object function rank is corresponding;
If it is not, then close the function that in application program, first object function rank is corresponding, and function rank is less than first The function of object function rank.
Such as, if being the first function rank to two function ranks of the function setup in application program, i.e. principal function, main The function of function call is the second function rank, and now first object function rank is minimum function rank, then close application The function that in program, this first object function rank is corresponding, namely closes all functions in the middle of the second function rank;If Being the first function rank to three function ranks of the function setup in application program, i.e. principal function, the function that principal function is called is Second function rank, the function that in the middle of the second function rank, function can call is the 3rd function rank, first object function level The most such as being the second function rank, now this first object function rank is not minimum function rank, then close in application program The function that this first object function rank is corresponding, and function rank is less than the function of first object function rank, namely closes Close all functions in the middle of the second function rank, and all of function in the middle of the 3rd function rank.
Further, after according to corresponding function in first object function rank closedown application program, this closedown side Method also includes:
Obtaining current application program and do not receive the second duration of operational order, the second duration is according to first object function Rank closes the time interval completed between moment and current time of function;
Obtaining corresponding second object function rank according to the second duration, wherein, the second object function is superior to described First object function rank;
Close corresponding residue in application program according to the second object function rank and be not turned off function.
Wherein, the method obtaining the second duration that above-mentioned current application program does not receives operational order can have multiple, Timer is such as set and starts timing in the moment that completes closing function according to first object function rank, until terminal receives User is for stopping timing during the operation of this application program, the time that timer is added up is above-mentioned second duration.
Concrete, the above-mentioned step obtaining corresponding second object function rank according to described second duration specifically includes:
Determine that whether the second duration is more than the second preset duration;
The most then obtaining the second preset function rank that the second preset duration is corresponding, the second preset function is superior to institute State first object function rank;
Using this second preset function rank as the second object function rank.
Wherein, this second preset duration can arrange identical it can also be provided that different from the first preset duration, it is preferred that For reducing the consumption of terminal system electricity, the second preset duration can be set smaller than the first preset duration, such as arrange the One preset duration is 5min, and the second preset duration then could be arranged to 4min, it is judged that whether the second duration is more than 4min, if so, Then obtain the second preset function rank that the second preset duration is corresponding, if during when timer and duration is not less than 4min Time, terminal receives the operational order for this application program, then timer stops timing and will reset the time, waits next time First object function rank is closed when function completes and is restarted timing.
Further, above-mentioned close corresponding residue in application program according to the second object function rank and be not turned off function Step specifically includes:
Judge whether the second object function rank is the highest function rank;
The most then close all of residue in application program and be not turned off function;
If it is not, then close residue to be not turned off the function that in function, the second object function rank is corresponding, and function rank is low Function in the second object function rank.
Such as, if being the first function rank to two function ranks of the function setup in application program, i.e. principal function, main The function of function call is the second function rank, and now this second object function rank is principal function, the highest function Rank, then close all of residue in application program and be not turned off function;If to three functions of the function setup in application program Rank, i.e. principal function are the first function rank, and the function that principal function is called is the second function rank, letter in the middle of the second function rank The function that number can call is the 3rd function rank, and the second object function rank is such as the second function rank, now this second Object function rank is not the highest function rank, then close residue and be not turned off the letter that in function, the second object function rank is corresponding Number, and function rank is less than the function of the second object function rank, namely closes all letters in the middle of the second function rank Number, and all of function in the middle of the 3rd function rank.
Preferably, it is contemplated that some application program operationally may need not the operational order of user for a long time, such as For the application program of video playback, or for the application program etc. downloaded, therefore the embodiment of the present invention can also arrange one Individual default pool of applications, the method for closing that need not provide with this programme for the application program in the middle of this pool of applications Close.Namely before to the function setup function rank in application program, first judge whether this application program is pre- If application program, if it is not, then perform the step to the function setup function rank in application program.
From the foregoing, it will be observed that the embodiment of the present invention uses the function setup function rank in application program, then, obtain currently Application program do not receives the first duration of operational order, and this operational order is by being triggered for the user operation of application program Operational order, obtains corresponding first object function rank according to above-mentioned first duration, closes according to first object function rank Corresponding function in application program;The program can not operate the duration of application program based on user and closes in application program corresponding Function, can reduce the electric quantity consumption of terminal, and owing to the program does not directly close application program, but close application Corresponding function in program, therefore, when needs restart this application program, needs re invocation and performs the letter closed Number, for hinge structure, while can consuming reducing terminal power, promotes the speed that application program restarts Degree, has preferable Consumer's Experience.
Embodiment two,
The present embodiment is by the method for closing of a kind of for offer application program in the middle of reality application, in the present embodiment, and will As a example by the function setup in application program is three function ranks, it is described in detail.Referring to Fig. 2, Fig. 2 is the present invention The schematic flow sheet of the method for closing of application program, the application program of the present embodiment in the middle of reality application that embodiment two provides Method for closing include:
Step S201, to three function ranks of the function setup in application program.
Concrete, the principal function in application program is set to the first function rank, the function setup that principal function is called is Second function rank, the function setup that in the middle of the second function rank, function can call is the 3rd function rank.
Step S202, obtains application program and does not receives the first duration of operational order, and obtain corresponding with the first duration The 3rd function rank.
Concrete, the first preset duration can be set such as 5min, it is judged that this application program does not receives operational order The first duration whether more than 5min, this application program does not receives the operation of user if so, namely within 5min, then obtain 3rd function rank.
Step S203, closes function corresponding in the middle of application program according to the 3rd function rank.
In the middle of the embodiment of the present invention, the 3rd function rank is minimum function rank, so closing in the middle of application program Function in the middle of 3rd function rank.If it should be noted that there is also in the middle of the 4th function rank, namely the 3rd function rank The function that can call of function be the 4th function rank, the i.e. the 3rd function rank is not minimum function rank, then close the 3rd Function in the middle of function rank, and close the function in the middle of the 4th function rank.
Step S204, obtains application program and does not receives the second duration of operational order, and obtain corresponding with the second duration The second function rank.
Wherein, second time a length of closedown the 3rd function rank in the middle of time completed between moment and current time of function Interval, concrete, the second preset duration can be set such as 4min, it is judged that whether this second duration is more than 4min, the most also Within i.e. 4min after closing the function in the middle of the 3rd function rank, this application program does not receives the operation of user, then obtain Take the second function rank.
Step S205, closes function corresponding in the middle of application program according to the second function rank.
Concrete, after getting above-mentioned second function rank, it is judged that this function rank is not the highest function rank, then Close all functions in the middle of the second function rank, it is understood that, if now also having the function less than the second function rank Rank, then simultaneously close off the function in the middle of this function rank.
Step S206, obtains application program and does not receives the 3rd duration of operational order, and obtain corresponding with the 3rd duration The first function rank.
Wherein, the 3rd time a length of closedown the second function rank in the middle of time completed between moment and current time of function Interval, concrete, the 3rd preset duration can be set such as 3min, it is judged that whether the 3rd duration is more than 3min, the most also Within i.e. 3min after closing the function in the middle of the second function rank, this application program does not still receive the operation of user, Then obtain the first function rank, namely the function rank of principal function.
Step S207, closes function corresponding in the middle of application program according to the first function rank.
Namely close the principal function of this application program, concrete, it is judged that this first function rank is the highest function rank, then Close all of residue in described application program and be not turned off function.
From the foregoing, it will be observed that the embodiment of the present invention uses, and application program arranges three function ranks, obtain application program and do not connect Receive the first duration of operational order and the 3rd function rank of correspondence, and close the function in the 3rd function rank, then Obtain application program and do not receive the second duration of operational order and the second function rank of correspondence, and close the second function level Function in not, finally obtains application program and does not receives the 3rd duration of operational order and the first function rank of correspondence, And close all of residue in application program and be not turned off function;The program can not operate the duration pass of application program based on user Close corresponding function in application program, the electric quantity consumption of terminal can be reduced, and owing to the program does not directly close application Program, but close corresponding function in application program, therefore, when needs restart this application program, need again to adjust With and perform close function, for hinge structure, can reduce terminal power consume while, promote answer The speed restarted by program, has preferable Consumer's Experience.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides for the shutoff device of a kind of application program, should With the shutoff device of program can integrated in the terminal, this terminal can be mobile internet device (as smart mobile phone, flat board electricity Brain), each class of electronic devices such as Intelligent worn device (such as intelligent watch).As it is shown on figure 3, the shutoff device of this application program is permissible Including: arrange module the 301, first duration acquisition module 302, first level acquisition module 303 and first closes module 304;
This arranges module 301, for the function setup function rank in application program;
This first duration acquisition module 302, does not receives the first duration of operational order for obtaining current application program, Aforesaid operations instruction is the operational order triggered for the user operation of application program;
This first level acquisition module 303, for obtaining corresponding first object function rank according to the first duration;
This first closedown module 304, for closing corresponding function in application program according to first object function rank.
Preferably, as shown in Figure 4, in the middle of the device that the embodiment of the present invention provides, first level acquisition module 303 is concrete Comprise determining that submodule 3031 and rank obtain submodule 3032;
This determines submodule 3031, is used for determining that whether the first duration is more than the first preset duration;
This rank obtains submodule 3032, for when determining that submodule 3031 is determined as, obtains the first preset duration The first corresponding preset function rank, and using this first preset function rank as first object function rank.
The above-mentioned module 301 that arranges specifically includes: Relation acquisition submodule 3011 and arrange submodule 3012;
This Relation acquisition submodule 3011, for obtaining in application program the call relation between function;
This arranges submodule 3012, is used for according to call relation the function setup function rank in application program.
Wherein, first object function rank is less than the highest function rank, and above-mentioned first closes module 304 specifically includes: sentence Disconnected submodule 3041 and pass closed submodule 3042;
This judgement submodule 3041, is used for judging whether first object function rank is minimum function rank;
This pass closed submodule 3042, for when judging that submodule 3041 is judged as YES, closes the first mesh in application program The function that scalar functions rank is corresponding;When judging that submodule 3041 is judged as NO, close first object function level in application program Not corresponding function, and function rank is less than the function of described first object function rank.
Preferably, as it is shown in figure 5, the device that the embodiment of the present invention provides can also include: the second duration acquisition module 305, second level acquisition module 306 and second closes module 307;
This second duration acquisition module 305, should according to the closedown of first object function rank for closing module 304 first After function corresponding in program, obtain current application program and do not receive the second duration of described operational order, when second The long time interval completed between moment and current time for closing function according to first object function rank;
This second level acquisition module 306, for obtaining corresponding second object function rank according to the second duration, its In, the second object function is superior to first object function rank;
This second closedown module 307, for closing corresponding in application program residue not according to the second object function rank Close function.
From the foregoing, it will be observed that the embodiment of the present invention uses arranges module 301 to the function setup function rank in application program, so After, the first duration acquisition module 302 obtains current application program and does not receives the first duration of operational order, and this operational order is The operational order triggered for the user operation of application program, first level acquisition module 303 obtains according to above-mentioned first duration Taking corresponding first object function rank, first closes module 304 closes phase in application program according to first object function rank The function answered;The program can not operate the duration of application program based on user and closes corresponding function in application program, permissible Reduce the electric quantity consumption of terminal, and owing to the program does not directly close application program, but close in application program corresponding Function, therefore, when needs restart this application program, need re invocation and perform close function, phase For prior art, while can consuming reducing terminal power, promote the speed that application program restarts, have preferably Consumer's Experience.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out combination in any, makees Realize for same or several entities, the embodiment of the method being embodied as can be found in above of above modules, at this not Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program and completes to instruct relevant hardware, and this program can be stored in computer-readable storage medium In matter, as being stored in the memorizer of terminal, and performed by least one processor in this terminal, can wrap in the process of implementation Include the flow process of the embodiment such as information issuing method.Wherein, storage medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Method for closing and device to a kind of application program that the embodiment of the present invention provides are described in detail above, its Each functional module can be integrated in one and process in chip, it is also possible to be that modules is individually physically present, it is also possible to two or Two or more module is integrated in a module.Above-mentioned integrated module both can realize to use the form of hardware, it is also possible to adopts Realize by the form of software function module.Principle and the embodiment of the present invention are explained by specific case used herein Stating, the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this area Technical staff, according to the thought of the present invention, the most all will change, in sum, This specification content should not be construed as limitation of the present invention.

Claims (12)

1. the method for closing of an application program, it is characterised in that comprise the following steps:
To the function setup function rank in application program;
Obtaining presently described application program and do not receive the first duration of operational order, described operational order is for described application The operational order that the user operation of program is triggered;
Corresponding first object function rank is obtained according to described first duration;
Corresponding function in described application program is closed according to described first object function rank.
2. method for closing as claimed in claim 1, it is characterised in that described according to described first duration acquisition corresponding first The step of object function rank specifically includes:
Determine that whether described first duration is more than the first preset duration;
The most then obtain the first preset function rank that described first preset duration is corresponding, and by this first preset function rank As first object function rank.
3. method for closing as claimed in claim 1, it is characterised in that described to the function setup function rank in application program Step specifically include:
Obtain the call relation between function in application program;
According to described call relation to the function setup function rank in application program.
4. method for closing as claimed in claim 1, it is characterised in that described first object function rank is less than the highest function level Not;Described close the step of corresponding function in described application program according to described first object function rank and specifically include:
Judge whether described first object function rank is minimum function rank;
The most then close the function that first object function rank described in described application program is corresponding;
If it is not, then close the function that first object function rank described in described application program is corresponding, and function rank is less than The function of described first object function rank.
5. method for closing as claimed in claim 4, it is characterised in that described closing according to described first object function rank In application program after corresponding function, described method for closing also includes:
Obtaining presently described application program and do not receive the second duration of described operational order, described second duration is according to first Object function rank closes the time interval completed between moment and current time of function;
Obtaining corresponding second object function rank according to described second duration, wherein, described second object function is superior to Described first object function rank;
Close corresponding residue in described application program according to described second object function rank and be not turned off function.
6. method for closing as claimed in claim 5, it is characterised in that described according to described second duration acquisition corresponding second The step of object function rank specifically includes:
Determine that whether described second duration is more than the second preset duration;
The most then obtaining the second preset function rank that described second preset duration is corresponding, described second preset function rank is high In described first object function rank;
Using this second preset function rank as the second object function rank.
7. method for closing as claimed in claim 5, it is characterised in that described close institute according to described second object function rank State the step that in application program, corresponding residue is not turned off function to specifically include:
Judge whether described second object function rank is the highest function rank;
The most then close all of residue in described application program and be not turned off function;
If it is not, then close described residue to be not turned off the function that described in function, the second object function rank is corresponding, and function level Di Yu the function of described second object function rank.
8. the shutoff device of an application program, it is characterised in that include arranging module, the first duration acquisition module, the first order Other acquisition module and first closes module;
Described module is set, for the function setup function rank in application program;
Described first duration acquisition module, does not receives the first duration of operational order for obtaining presently described application program, Described operational order is the operational order triggered for the user operation of described application program;
Described first level acquisition module, for obtaining corresponding first object function rank according to described first duration;
Described first closes module, for closing corresponding letter in described application program according to described first object function rank Number.
9. shutoff device as claimed in claim 8, it is characterised in that described first level acquisition module specifically includes: determine Submodule and rank obtain submodule;
Described determine submodule, be used for determining that whether described first duration is more than the first preset duration;
Described rank obtain submodule, for when described determine that submodule is determined as time, obtain described first preset duration pair The the first preset function rank answered, and using this first preset function rank as first object function rank.
10. shutoff device as claimed in claim 8, it is characterised in that the described module that arranges specifically includes: Relation acquisition submodule Block and submodule is set;
Described Relation acquisition submodule, for obtaining in application program the call relation between function;
Described submodule is set, for according to described call relation to the function setup function rank in application program.
11. shutoff devices as claimed in claim 8, it is characterised in that described first object function rank is less than the highest function Rank, described first closes module specifically includes: judges submodule and closes closed submodule;
Described judgement submodule, is used for judging whether described first object function rank is minimum function rank;
Described pass closed submodule, for when described judgement submodule is judged as YES, closes described in described application program first The function that object function rank is corresponding;When described judgement submodule is judged as NO, close described in described application program first The function that object function rank is corresponding, and function rank is less than the function of described first object function rank.
12. shutoff devices as claimed in claim 11, it is characterised in that described device also includes: the second duration acquisition module, Second level acquisition module and second closes module;
Described second duration acquisition module, closes institute for closing module described first according to described first object function rank State in application program after corresponding function, obtain presently described application program do not receive described operational order second time Long, described second duration is between the time completing between moment and current time according to first object function rank closedown function Every;
Described second level acquisition module, is used for according to the described second duration corresponding second object function rank of acquisition, wherein, Described second object function is superior to described first object function rank;
Described second closes module, remains accordingly for closing in described application program according to described second object function rank It is not turned off function.
CN201610383791.XA 2016-05-31 2016-05-31 A kind of method for closing and device of application program Active CN106095055B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610383791.XA CN106095055B (en) 2016-05-31 2016-05-31 A kind of method for closing and device of application program
PCT/CN2017/086470 WO2017206873A1 (en) 2016-05-31 2017-05-29 Application program shutdown method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610383791.XA CN106095055B (en) 2016-05-31 2016-05-31 A kind of method for closing and device of application program

Publications (2)

Publication Number Publication Date
CN106095055A true CN106095055A (en) 2016-11-09
CN106095055B CN106095055B (en) 2018-07-27

Family

ID=57447944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610383791.XA Active CN106095055B (en) 2016-05-31 2016-05-31 A kind of method for closing and device of application program

Country Status (2)

Country Link
CN (1) CN106095055B (en)
WO (1) WO2017206873A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273157A (en) * 2017-06-05 2017-10-20 广东欧珀移动通信有限公司 Application control method and related product
WO2017206873A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
CN107885588A (en) * 2017-11-21 2018-04-06 广东欧珀移动通信有限公司 Control method, device and the storage medium and mobile terminal of application service

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852975B (en) * 2021-08-19 2024-02-02 浙江三维利普维网络有限公司 Method and device for determining performance of protocol stack program of base station

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097651A1 (en) * 2001-09-28 2003-05-22 Peter Markstein Efficient compilation of family of related functions
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN104156226A (en) * 2013-05-15 2014-11-19 索尼公司 Pending or shutdown method for hybrid memory device
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105446776A (en) * 2015-11-20 2016-03-30 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095055B (en) * 2016-05-31 2018-07-27 广东欧珀移动通信有限公司 A kind of method for closing and device of application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097651A1 (en) * 2001-09-28 2003-05-22 Peter Markstein Efficient compilation of family of related functions
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN104156226A (en) * 2013-05-15 2014-11-19 索尼公司 Pending or shutdown method for hybrid memory device
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105446776A (en) * 2015-11-20 2016-03-30 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206873A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
CN107273157A (en) * 2017-06-05 2017-10-20 广东欧珀移动通信有限公司 Application control method and related product
CN107885588A (en) * 2017-11-21 2018-04-06 广东欧珀移动通信有限公司 Control method, device and the storage medium and mobile terminal of application service

Also Published As

Publication number Publication date
WO2017206873A1 (en) 2017-12-07
CN106095055B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN101673216B (en) Closing application program method and apparatus
CN106095055A (en) The method for closing of a kind of application program and device
CN109885343A (en) A kind of controller low-power consumption starting method, apparatus, computer equipment and storage medium
CN102037428A (en) Integrated circuit with secondary-memory controller for providing a sleep state for reduced power consumption and method therefor
CN107357673A (en) A kind of method, terminal and computer-readable recording medium for detecting abnormal power consumption
CN103248763B (en) A kind of means of communication and mobile terminal
CN103858070A (en) Power-off threshold voltage adjustment method, starting up method and electronic equipment using same
CN106095492A (en) The method for closing of a kind of application program and device
CN106055077A (en) Wake-up lock-based processing method and device
CN104580710A (en) Automatic power saving method based on learning operation habit of user
CN104184884B (en) A kind of control device and method, mobile terminal of mobile terminal power consumption
CN106547335A (en) Energy consumption reduces method and mobile terminal
CN101399862A (en) Switch circuit for mobile phone and mobile phone construction based thereon
CN103312855A (en) Information backup method and device, and mobile terminal
CN101853067B (en) Methods for reducing power consumption and a device with an embedded memory module
CN105388991A (en) Timing wake-up processing system and method
CN103501390A (en) Mobile terminal with reminding function and reminding realization method thereof
CN101291487A (en) MP3 playing method with low energy consumption on mobile phone
CN101526904B (en) Switching method for realizing normal and time limited startup of computers based on system BIOS
CN106095412B (en) A kind of method for closing and device of application program
CN104063316A (en) Application testing method and device
CN106095487A (en) The method for closing of a kind of application program and device
CN106055365B (en) A kind of closing application program method and apparatus
CN102915692A (en) Screen brightness adjusting method and device and mobile device
CN106372502A (en) Application closure limiting method and apparatus, and terminal

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

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

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