CN106020907A - Application shut-down method and device - Google Patents

Application shut-down method and device Download PDF

Info

Publication number
CN106020907A
CN106020907A CN201610379764.5A CN201610379764A CN106020907A CN 106020907 A CN106020907 A CN 106020907A CN 201610379764 A CN201610379764 A CN 201610379764A CN 106020907 A CN106020907 A CN 106020907A
Authority
CN
China
Prior art keywords
function
application program
rank
object function
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
CN201610379764.5A
Other languages
Chinese (zh)
Other versions
CN106020907B (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 CN201610379764.5A priority Critical patent/CN106020907B/en
Publication of CN106020907A publication Critical patent/CN106020907A/en
Priority to PCT/CN2017/086462 priority patent/WO2017206865A1/en
Application granted granted Critical
Publication of CN106020907B publication Critical patent/CN106020907B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • 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

Landscapes

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

Abstract

The embodiment of the invention discloses an application shut-down method and device. According to the shut-down method, function grades of functions in an application are set, a shut-down instruction of he application is received, user behavior feature information of the application in the preset time period is obtained, a first target function grade corresponding to the user behavior feature information is obtained, and the function corresponding to the first target function grade in the application is closed. According to the scheme, the corresponding functions in the application can be closed on the basis of the user behavior feature information, and electricity consumption of a terminal can be reduced. The application is not directly shut down, the corresponding functions in the application are closed, and when the application needs to be restarted, people only need to call the close functions again. Electricity consumption of the terminal can be reduced, and restart speed of the application is increased.

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 compatible function can get more and more, not only enriches user Life, also bring advantage to the user.People's life, application function is day by day incorporated along with mobile terminal device It is gradually improved, brings great convenience to user 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 apply).But, the application program of the upper installation of intelligent terminal operationally, Substantial amounts of electricity can be consumed, reduce the flying power of intelligent terminal.
Application program operationally, can run a principal function and the multiple subfunctions called by principal function, Realize the function of application program.At present, in order to reduce the consumption of intelligent terminal's electricity, and then promote intelligence The flying power of terminal, intelligent terminal can close all of function in application program when closing application program (including principal function, subfunction etc.).
But, although the shutdown strategy of current application program can reduce terminal power consumption, but due to this Scheme is to close all of function in application program, if after closing application program, intelligent terminal needs Restarting this application program, then now, intelligent terminal needs all letters of this application program of re invocation Number, the speed that application program can be caused to restart 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 terminal power While consumption, promote the speed that application program restarts.
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;
Receive the out code of described application program, and obtain described application program use in preset time period Family behavior characteristic information;
Obtain the first object function rank corresponding with described user behavior characteristic information;
Close function corresponding with described first object function rank in described application program.
Further, the described step to the function setup function rank in application program specifically includes:
Obtain the call relation between function in application program;
To the function setup function rank in described application program.
Further, described user behavior characteristic information includes initiation culture, described acquisition and described user's row The step of the first object function rank that the information that is characterized is corresponding specifically includes:
Determine that the initiation culture residing for described initiation culture is interval;
Obtain the first object function rank corresponding with described initiation culture interval.
Further, described first object function rank is less than the highest function rank, the described application of described closedown The step of function corresponding with described first object function rank in program specifically includes:
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, Yi Jihan Several levels Di Yu the function of described first object function rank.
Further, corresponding with described first object function rank in the described application program of described closedown function Step after, described method for closing also includes:
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with described information about power, described second object function rank is high In described first object function rank;
Close function corresponding with described second object function rank in described application program.
Further, the described step to the function setup function rank in application program specifically includes:
Obtain the set calling function calling sensor in application program;
To described set calls function setup function rank;
The step tool of function corresponding with described first object function rank in the described application program of described closedown Body includes:
Close and corresponding with described first object function rank in described set call function.
Accordingly, the embodiment of the present invention also provides for the shutoff device of a kind of application program, including:
Module is set, for the function setup function rank in application program;
First acquisition module, for receiving the out code of described application program, and obtains described application program User behavior characteristic information in preset time period;
Second acquisition module, for obtaining the first object function level corresponding with described user behavior characteristic information Not;
First processing module, corresponding with described first object function rank for closing in described application program Function.
Further, the described module that arranges specifically includes:
First obtains submodule, for obtaining in application program the call relation between function;
Submodule is set, for the function setup function rank in described application program.
Further, described user behavior characteristic information includes initiation culture, and described second acquisition module is concrete Including:
Determine submodule, interval for determining the initiation culture residing for described initiation culture;
Second obtains submodule, for obtaining the first object function level corresponding with described initiation culture interval Not.
Further, described first object function rank is less than the highest function rank, described first processing module Specifically include:
Judge submodule, be used for judging whether described first object function rank is minimum function rank;
Process submodule, for when described judgement submodule is judged as YES, close institute in described application program State the function that first object function rank is corresponding;When described judgement submodule is judged as NO, close described answering With function corresponding to the rank of first object function described in program, and function rank is less than described first object The function of function rank.
Further, described shutoff device also includes that the second processing module, described second processing module are used for:
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with described information about power, described second object function rank is high In described first object function rank;
Close function corresponding with described second object function rank in described application program.
The embodiment of the present invention uses the function setup function rank in application program, receives this application program Out code, and obtain this application program user behavior characteristic information in preset time period, obtain and be somebody's turn to do The first object function rank that user behavior characteristic information is corresponding, and close in this application program with this first mesh The function that scalar functions rank is corresponding;The program first corresponds to use the function setup function rank in program, then Obtain object function rank, and close function corresponding with this object function rank in application program, due to this Scheme does not directly close application program, but closes function corresponding in application program, therefore, is needing When restarting this application program, it is only necessary to the pent function of re invocation, relative to existing skill For art, 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, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those skilled in the art, on the premise of not paying creative work, also Other accompanying drawing can be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for closing of the application program that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of the method for closing of the application program that the embodiment of the present invention two provides;
Fig. 3 is the schematic flow sheet of the method for closing of the application program that the embodiment of the present invention three provides;
Fig. 4 a is the structural representation of the shutoff device of the first application program that the embodiment of the present invention four provides;
Fig. 4 b is the structural representation of the shutoff device of the second application program that the embodiment of the present invention four provides;
Fig. 4 c is the structural representation of the shutoff device of the third application program that the embodiment of the present invention four provides;
Fig. 4 d is the structural representation of the shutoff device of the 4th kind of application program that the embodiment of the present invention four provides;
Fig. 4 e is the structural representation of the shutoff device of the 5th kind of application program that the embodiment of the present invention four provides.
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 clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor The every other embodiment obtained under dynamic premise, 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, will carry out respectively in detail below Explanation.
Embodiment one
The present embodiment will be described from the angle of the shutoff device of application program, and this device specifically can be integrated In the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
A kind of method for closing of application program, including: to the function setup function rank in application program, connect Receive the out code of this application program, and obtain this application program user behavior feature in preset time period Information, obtains the first object function rank corresponding with this user behavior characteristic information, and closes this application journey Function corresponding with this first object function rank in sequence.
As it is shown in figure 1, the method for closing of this application program, idiographic flow may include that
S101, to the function setup function rank in application program.
Specifically, it is possible to operating system (such as, Android system, Android) upper run any one Individual application program, has been required for a principal function (or referred to as monoexponential function), and principal function is application program Entrance, for calling other various functions (subfunction), is performed by invoked subfunction Various functions, simultaneously because principal function needs to provide the operation result of application program, therefore principal function is also should With the outlet of program.Generally principal function is relatively more succinct, and application program needs the detail quilt of the function realized It is encapsulated into inside subfunction and calls, additionally, subfunction can also call other subfunction for principal function.
Function setup function rank in application program can there be is multiple implementation method, in the embodiment of the present invention Can arrange function rank according to the call relation between function, such as, the rank of principal function is set to 1 Level, the rank of the function of 1 grade of function call is set to 2 grades, and the rank of the function of 2 grades of function calls is set to 3 Level, the rank of the function of 3 grades of function calls is set to 4 grades, by that analogy.The biggest table of numerical value of function rank The rank that this function bright is in the position of more lower floor, i.e. this function in call relation is the lowest.
When arranging function rank according to the call relation between function, to the function setup letter in application program Several levels specifically not may comprise steps of:
Obtain the call relation between function in application program;
To the function setup function rank in this application program.
Specifically, the implementation obtaining in application program the call relation between function can have multiple, example As, the call relation between function can be obtained according to the call instruction in function code.Such as, function The code of A includes the call instruction to function B, the code of function B to include function C calling life Order, the code of function C includes the call instruction to function D, then can get calling between function Relation is: function A calls function B, function B and calls function C, function C and call function D.
When, after the call relation got between function, the function of function being arranged according to this call relation Rank, such as, the rank arranging function A is 1 grade, and the rank of function B is 2 grades, and the rank of function C is 3 Level, the rank of function D is 4 grades.
S102, receives the out code of this application program, and obtains this application program in preset time period User behavior characteristic information.
Specifically, the mode of the out code receiving application program can have multiple, for example, it is possible to by screen Curtain receives the out code that the touch operation of user sends, it is also possible to receive what user was sent by remotely operation Out code, it is also possible to be to receive the out code that the intervalometer of terminal inner triggers.
After receiving out code, obtain application program user behavior characteristic information in preset time period. This preset time period can be the time value being stored in advance in terminal built-in memory area, it is also possible to be to use Family is arranged and stored in a time value of terminal built-in memory area, such as, 10 minutes.User behavior is special Reference breath can be user's operation information to this application program, such as, runs this application journey in 10 minutes Sequence 3 minutes, more such as, the initiation culture starting this application program in 10 minutes is 0.01.
S103, obtains the first object function rank corresponding with this user behavior characteristic information.
Specifically, user behavior characteristic information and target can be prestored in the built-in memory area of terminal Mapping relations between function rank, these mapping relations can also be by user setup and be stored in the built-in of terminal In memory area.After getting user behavior characteristic information, call and be stored in terminal built-in memory area Mapping relations, according to these mapping relations obtain object function rank.Such as, initiation culture in mapping relations The object function rank of 0.01 correspondence is 4 grades, then be that initiation culture is when getting user behavior characteristic information When 0.01, can get corresponding object function rank according to these mapping relations is 4 grades.
In actual application, it is understood that there may be multiple user behavior characteristic information all correspond to same object function level Not, such as, the object function rank that initiation culture 0.01 is corresponding with 0.02 is all 4 grades, therefore, in the present invention A preferred embodiment in, when user behavior characteristic information includes initiation culture, according to this user behavior Characteristic information obtains corresponding first object function rank can specifically include following steps:
Determine that the initiation culture residing for this initiation culture is interval;
Obtain the first object function rank corresponding with this initiation culture interval.
Specifically, initiation culture interval and object function can be prestored in the built-in memory area of terminal Mapping relations between rank, such as, initiation culture interval [0.01,0.03) corresponding object function rank Be 4 grades, initiation culture interval [0.03,0.05) corresponding object function rank is 3 grades.
When getting application program initiation culture in preset time period, determine residing for this initiation culture Initiation culture is interval.Such as, initiation culture is got when being 0.02, it may be determined that residing for this initiation culture Initiation culture interval be [0.01,0.03), then call the mapping relations prestored and can get correspondence Object function rank be 4 grades.
S104, closes function corresponding with this first object function rank in this application program.
Specifically, when getting object function rank, function corresponding in closedown application program, such as, Get object function rank when being 4 grades, close all of 4 grades of functions in application program.
In order to ensure application program when next time starts can start quickly speed, need to keep in application program The continuous service of principal function, i.e. principal function can not be closed, and therefore, this first object function rank should be low In the highest function rank the rank of principal function (the highest function rank be).
In concrete application, after certain function is closed, be will be unable to play by the subfunction of this function call and make With (because invoked subfunction its function return value cannot be input in application program), therefore, if Exist by the subfunction of this function call, can be further turned off by the subfunction of this function call.Therefore, Close function corresponding in this application program according to this first object function rank and can specifically include following step Rapid:
Judge whether this first object function rank is minimum function rank;
The most then close the function that in this application program, this first object function rank is corresponding;
If it is not, then close the function that in this application program, this first object function rank is corresponding, and function level Di Yu the function of this first object function rank.
Specifically, it is judged that whether this first object function rank is that minimum function level method for distinguishing can have many Kind, such as, inquire about in all functions that this application program runs in systems, if exist by this target letter The subfunction of the function call that several levels is not corresponding.Such as, this object function rank is 4 grades, then judge whether Exist by 5 grades of functions of 4 grades of function calls.
When judging that this first object function rank is minimum function rank, close this first object function rank Corresponding function, such as, closes all of 4 grades of functions;It not when judging this first object function rank During harmonic function rank, close the function rank function less than or equal to this object function rank, such as, close All 4 grades of functions and 5 grades of functions.
In actual application, after closing function corresponding in application program according to first object function rank, can Can there is situations below, i.e. terminal current electric quantity few, user wishes to be further turned off in application program Remaining being not turned off function, therefore, the method for closing of this application program can further include steps of
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with this information about power, this second object function is superior to this First object function rank;
Close function corresponding with this second object function rank in this application program.
Specifically, the implementation obtaining the current information about power of terminal has multiple, for example, it is possible to by eventually The power management routines that carries of end obtains information about power, and this information about power can be that dump energy accounts for battery and always holds The percentage ratio of amount, such as, information about power is 30% expression terminal current residual 30% electricity.
Can prestore in the built-in memory area of terminal information about power and the second object function rank it Between mapping relations, the object function rank that such as 30% electricity is corresponding is 3 grades, the mesh that 20% electricity is corresponding Scalar functions rank is 2 grades etc., after getting the information about power of terminal, calls the mapping relations of storage in terminal Obtain the second object function rank of correspondence;Electricity can also be prestored in the built-in memory area of terminal Mapping relations between amount information interval and the second object function rank, such as, information about power [30%, 40%) Corresponding object function rank is 3 grades, [20%, 30%) corresponding object function rank is 2 grades etc., then obtains After getting the information about power of terminal, first determine that the information about power residing for this information about power is interval, subsequently according to being somebody's turn to do Information about power is interval and mapping relations obtain the second object function rank.
According to described above, function corresponding to first object function rank is the most all closed, remaining not The function rank closing function should be above first object function rank, therefore, this second object function rank Should be above this first object function rank.
Close function corresponding with this second object function rank in this application program, specifically, get After two object function ranks, such as, getting the second object function rank according to information about power 20% is 2 grades, Then close all of 2 grades of functions in application program, or close all of 2 grades of functions and letter in application program Several levels Di Yu the function (3 grades of functions, 4 grades of functions etc.) of 2 grades.
From the foregoing, it will be observed that the method for closing of the application program of embodiment of the present invention offer, use in application program Function setup function rank, receive the out code of this application program, and obtain this application program and presetting User behavior characteristic information in time period, obtains the first object letter corresponding with this user behavior characteristic information Several levels is other, and closes function corresponding with this first object function rank in this application program;The program is first To the function setup function rank in application program, then obtain object function rank, and close application program In the function corresponding with this object function rank, owing to the program directly closes application program, but Close function corresponding in application program, therefore, when needs restart this application program, it is only necessary to weight Newly call pent function, in terms of existing technologies, can reduce what terminal power consumed Meanwhile, the speed that application program restarts is promoted.
Embodiment two
According to the method for closing of the application program described by embodiment one, below citing is made the most specifically Bright.
In the present embodiment, the shutoff device with application program is specifically integrated in smart mobile phone, with intelligence Mobile phone is described in detail as a example by the method for closing of application program.
As in figure 2 it is shown, the method for closing of this application program, idiographic flow can be such that
S201, obtains the call relation between function in application program.
Specifically, the implementation obtaining in application program the call relation between function can have multiple, example As, the call relation between function can be obtained according to the call instruction in function code.Such as, function The code of A includes the call instruction to function B, the code of function B to include function C calling life Order, the code of function C includes the call instruction to function D, then can get calling between function Relation is: function A calls function B, function B and calls function C, function C and call function D.
S202, to the function setup function rank in this application program.
Specifically, when, after the call relation got between function, letter being arranged according to this call relation The function rank of number, such as, the rank arranging function A is 1 grade, and the rank of function B is 2 grades, function C Rank be 3 grades, the rank of function D is 4 grades.The numerical value of function rank shows that the most greatly this function is calling pass The rank being in the position of more lower floor, i.e. this function in system is the lowest.
S203, receives the out code of this application program, and obtains this application program in preset time period Initiation culture.
Specifically, smart mobile phone can receive the out code that the touch operation of user sends, example by screen As, the X button (virtual push button) of this application program on user's point touching screen, smart mobile phone should to this Out code is sent to respond the touch operation of user by program.Preset time period can be pre-in smart mobile phone The time value first stored, such as, preset time period is 10 minutes, in 10 minutes, by counting letter The number of starts of this application program is counted by number, and this application program often starts once, counting function Count value increases by 1.When smart mobile phone receives the out code of this application program, transfer in 10 minutes The count value of this counting function, calculates this application journey with the duration of this count value Yu this preset time period The initiation culture of sequence.
S204, determines that the initiation culture residing for this initiation culture is interval.
Specifically, in advance initiation culture can be divided into multiple interval, for example, it is possible to drawn by initiation culture Be divided into [0.01,0.03), [0.03,0.05), [0.05,0.07) etc. multiple intervals, when getting application After program initiation culture in preset time period, determine that the initiation culture residing for this initiation culture is interval.Example As, get initiation culture when being 0.02, it may be determined that the initiation culture interval residing for this initiation culture is [0.01,0.03).
S205, obtains the first object function rank corresponding with this initiation culture interval.
Specifically, initiation culture interval and object function can be prestored in the built-in memory area of terminal Mapping relations between rank, such as, initiation culture interval [0.01,0.03) corresponding object function rank Be 4 grades, initiation culture interval [0.03,0.05) corresponding object function rank is 3 grades;When determining startup frequency Behind initiation culture interval residing for rate, such as, the initiation culture interval determined for [0.01,0.03), then may be used It it is 4 grades call the mapping relations prestored to get corresponding object function rank.
S206, it is judged that whether this first object function rank is minimum function rank.
Specifically, it is judged that whether this first object function rank is that minimum function level method for distinguishing can have many Kind, such as, inquire about in all functions that this application program runs in systems, if exist by this target letter The subfunction of the function call that several levels is not corresponding.Such as, this object function rank is 4 grades, then judge whether Exist by 5 grades of functions of 4 grades of function calls;If not existing, then it is judged as that this first object function rank is Harmonic function rank, performing step S207 subsequently, if existing, being then judged as that this first object function rank is not Minimum function rank, performs step S208 subsequently.
S207, closes function corresponding with this first object function rank in this application program.
Specifically, when judging that this first object function rank is minimum function rank, this first object is closed The function that function rank is corresponding, such as, first object function rank is 4 grades, then close all of 4 grades of functions.
S208, closes function corresponding with this first object function rank in this application program, and function level Di Yu the function of this first object function rank.
Specifically, when judging that this first object function rank is not minimum function rank, close function rank Less than or equal to the function of this object function rank, such as, first object function rank is 4 grades, then close All of 4 grades of functions and 5 grades of functions.
S209, obtains the information about power that terminal is current.
Specifically, the implementation obtaining the current information about power of terminal has multiple, for example, it is possible to by eventually The power management routines that carries of end obtains information about power, and this information about power can be that dump energy accounts for battery and always holds The percentage ratio of amount, such as, information about power is 30% expression terminal current residual 30% electricity.
S210, obtains the second object function rank corresponding with this information about power, this second object function rank Higher than this first object function rank.
Specifically, information about power interval and the second target can be prestored in the built-in memory area of terminal Mapping relations between function rank, such as, information about power [30%, 40%) corresponding object function rank It is 3 grades, and information about power [20%, 30%) corresponding object function rank is 2 grades etc., then get terminal After information about power, first determine that the information about power residing for this information about power is interval, subsequently according to this information about power district Between and the mapping relations that prestore obtain the second object function rank.
S211, closes function corresponding with this second object function rank in this application program.
Specifically, after getting the second object function rank, such as, is got according to information about power 20% Two object function ranks are 2 grades, then close all of 2 grades of functions in application program, or close application program In all of 2 grades of functions and the function rank function (3 grades of functions, 4 grades of functions etc.) less than 2 grades.
From the foregoing, it will be observed that the method for closing of the application program of embodiment of the present invention offer, use and obtain application program Call relation between middle function, to the function setup function rank in this application program, receives this application journey The out code of sequence, and obtain this application program initiation culture in preset time period, determine this startup frequency Initiation culture residing for rate is interval, and obtains the first object function rank corresponding with this initiation culture interval, Judge whether this first object function rank is minimum function rank, if then closing in this application program and being somebody's turn to do The function that first object function rank is corresponding, if otherwise close in this application program with this first object function level Not corresponding function, and function rank is less than the function of this first object function rank, obtains terminal subsequently Current information about power, and obtain the second object function rank corresponding with this information about power, close this application Function corresponding with this second object function rank in program;The program is first shut off and the opening of this application program The function that dynamic frequency is corresponding, and it is further turned off the function corresponding with this information about power, due to the program not Have and directly close application program, but only close function corresponding in application program, therefore, at needs again When starting this application program, it is only necessary to the pent function of re invocation, in terms of existing technologies, While can consuming reducing terminal power, promote the speed that application program restarts.
Embodiment three
Current intelligent terminal is both provided with a lot of sensors, such as, GPS (Global Positioning System, global positioning system) sensor, gravity sensor, fingerprint sensor, imageing sensor, sound Video sensor etc., application program calls a function to call these sensors by the sensor in application program, Each sensor can be by multiple application calls, and each application program can also call multiple sensor.
When closing application program, the function that calls of commonly used Calling sensor is not off, and adjusts Still remain on after closing application program with function and can increase the power consumption of terminal, and then increase terminal Electric quantity consumption, reduce terminal flying power.
The present embodiment will be described from the angle of the shutoff device of application program, and this device specifically can be integrated In the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
The embodiment of the present invention provides the method for closing of a kind of application program, can close when closing application program Sensor call function, the method includes: obtain in application program the collection calling function calling sensor Close, to this set calls function setup function rank, receive the out code of this application program, and root This application program user behavior characteristic information in preset time period is obtained, according to this use according to this out code Family behavior characteristic information obtains corresponding first object function rank, and closes according to this first object function rank Close in this set and corresponding to call function.
As it is shown on figure 3, the method for closing of this application program, idiographic flow can be such that
S301, obtains the set calling function calling sensor in application program.
Specifically, application program exists multiple function that calls for calling multiple sensor, such as, call Function E is used for calling fingerprint sensor, calls function F for calling imageing sensor, call function G for Call audio sensor, then can get this set and include calling function E, call function F, call letter Number G.
S302, to calling function setup function rank in this set.
Specifically, when function rank is set, can be according to the plurality of merit calling the sensor that function is called Can be configured by importance, such as, authentication mode when fingerprint sensor is to enter this application program, then The importance of fingerprint sensor is the highest, and can arrange fingerprint sensor and call the rank of function E is 2 grades, and image passes Sensor is the basic function for realizing this application program, then the importance of imageing sensor takes second place, and can arrange It is 3 grades that imageing sensor calls the rank of function F, and audio sensor is for realizing the additional of this application program Function, then the importance of audio sensor is minimum, and the rank that audio sensor can call function G is set to 4 grades.
In a preferred embodiment of the invention, can to set in call function setup flag, example As, all flags calling function in set are set to 1, flag can also include color, example As, all flags calling function in set are set to green.
S303, receives the out code of this application program, and obtains this application program in preset time period User behavior characteristic information.
Specifically, the mode of the out code receiving application program can have multiple, for example, it is possible to by screen Curtain receives the out code that the touch operation of user sends, it is also possible to receive what user was sent by remotely operation Out code, it is also possible to be to receive the out code that the intervalometer of terminal inner triggers.
After receiving out code, obtain application program user behavior characteristic information in preset time period. This preset time period can be the time value being stored in advance in terminal built-in memory area, it is also possible to be to use Family is arranged and stored in a time value of terminal built-in memory area, such as, 10 minutes.User behavior is special Reference breath can be user's operation information to this application program, such as, runs this application journey in 10 minutes Sequence 3 minutes, more such as, the initiation culture starting this application program in 10 minutes is 0.04.
S304, obtains the first object function rank corresponding with this user behavior characteristic information.
Specifically, user behavior characteristic information and target can be prestored in the built-in memory area of terminal Mapping relations between function rank, these mapping relations can also be by user setup and be stored in the built-in of terminal In memory area.After getting user behavior characteristic information, call and be stored in terminal built-in memory area Mapping relations, according to these mapping relations obtain object function rank.Such as, initiation culture in mapping relations The object function rank of 0.04 correspondence is 3 grades, then be that initiation culture is when getting user behavior characteristic information When 0.04, can get corresponding object function rank according to these mapping relations is 3 grades.
S305, closes and corresponding with this first object function rank in this set calls function.
Specifically, when getting object function rank, close and corresponding in set call function, such as, Get object function rank when being 3 grades, close in set all of 3 grades and call function, it is also possible to close closed set In conjunction all of 3 grades call function and 4 grades call function.
In a preferred embodiment of the invention, in closing set corresponding call function after, it is also possible to Change the pent flag calling function, such as, by pent all marks calling function in set Knowing position and changed to 2 by 1, flag can also include color, such as, all calls pent in set The flag of function is changed to redness by green.
From the foregoing, it will be observed that the method for closing of the application program of embodiment of the present invention offer, use and obtain application program In call the set calling function of sensor, to this set calls function setup function rank, receive The out code of this application program, and obtain this application program user behavior feature letter in preset time period Breath, obtains the first object function rank corresponding with this user behavior characteristic information, and close in this set and What this first object function rank was corresponding calls function;The program first to set in call function setup letter Several levels is other, then obtains the object function rank of correspondence, and closes in set corresponding with this object function rank Call function, directly do not close application program due to the program, but close in application program corresponding Call function, therefore, when needs restart this application program, it is only necessary to re invocation is pent Call function, in terms of existing technologies, while can consuming reducing terminal power, promote The speed that application program restarts.
Embodiment four
In order to preferably implement above method, the embodiment of the present invention also provides for the closedown dress of a kind of application program Put, the shutoff device of this application program can integrated in the terminal, this terminal can be specifically smart mobile phone, The equipment such as panel computer.
As shown in fig. 4 a, the shutoff device of this application program may include that arranging module 401, first obtains Module the 402, second acquisition module the 403, first processing module 404, is described in detail below:
This arranges module 401, for the function setup function rank in application program;
This first acquisition module 402, for receiving the out code of this application program, and obtains this application journey Sequence user behavior characteristic information in preset time period;
This second acquisition module 403, for obtaining the first object letter corresponding with this user behavior characteristic information Several levels is other;
This first processing module 404, is used for closing in this application program corresponding with this first object function rank Function.
Preferably, as shown in Figure 4 b, this arrange module 401 may include that the first acquisition submodule 4011, Submodule 4012 is set, specific as follows:
This first obtains submodule 4011, for obtaining in application program the call relation between function;
This arranges submodule 4012, for the function setup function rank in this application program.
Preferably, this user behavior characteristic information includes initiation culture, as illustrated in fig. 4 c, and this second acquisition mould Block 403 may include that and determines that submodule 4031, second obtains submodule 4032, specific as follows:
This determines submodule 4031, interval for determining the initiation culture residing for this initiation culture;
This second acquisition submodule 4032, for obtaining the first object function corresponding with this initiation culture interval Rank.
Preferably, first object function rank is less than the highest function rank, as shown in figure 4d, this first process Module 404 may include that and judges submodule 4041, process submodule 4042, specific as follows:
This judgement submodule 4041, is used for judging whether this first object function rank is minimum function rank;
This process submodule 4042, for when this judgement submodule 4041 is judged as YES, closes this application journey The function that in sequence, this first object function rank is corresponding;When this judgement submodule 4041 is judged as NO, close The function that in this application program, this first object function rank is corresponding, and function rank is less than this first object The function of function rank.
Preferably, as shown in fig 4e, the shutoff device of this application program can also include: the second processing module 405;This second processing module 405 is used for:
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with this information about power, this second object function is superior to this First object function rank;
Close function corresponding with this second object function rank in this application program.
From the foregoing, it will be observed that the shutoff device of the application program of embodiment of the present invention offer, by arranging module 401 To the function setup function rank in application program, the first acquisition module 402 receives the closedown of this application program Instruction, and obtain this application program user behavior characteristic information in preset time period, the second acquisition module 403 obtain the first object function rank corresponding with this user behavior characteristic information, the first processing module 404 Close function corresponding with this first object function rank in this application program;Due to the program the most directly Closing application program, but close function corresponding in application program, therefore, restarting this at needs should When using program, it is only necessary to the pent function of re invocation, in terms of existing technologies, Ke Yi While reducing terminal power consumption, promote the speed that application program restarts.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out arbitrarily Combination, realizes as same or several entities, and being embodied as of above modules can be found in above Embodiment of the method, does not repeats them here.
It should be noted that one of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of step can be by program and completes to instruct relevant hardware, and this program can be stored in In computer-readable recording medium, storage medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD Deng.
Method for closing and the device of a kind of application program provided the embodiment of the present invention above have been carried out in detail Thin introducing, principle and the embodiment of the present invention are set forth by specific case used herein, above The explanation of embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for ability The technical staff in territory, according to the thought of the present invention, the most all can change Part, in sum, this specification content should not be construed as limitation of the present invention.

Claims (11)

1. the method for closing of an application program, it is characterised in that including:
To the function setup function rank in application program;
Receive the out code of described application program, and obtain described application program use in preset time period Family behavior characteristic information;
Obtain the first object function rank corresponding with described user behavior characteristic information;
Close function corresponding with described first object function rank in described application program.
Method for closing the most according to claim 1, it is characterised in that described in application program The step of function setup function rank specifically includes:
Obtain the call relation between function in application program;
To the function setup function rank in described application program.
Method for closing the most according to claim 1, it is characterised in that described user behavior feature is believed Breath includes initiation culture, the first object function rank that described acquisition is corresponding with described user behavior characteristic information Step specifically include:
Determine that the initiation culture residing for described initiation culture is interval;
Obtain the first object function rank corresponding with described initiation culture interval.
Method for closing the most according to claim 1, it is characterised in that described first object function level Not Di Yu the highest function rank, corresponding with described first object function rank in the described application program of described closedown The step of function 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, Yi Jihan Several levels Di Yu the function of described first object function rank.
Method for closing the most according to claim 4, it is characterised in that described closedown described application journey After the step of function corresponding with described first object function rank in sequence, described method for closing also includes:
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with described information about power, described second object function rank is high In described first object function rank;
Close function corresponding with described second object function rank in described application program.
Method for closing the most according to claim 1, it is characterised in that described in application program The step of function setup function rank specifically includes:
Obtain the set calling function calling sensor in application program;
To described set calls function setup function rank;
The step tool of function corresponding with described first object function rank in the described application program of described closedown Body includes:
Close and corresponding with described first object function rank in described set call function.
7. the shutoff device of an application program, it is characterised in that including:
Module is set, for the function setup function rank in application program;
First acquisition module, for receiving the out code of described application program, and obtains described application program User behavior characteristic information in preset time period;
Second acquisition module, for obtaining the first object function level corresponding with described user behavior characteristic information Not;
First processing module, corresponding with described first object function rank for closing in described application program Function.
Shutoff device the most according to claim 7, it is characterised in that the described module that arranges specifically is wrapped Include:
First obtains submodule, for obtaining in application program the call relation between function;
Submodule is set, for the function setup function rank in described application program.
Shutoff device the most according to claim 7, it is characterised in that described user behavior feature is believed Breath includes that initiation culture, described second acquisition module specifically include:
Determine submodule, interval for determining the initiation culture residing for described initiation culture;
Second obtains submodule, for obtaining the first object function level corresponding with described initiation culture interval Not.
Shutoff device the most according to claim 7, it is characterised in that described first object function level Not Di Yu the highest function rank, described first processing module specifically includes:
Judge submodule, be used for judging whether described first object function rank is minimum function rank;
Process submodule, for when described judgement submodule is judged as YES, close institute in described application program State the function that first object function rank is corresponding;When described judgement submodule is judged as NO, close described answering With function corresponding to the rank of first object function described in program, and function rank is less than described first object The function of function rank.
11. shutoff devices according to claim 10, it is characterised in that described shutoff device also wraps Including the second processing module, described second processing module is used for:
Obtain the information about power that terminal is current;
Obtaining the second object function rank corresponding with described information about power, described second object function rank is high In described first object function rank;
Close function corresponding with described second object function rank in described application program.
CN201610379764.5A 2016-05-31 2016-05-31 A kind of method for closing and device of application program Expired - Fee Related CN106020907B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610379764.5A CN106020907B (en) 2016-05-31 2016-05-31 A kind of method for closing and device of application program
PCT/CN2017/086462 WO2017206865A1 (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
CN201610379764.5A CN106020907B (en) 2016-05-31 2016-05-31 A kind of method for closing and device of application program

Publications (2)

Publication Number Publication Date
CN106020907A true CN106020907A (en) 2016-10-12
CN106020907B CN106020907B (en) 2019-12-03

Family

ID=57092070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379764.5A Expired - Fee Related CN106020907B (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) CN106020907B (en)
WO (1) WO2017206865A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206865A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206885A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206871A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
CN107800757A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 User behavior recording method and device
CN108008988A (en) * 2017-12-27 2018-05-08 深圳豪客互联网有限公司 A kind of apparatus control method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020133437A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program managing method and device, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103369508A (en) * 2013-06-25 2013-10-23 华为技术有限公司 Data loading method and terminal device
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN105141771A (en) * 2015-09-08 2015-12-09 北京网诺星云科技有限公司 Method and device for determining system-level behaviour preferences of user
CN105227779A (en) * 2015-10-30 2016-01-06 上海斐讯数据通信技术有限公司 Management method, management system and mobile phone that a kind of mobile terminal is applied
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105425934A (en) * 2014-07-16 2016-03-23 联发科技股份有限公司 Power-saving method and associated electronic device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317373B (en) * 2014-10-21 2019-02-05 北京奇虎科技有限公司 A kind of method and apparatus of mobile terminal cooling
US9612935B2 (en) * 2014-11-21 2017-04-04 Vmware, Inc. Enhanced resiliency testing by enabling state level control for request
CN106020907B (en) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 A kind of method for closing and device of application program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103369508A (en) * 2013-06-25 2013-10-23 华为技术有限公司 Data loading method and terminal device
CN105425934A (en) * 2014-07-16 2016-03-23 联发科技股份有限公司 Power-saving method and associated electronic device
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN105141771A (en) * 2015-09-08 2015-12-09 北京网诺星云科技有限公司 Method and device for determining system-level behaviour preferences of user
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105227779A (en) * 2015-10-30 2016-01-06 上海斐讯数据通信技术有限公司 Management method, management system and mobile phone that a kind of mobile terminal is applied

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206865A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206885A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
WO2017206871A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application program shutdown method and apparatus, storage medium, and electronic device
CN107800757A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 User behavior recording method and device
CN108008988A (en) * 2017-12-27 2018-05-08 深圳豪客互联网有限公司 A kind of apparatus control method and device

Also Published As

Publication number Publication date
WO2017206865A1 (en) 2017-12-07
CN106020907B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN106020907A (en) Application shut-down method and device
US8793520B2 (en) Power management of electronic devices based on charging location
CN103199311A (en) Battery power saving method and battery power saving apparatus for portable electronic product, and mobile terminal
CN106095363A (en) Ameliorative way, device and the terminal that a kind of terminal card pauses
CN103902359B (en) Based on android system internal memory optimization and application scheduling method thereof and system
CN101783427A (en) Intelligent charging method and intelligent charging device of terminal
CN103199310A (en) Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal
CN104199538A (en) Mobile terminal power saving method and system and mobile terminal
CN103248763B (en) A kind of means of communication and mobile terminal
CN106455016A (en) Method for controlling mobile terminal, and mobile terminal
CN106055077A (en) Wake-up lock-based processing method and device
CN103858070A (en) Power-off threshold voltage adjustment method, starting up method and electronic equipment using same
CN104580710A (en) Automatic power saving method based on learning operation habit of user
CN106095412A (en) The method for closing of a kind of application program and device
CN105955073A (en) Automatic starting method, system and mobile intelligent devices for satellite positioning device
CN104503276A (en) Intelligent power utilization method, device and terminal
CN115498673A (en) Control method and device of energy storage device
CN106055076A (en) Method and device for closing sensors
CN104184884A (en) Device and method for managing and controlling power consumption of mobile terminal and mobile terminal
CN107959314A (en) A kind of trickle charge method for electrically and intelligent terminal
CN105425950A (en) Method and system for regulating terminal according to eyeball state detection, and terminal
CN102485545A (en) Power management method and power management system
CN105210007B (en) System and method for the rechargeable power supply management in the portable computing with two or more use patterns
CN104102498B (en) A kind of mobile terminal and its starting-up method
CN106020910A (en) Application shut-down method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

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

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

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

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

Granted publication date: 20191203