CN106020907B - A kind of method for closing and device of application program - Google Patents

A kind of method for closing and device of application program Download PDF

Info

Publication number
CN106020907B
CN106020907B CN201610379764.5A CN201610379764A CN106020907B CN 106020907 B CN106020907 B CN 106020907B CN 201610379764 A CN201610379764 A CN 201610379764A CN 106020907 B CN106020907 B CN 106020907B
Authority
CN
China
Prior art keywords
function
application program
rank
function rank
closing
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.)
Expired - Fee Related
Application number
CN201610379764.5A
Other languages
Chinese (zh)
Other versions
CN106020907A (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 a kind of method for closing of application program and devices, the method for closing is to the function setup function rank in application program, receive the out code of the application program, and obtain the user behavior characteristics information of the application program within a preset period of time, first object function rank corresponding with the user behavior characteristics information is obtained, function corresponding with the first object function rank in the application program is closed;The program can close corresponding function in application program based on user behavior characteristics information, the electric quantity consumption of terminal can be reduced, and since there is no directly close application program for the program, but close corresponding function in application program, when needing to restart the application program, it only needs to re-call pent function, the speed of application program restarting can be promoted while reducing terminal power consumption.

Description

A kind of method for closing and device of application program
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of method for closing and device of application program.
Background technique
With the development of intelligent terminal, the function that intelligent terminal can be compatible with is more and more, not only enriches the life of user, Also bring advantage to the user.As mobile terminal device increasingly incorporates people's life, application function is gradually improved, brought to user Great convenience and improve user experience.
In order to realize various functions to meet the various demands of user, usual intelligent terminal will be installed various applications Program (can be applied referred to as).But the application program installed on intelligent terminal is at runtime, can consume a large amount of electricity, Reduce the cruising ability of intelligent terminal.
Application program at runtime, can run a principal function and by multiple subfunctions of principal function calling, Lai Shixian The function of application program.Currently, in order to reduce the consumption of intelligent terminal electricity, and then promote the cruising ability of intelligent terminal, intelligence Energy terminal can close function all in application program (including principal function, subfunction etc.) when closing application program.
However, although the shutdown strategy of application program can reduce terminal power consumption at present, since the program is Function all in application program is closed, if intelligent terminal needs to restart this using journey after closing application program Sequence, then will lead to application program restarting at this point, intelligent terminal needs to re-call all functions of the application program Speed is slow.
Summary of the invention
The embodiment of the present invention provides the method for closing and device of a kind of application program, can reduce terminal power consumption Meanwhile promoting the speed of application program restarting.
The embodiment of the present invention provides a kind of method for closing of application program, comprising:
To the function setup function rank in application program;
The out code of the application program is received, and obtains the user behavior of the application program within a preset period of time Characteristic information;
Obtain first object function rank corresponding with the user behavior characteristics information;
Close function corresponding with the first object function rank in the application program.
Further, the step of function setup function rank in application program specifically includes:
Obtain the call relation in application program between function;
To the function setup function rank in the application program.
Further, the user behavior characteristics information includes initiation culture, the acquisition and the user behavior characteristics The step of information corresponding first object function rank, specifically includes:
Determine initiation culture section locating for the initiation culture;
Obtain first object function rank corresponding with the initiation culture section.
Further, the first object function rank is lower than highest function rank, described to close in the application program The step of function corresponding with the first object function rank, specifically includes:
Judge whether the first object function rank is minimum function rank;
If so, closing the corresponding function of first object function rank described in the application program;
If it is not, then closing the corresponding function of first object function rank described in the application program and function rank Lower than the function of the first object function rank.
Further, described the step of closing function corresponding with the first object function rank in the application program Later, the method for closing further include:
Obtain the current information about power of terminal;
The second objective function rank corresponding with the information about power is obtained, second objective function is superior to described First object function rank;
Close function corresponding with the second objective function rank in the application program.
Further, the step of function setup function rank in application program specifically includes:
Obtain the set that the calling function of sensor is called in application program;
To the calling function setup function rank in the set;
Described the step of closing function corresponding with the first object function rank in the application program, specifically includes:
Close calling function corresponding with the first object function rank in the set.
Correspondingly, the embodiment of the present invention also provides a kind of closing device of application program, comprising:
Setup module, for the function setup function rank in application program;
First obtains module, for receiving the out code of the application program, and obtains the application program default User behavior characteristics information in period;
Second obtains module, for obtaining first object function rank corresponding with the user behavior characteristics information;
First processing module, for closing function corresponding with the first object function rank in the application program.
Further, the setup module specifically includes:
First acquisition submodule, for obtaining the call relation in application program between function;
Submodule is set, for the function setup function rank in the application program.
Further, the user behavior characteristics information includes initiation culture, and the second acquisition module specifically includes:
Submodule is determined, for determining initiation culture section locating for the initiation culture;
Second acquisition submodule, for obtaining first object function rank corresponding with the initiation culture section.
Further, the first object function rank is lower than highest function rank, and the first processing module is specifically wrapped It includes:
Judging submodule, for judging whether the first object function rank is minimum function rank;
Submodule is handled, for closing first described in the application program when the judging submodule is judged as YES The corresponding function of objective function rank;When the judging submodule is judged as NO, close first described in the application program The corresponding function of objective function rank and function rank are lower than the function of the first object function rank.
Further, the closing device further includes Second processing module, and the Second processing module is used for:
Obtain the current information about power of terminal;
The second objective function rank corresponding with the information about power is obtained, second objective function is superior to described First object function rank;
Close function corresponding with the second objective function rank in the application program.
The embodiment of the present invention is used to the function setup function rank in application program, and the closing for receiving the application program refers to It enables, and obtains the user behavior characteristics information of the application program within a preset period of time, obtain and the user behavior characteristics information Corresponding first object function rank, and close function corresponding with the first object function rank in the application program;The party Case first corresponds to then obtain objective function rank with the function setup function rank in program, and close in application program with The corresponding function of objective function rank since there is no directly closing application programs for the program, but is closed in application program Corresponding function, therefore, when needing to restart the application program, it is only necessary to re-call pent function, phase For the prior art, the speed of application program restarting can be promoted while reducing terminal power consumption.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram of the method for closing for the application program that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the method for closing of application program provided by Embodiment 2 of the present invention;
Fig. 3 is the flow diagram of the method for closing for the application program that the embodiment of the present invention three provides;
Fig. 4 a is the structural schematic diagram of the closing device for the first application program that the embodiment of the present invention four provides;
Fig. 4 b is the structural schematic diagram of the closing device for second of application program that the embodiment of the present invention four provides;
Fig. 4 c is the structural schematic diagram of the closing device for the third application program that the embodiment of the present invention four provides;
Fig. 4 d is the structural schematic diagram of the closing device for the 4th kind of application program that the embodiment of the present invention four provides;
Fig. 4 e is the structural schematic diagram of the closing device for the 5th kind of application program that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the method for closing and device of a kind of application program, will be described in detail respectively below.
Embodiment one
The angle of closing device from application program is described the present embodiment, which specifically can integrate in terminal In, which can be the equipment such as smart phone, tablet computer.
A kind of method for closing of application program, comprising: to the function setup function rank in application program, receive the application The out code of program, and the user behavior characteristics information of the application program within a preset period of time is obtained, it obtains and the user The corresponding first object function rank of behavior characteristic information, and close corresponding with the first object function rank in the application program Function.
As shown in Figure 1, the method for closing of the application program, detailed process may include:
S101, to the function setup function rank in application program.
Specifically, any one application program that can be run on operating system (for example, Android system, Android), A principal function (or being monoexponential function) is required, principal function is the entrance of application program, for other various letters Number (subfunction) is called, and is performed various functions by called subfunction, simultaneously because principal function needs to provide application The operation result of program, therefore principal function is also the outlet of application program.Usual principal function is more succinct, and application program needs reality The detail of existing function is packaged into inside subfunction and calls for principal function, in addition, subfunction can also call others Subfunction.
Can be there are many implementation method to the function setup function rank in application program, it can root in the embodiment of the present invention Function rank is set according to the call relation between function, for example, the rank of principal function is set as 1 grade, the letter of 1 grade of function call Several ranks is set as 2 grades, and the rank of the function of 2 grades of function calls is set as 3 grades, and the rank of the function of 3 grades of function calls is set 4 grades are set to, and so on.The numerical value of function rank shows more greatly position of the function in more lower layer in call relation, i.e., The rank of the function is lower.
When function rank being arranged according to the call relation between function, to the function setup function rank in application program It can specifically include following steps:
Obtain the call relation in application program between function;
To the function setup function rank in the application program.
Specifically, obtain the call relation in application program between function implementation can there are many, for example, can be with The call relation between function is obtained according to the call instruction in function code.For example, including to function in the code of function A The call instruction of B, includes the call instruction to function C in the code of function B, includes the calling to function D in the code of function C It orders, then the available call relation between function are as follows: function A calls function B, function B that function C, function C is called to call Function D.
After getting the call relation between function, the function rank of function can be set according to the call relation, For example, the rank of setting function A is 1 grade, the rank of function B is 2 grades, and the rank of function C is 3 grades, and the rank of function D is 4 grades.
S102, receives the out code of the application program, and obtains the user's row of the application program within a preset period of time It is characterized information.
Specifically, receive the out code of application program mode can there are many, for example, can pass through screen receive use The out code that the touch operation at family is sent also can receive the out code that user is sent by remote operation, can also be Receive the out code of the timers trigger of terminal inner.
After receiving out code, the user behavior characteristics information of application program within a preset period of time is obtained.This is default Period can be a time value for being stored in advance in terminal built-in storage region, is also possible to user setting and is stored in end A time value for holding built-in storage region, for example, 10 minutes.User behavior characteristics information can be user to the application program Operation information, for example, the application program is run in 10 minutes 3 minutes, for another example starting the application program in 10 minutes Initiation culture be 0.01.
S103 obtains first object function rank corresponding with the user behavior characteristics information.
Specifically, user behavior characteristics information and objective function grade can be stored in advance in the built-in storage region of terminal Mapping relations between not, the mapping relations by user setting and can also be stored in the built-in storage region of terminal.When obtaining After getting user behavior characteristics information, the mapping relations being stored in terminal built-in storage region are called, according to the mapping relations Obtain objective function rank.For example, the corresponding objective function rank of initiation culture 0.01 is 4 grades in mapping relations, then work as acquisition To user behavior characteristics information be initiation culture be 0.01 when, corresponding objective function grade can be got according to the mapping relations It Wei not be 4 grades.
In practical application, it is understood that there may be a variety of user behavior characteristics information all correspond to the same objective function rank, example Such as, the corresponding objective function rank of initiation culture 0.01 and 0.02 is all 4 grades, therefore, in a preferred embodiment of the present invention In, when user behavior characteristics information includes initiation culture, according to the corresponding first object of user behavior characteristics acquisition of information Function rank can with specifically includes the following steps:
Determine initiation culture section locating for the initiation culture;
Obtain first object function rank corresponding with the initiation culture section.
Specifically, can be stored in advance in the built-in storage region of terminal initiation culture section and objective function rank it Between mapping relations, for example, initiation culture section [0.01,0.03) corresponding objective function rank is 4 grades, initiation culture section [0.03,0.05) corresponding objective function rank is 3 grades.
When getting the initiation culture of application program within a preset period of time, the frequency of starting locating for the initiation culture is determined Rate section.For example, get initiation culture be 0.02 when, can determine that initiation culture section locating for the initiation culture is [0.01,0.03), then calling pre-stored mapping relations available to corresponding objective function rank is 4 grades.
S104 closes function corresponding with the first object function rank in the application program.
Specifically, when getting objective function rank, corresponding function in application program is closed, for example, getting mesh When scalar functions rank is 4 grades, 4 grades of functions all in application program are closed.
In order to guarantee application program next time starting when can start quickly speed, need to keep principal function in application program Continuous service, i.e. principal function cannot be closed, and therefore, which should be lower than highest function rank (most High function rank is the rank of principal function).
In concrete application, after some function is closed, will be unable to play a role by the subfunction of the function call (because Its function return value can not be input in application program by called subfunction), therefore, if it exists by the son of the function call Function can be further turned off by the subfunction of the function call.Therefore, which is closed according to the first object function rank In program corresponding function can with specifically includes the following steps:
Judge whether the first object function rank is minimum function rank;
If so, closing the corresponding function of first object function rank in the application program;
It is lower than if it is not, then closing the corresponding function of first object function rank and function rank in the application program The function of the first object function rank.
Specifically, judge the first object function rank whether be minimum function grade method for distinguishing can there are many, for example, It inquires in all functions that the application program is run in systems, if exist by the corresponding function call of objective function rank Subfunction.For example, the objective function rank is 4 grades, then judge whether there is by 5 grades of functions of 4 grades of function calls.
When judging the first object function rank is minimum function rank, it is corresponding to close the first object function rank Function, for example, closing 4 grades of all functions;When judging the first object function rank is not minimum function rank, letter is closed Several levels are not less than or equal to the function of the objective function rank, for example, closing all 4 grades of functions and 5 grades of functions.
In practical application, after according to corresponding function in first object function rank closing application program, it may deposit In following situations, i.e. terminal current electric quantity is few, user wish to be further turned off it is remaining in application program be not turned off function, Therefore, the method for closing of the application program can further include steps of
Obtain the current information about power of terminal;
The second objective function rank corresponding with the information about power is obtained, which is superior to first mesh Scalar functions rank;
Close function corresponding with the second objective function rank in the application program.
Specifically, there are many implementations for obtaining the current information about power of terminal, for example, can be carried by terminal Power management routines obtain information about power, which can be the percentage that remaining capacity accounts for battery total capacity, for example, electric Measuring information is 30% expression 30% electricity of terminal current residual.
Reflecting between information about power and the second objective function rank can be stored in advance in the built-in storage region of terminal Relationship is penetrated, such as the corresponding objective function rank of 30% electricity is 3 grades, the corresponding objective function rank of 20% electricity is 2 grades etc., After getting the information about power of terminal, the mapping relations stored in terminal is called to obtain corresponding second objective function rank; The mapping between information about power section and the second objective function rank can also be stored in advance in the built-in storage region of terminal Relationship, for example, information about power [30%, 40%) corresponding objective function rank is 3 grades, [20%, 30%) corresponding target letter Several levels are not 2 grades etc., then after the information about power for getting terminal, first determine information about power section locating for the information about power, with The second objective function rank is obtained according to the information about power section and mapping relations afterwards.
According to description above, the corresponding function of first object function rank is all closed, remaining to be not turned off letter Several function ranks should be above first object function rank, and therefore, which should be above first mesh Scalar functions rank.
It closes function corresponding with the second objective function rank in the application program and specifically gets the second target After function rank, for example, getting the second objective function rank according to information about power 20% is 2 grades, then close in application program 2 grades of all functions, or close function (3 grades of letters that 2 grades of functions and function rank all in application program are lower than 2 grades Number, 4 grades of functions etc.).
From the foregoing, it will be observed that the method for closing of application program provided in an embodiment of the present invention, using to the function in application program Function rank is set, receives the out code of the application program, and obtain the user's row of the application program within a preset period of time It is characterized information, obtains first object function rank corresponding with the user behavior characteristics information, and close in the application program Function corresponding with the first object function rank;The program first corresponds to use the function setup function rank in program, then Objective function rank is obtained, and closes function corresponding with the objective function rank in application program, not due to the program Application program is directly closed, but closes corresponding function in application program and is therefore needing to restart the application program When, it is only necessary to pent function is re-called, in terms of existing technologies, terminal power consumption can reduced Meanwhile promoting the speed of application program restarting.
Embodiment two
According to the method for closing of application program described in embodiment one, citing is described in further detail below.
In the present embodiment, it will be specifically integrated in smart phone with the closing device of application program, in smart phone It is described in detail for the method for closing of application program.
As shown in Fig. 2, the method for closing of the application program, detailed process can be such that
S201 obtains the call relation in application program between function.
Specifically, obtain the call relation in application program between function implementation can there are many, for example, can be with The call relation between function is obtained according to the call instruction in function code.For example, including to function in the code of function A The call instruction of B, includes the call instruction to function C in the code of function B, includes the calling to function D in the code of function C It orders, then the available call relation between function are as follows: function A calls function B, function B that function C, function C is called to call Function D.
S202, to the function setup function rank in the application program.
Specifically, after getting the call relation between function, the letter of function can be set according to the call relation Several levels are other, for example, the rank of setting function A is 1 grade, the rank of function B is 2 grades, and the rank of function C is 3 grades, the grade of function D It Wei not be 4 grades.The numerical value of function rank shows more greatly position of the function in more lower layer in call relation, the i.e. grade of the function It is not lower.
S203, receives the out code of the application program, and obtains the starting frequency of the application program within a preset period of time Rate.
Specifically, smart phone can receive the out code that the touch operation of user is sent by screen, for example, user The close button (virtual push button) of the application program on point touching screen, smart phone to the application program send out code with Respond the touch operation of user.Preset time period can be a pre-stored time value in smart phone, for example, when default Between section be 10 minutes, in 10 minutes, the number of starts of the application program is counted by counting function, this apply journey The every starting of sequence is primary, and the count value of counting function increases by 1.When smart phone receives the out code of the application program, The count value of the counting function in 10 minutes is transferred, which is calculated with the duration of the count value and the preset time period The initiation culture of program.
S204 determines initiation culture section locating for the initiation culture.
Specifically, initiation culture can be divided into multiple sections in advance, for example, initiation culture can be divided into [0.01,0.03), [0.03,0.05), [0.05,0.07) etc. multiple sections, when getting application program within a preset period of time Initiation culture after, determine initiation culture section locating for the initiation culture.For example, get initiation culture be 0.02 when, can With determine the initiation culture locating for initiation culture section be [0.01,0.03).
S205 obtains first object function rank corresponding with the initiation culture section.
Specifically, can be stored in advance in the built-in storage region of terminal initiation culture section and objective function rank it Between mapping relations, for example, initiation culture section [0.01,0.03) corresponding objective function rank is 4 grades, initiation culture section [0.03,0.05) corresponding objective function rank is 3 grades;After determining initiation culture section locating for initiation culture, for example, really Fixed initiation culture section be [0.01,0.03), then pre-stored mapping relations can be called to get corresponding target letter Several levels are not 4 grades.
S206 judges whether the first object function rank is minimum function rank.
Specifically, judge the first object function rank whether be minimum function grade method for distinguishing can there are many, for example, It inquires in all functions that the application program is run in systems, if exist by the corresponding function call of objective function rank Subfunction.For example, the objective function rank is 4 grades, then judge whether there is by 5 grades of functions of 4 grades of function calls;If not depositing Then it is being judged as that the first object function rank is minimum function rank, is then executing step S207, and if it exists, be then judged as The first object function rank is not minimum function rank, then executes step S208.
S207 closes function corresponding with the first object function rank in the application program.
Specifically, when judging the first object function rank is minimum function rank, the first object function grade is closed Not corresponding function then closes 4 grades of all functions for example, first object function rank is 4 grades.
S208 closes function corresponding with the first object function rank and function rank in the application program and is lower than The function of the first object function rank.
Specifically, when judging the first object function rank is not minimum function rank, close function rank be less than or All 4 grades of functions and 5 are then closed for example, first object function rank is 4 grades equal to the function of the objective function rank Grade function.
S209 obtains the current information about power of terminal.
Specifically, there are many implementations for obtaining the current information about power of terminal, for example, can be carried by terminal Power management routines obtain information about power, which can be the percentage that remaining capacity accounts for battery total capacity, for example, electric Measuring information is 30% expression 30% electricity of terminal current residual.
S210, obtains the second objective function rank corresponding with the information about power, which is superior to this First object function rank.
Specifically, information about power section and the second objective function grade can be stored in advance in the built-in storage region of terminal Mapping relations between not, and for example, information about power [30%, 40%) corresponding objective function rank is 3 grades, information about power [20%, 30%) corresponding objective function rank is 2 grades etc., then after the information about power for getting terminal, first determine that the electricity is believed The locating information about power section of breath, then obtains the second target letter according to the information about power section and pre-stored mapping relations Several levels are other.
S211 closes function corresponding with the second objective function rank in the application program.
Specifically, after getting the second objective function rank, for example, getting the second target letter according to information about power 20% Several levels are not 2 grades, then close 2 grades of functions all in application program, or close 2 grades of functions all in application program and Function rank is lower than 2 grades of function (3 grades of functions, 4 grades of functions etc.).
From the foregoing, it will be observed that the method for closing of application program provided in an embodiment of the present invention, using function in acquisition application program Between call relation the out code of the application program is received, and obtain to the function setup function rank in the application program The initiation culture of the application program within a preset period of time is taken, determines initiation culture section locating for the initiation culture, and obtain First object function rank corresponding with the initiation culture section judges whether the first object function rank is minimum function grade Not, if function corresponding with the first object function rank in the application program is then closed, if otherwise closing the application program In function corresponding with the first object function rank and function rank be lower than the function of the first object function rank, with The current information about power of terminal is obtained afterwards, and obtains the second objective function rank corresponding with the information about power, closes the application Function corresponding with the second objective function rank in program;The program is first shut off corresponding with the initiation culture of the application program Function, and be further turned off function corresponding with the information about power, since there is no directly closing application programs for the program, and Be only close application program in corresponding function, therefore, when needing to restart the application program, it is only necessary to re-call by The function of closing can promote application program weight while reducing terminal power consumption in terms of existing technologies The speed newly started.
Embodiment three
Current intelligent terminal is both provided with many sensors, for example, GPS (Global Positioning System, global positioning system) sensor, gravity sensor, fingerprint sensor, imaging sensor, audio sensor etc., application Program calls a function to call these sensors by the sensor in application program, and each sensor can apply journey by multiple Sequence is called, and each application program can also call multiple sensors.
In closing application program, the calling function of commonly used Calling sensor is not off, and calls function The power consumption that will increase terminal is still remained operational after closing application program, and then increases the electric quantity consumption of terminal, is reduced The cruising ability of terminal.
The angle of closing device from application program is described the present embodiment, which specifically can integrate in terminal In, which can be the equipment such as smart phone, tablet computer.
The embodiment of the present invention provides a kind of method for closing of application program, can in closing application program closure sensor Calling function, this method comprises: obtain application program in call sensor calling function set, to the tune in the set With function setup function rank, the out code of the application program is received, and the application program is obtained according to the out code and is existed User behavior characteristics information in preset time period, according to the corresponding first object function grade of the user behavior characteristics acquisition of information Not, and according to the first object function rank corresponding calling function in the set is closed.
As shown in figure 3, the method for closing of the application program, detailed process can be such that
S301 obtains the set that the calling function of sensor is called in application program.
Specifically, there are multiple calling functions in application program for calling multiple sensors, for example, function E is called to use In calling fingerprint sensor, calls function F for calling imaging sensor, call function G for calling audio sensor, then may be used It include calling function E, calling function F, calling function G to get the set.
S302, to the calling function setup function rank in the set.
It specifically, can be important according to the function for the sensor that multiple calling function is called when function rank is set Property be configured, for example, authentication mode when fingerprint sensor is into the application program, then the importance of fingerprint sensor Highest, it is 2 grades that settable fingerprint sensor, which calls the rank of function E, and imaging sensor is the base for realizing the application program This function, then the importance of imaging sensor is taken second place, and it is 3 grades that settable imaging sensor, which calls the rank of function F, audio sensing Device is the additional function for realizing the application program, then the importance of audio sensor is minimum, can call audio sensor The rank of function G is set as 4 grades.
It in a preferred embodiment of the invention, can be to the calling function setup marker in set, for example, will collection The marker of all calling functions in conjunction is set as 1, and marker can also include color, for example, by all tune in set Green is set as with the marker of function.
S303, receives the out code of the application program, and obtains the user's row of the application program within a preset period of time It is characterized information.
Specifically, receive the out code of application program mode can there are many, for example, can pass through screen receive use The out code that the touch operation at family is sent also can receive the out code that user is sent by remote operation, can also be Receive the out code of the timers trigger of terminal inner.
After receiving out code, the user behavior characteristics information of application program within a preset period of time is obtained.This is default Period can be a time value for being stored in advance in terminal built-in storage region, is also possible to user setting and is stored in end A time value for holding built-in storage region, for example, 10 minutes.User behavior characteristics information can be user to the application program Operation information, for example, the application program is run in 10 minutes 3 minutes, for another example starting the application program in 10 minutes Initiation culture be 0.04.
S304 obtains first object function rank corresponding with the user behavior characteristics information.
Specifically, user behavior characteristics information and objective function grade can be stored in advance in the built-in storage region of terminal Mapping relations between not, the mapping relations by user setting and can also be stored in the built-in storage region of terminal.When obtaining After getting user behavior characteristics information, the mapping relations being stored in terminal built-in storage region are called, according to the mapping relations Obtain objective function rank.For example, the corresponding objective function rank of initiation culture 0.04 is 3 grades in mapping relations, then work as acquisition To user behavior characteristics information be initiation culture be 0.04 when, corresponding objective function grade can be got according to the mapping relations It Wei not be 3 grades.
S305 closes calling function corresponding with the first object function rank in the set.
Specifically, when getting objective function rank, corresponding calling function in set is closed, for example, getting mesh When scalar functions rank is 3 grades, 3 grades of calling functions all in set are closed, 3 grades of calling letters all in set can also be closed Several and 4 grades of calling functions.
In a preferred embodiment of the invention, quilt can also be changed after corresponding calling function in closing set The marker of the calling function of closing, for example, all markers for calling function pent in set are changed to 2 by 1, mark Knowing position can also include color, for example, all markers for calling function pent in set are changed to red by green.
From the foregoing, it will be observed that the method for closing of application program provided in an embodiment of the present invention, is called using obtaining in application program The set of the calling function of sensor receives the closing of the application program to the calling function setup function rank in the set Instruction, and the user behavior characteristics information of the application program within a preset period of time is obtained, it obtains and believes with the user behavior characteristics Corresponding first object function rank is ceased, and closes calling function corresponding with the first object function rank in the set;It should Scheme to the calling function setup function rank in set, then obtains corresponding objective function rank, and close set first In calling function corresponding with the objective function rank, due to the program there is no directly close application program, but closing answer With calling function corresponding in program, therefore, when needing to restart the application program, it is only necessary to re-call pent Function is called, in terms of existing technologies, application program can be promoted again while reducing terminal power consumption The speed of starting.
Example IV
In order to better implement above method, the embodiment of the present invention also provides a kind of closing device of application program, this is answered It can integrate in the terminal with the closing device of program, which specifically can be the equipment such as smart phone, tablet computer.
As shown in fig. 4 a, the closing device of the application program may include: setup module 401, first obtain module 402, Second obtains module 403, first processing module 404, is described in detail below:
The setup module 401, for the function setup function rank in application program;
The first acquisition module 402, for receiving the out code of the application program, and obtains the application program default User behavior characteristics information in period;
The second acquisition module 403, for obtaining first object function rank corresponding with the user behavior characteristics information;
The first processing module 404, for closing function corresponding with the first object function rank in the application program.
Preferably, as shown in Figure 4 b, which may include: the first acquisition submodule 4011, setting submodule 4012, specific as follows:
First acquisition submodule 4011, for obtaining the call relation in application program between function;
The setting submodule 4012, for the function setup function rank in the application program.
Preferably, which includes initiation culture, and as illustrated in fig. 4 c, which can It is specific as follows to comprise determining that submodule 4031, the second acquisition submodule 4032:
The determination submodule 4031, for determining initiation culture section locating for the initiation culture;
Second acquisition submodule 4032, for obtaining first object function rank corresponding with the initiation culture section.
Preferably, first object function rank is lower than highest function rank, as shown in figure 4d, the first processing module 404 It may include: judging submodule 4041, handle submodule 4042, specific as follows:
The judging submodule 4041, for judging whether the first object function rank is minimum function rank;
The processing submodule 4042, should in the application program for closing when the judging submodule 4041 is judged as YES The corresponding function of first object function rank;When the judging submodule 4041 is judged as NO, this in the application program is closed The corresponding function of one objective function rank and function rank are lower than the function of the first object function rank.
Preferably, as shown in fig 4e, the closing device of the application program can also include: Second processing module 405;This Two processing modules 405 are used for:
Obtain the current information about power of terminal;
The second objective function rank corresponding with the information about power is obtained, which is superior to first mesh Scalar functions rank;
Close function corresponding with the second objective function rank in the application program.
From the foregoing, it will be observed that the closing device of application program provided in an embodiment of the present invention, applies journey by 401 pairs of setup module Function setup function rank in sequence, first, which obtains module 402, receives the out code of the application program, and obtains this using journey The user behavior characteristics information of sequence within a preset period of time, second, which obtains module 403, obtains and the user behavior characteristics information pair The first object function rank answered, first processing module 404 are closed corresponding with the first object function rank in the application program Function;Since there is no directly closing application programs for the program, but close corresponding function in application program, therefore, In When needing to restart the application program, it is only necessary to pent function is re-called, it in terms of existing technologies, can To promote the speed of application program restarting while reducing terminal power consumption.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not It repeats again.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium In matter, storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The method for closing and device for being provided for the embodiments of the invention a kind of application program above are described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (8)

1. a kind of method for closing of application program characterized by comprising
To the function setup function rank in application program, the application program includes multiple functions;
The out code of the application program is received, and obtains the user behavior characteristics of the application program within a preset period of time Information;
First object function rank corresponding with the user behavior characteristics information is obtained, the first object function rank is lower than Highest function rank;
Judge whether the first object function rank is minimum function rank, is closed first described in the application program Otherwise the corresponding function of objective function rank closes the corresponding function of first object function rank described in the application program, And function rank is lower than the function of the first object function rank;
Obtain the current information about power of terminal;
The second objective function rank corresponding with the information about power is obtained, second objective function is superior to described first Objective function rank;
Close function corresponding with the second objective function rank in the application program;
When restarting the application program, the pent function is re-called.
2. method for closing according to claim 1, which is characterized in that the function setup function grade in application program Other step specifically includes:
Obtain the call relation in application program between function;
To the function setup function rank in the application program.
3. method for closing according to claim 1, which is characterized in that the user behavior characteristics information includes starting frequency The step of rate, acquisition first object function rank corresponding with the user behavior characteristics information, specifically includes:
Determine initiation culture section locating for the initiation culture;
Obtain first object function rank corresponding with the initiation culture section.
4. method for closing according to claim 1, which is characterized in that the function setup function grade in application program Other step specifically includes:
Obtain the set that the calling function of sensor is called in application program;
To the calling function setup function rank in the set;
Described the step of closing function corresponding with the first object function rank in the application program, specifically includes:
Close calling function corresponding with the first object function rank in the set.
5. a kind of closing device of application program characterized by comprising
Setup module, for the function setup function rank in application program, the application program to include multiple functions;
First obtains module, for receiving the out code of the application program, and obtains the application program in preset time User behavior characteristics information in section;
Second obtains module, for obtaining corresponding with user behavior characteristics information first object function rank, described the One objective function rank is lower than highest function rank;
First processing module is described in then closing for judging whether the first object function rank is minimum function rank Otherwise the corresponding function of the rank of first object function described in application program closes first object letter described in the application program The not corresponding function of several levels and function rank are lower than the function of the first object function rank;
Second processing module, for obtaining the current information about power of terminal;And obtain corresponding with the information about power second Objective function rank, second objective function is superior to the first object function rank, and closes the application program In function corresponding with the second objective function rank;
Starting module, for re-calling the pent function when restarting the application program.
6. closing device according to claim 5, which is characterized in that the setup module specifically includes:
First acquisition submodule, for obtaining the call relation in application program between function;
Submodule is set, for the function setup function rank in the application program.
7. closing device according to claim 5, which is characterized in that the user behavior characteristics information includes starting frequency Rate, the second acquisition module specifically include:
Submodule is determined, for determining initiation culture section locating for the initiation culture;
Second acquisition submodule, for obtaining first object function rank corresponding with the initiation culture section.
8. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program makes Computer executes method according to any of claims 1-4.
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 CN106020907A (en) 2016-10-12
CN106020907B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095492B (en) * 2016-05-31 2017-11-07 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106095412B (en) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106020907B (en) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN107800757B (en) * 2017-03-28 2020-10-27 平安壹钱包电子商务有限公司 User behavior recording method and device
CN108008988A (en) * 2017-12-27 2018-05-08 深圳豪客互联网有限公司 A kind of apparatus control method and device
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

Also Published As

Publication number Publication date
WO2017206865A1 (en) 2017-12-07
CN106020907A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020907B (en) A kind of method for closing and device of application program
CN106095412B (en) A kind of method for closing and device of application program
CN110221921A (en) EMS memory management process, terminal and computer readable storage medium
CN106055076B (en) A kind of sensor method for closing and device
CN107241513B (en) Charging reminding method, device, storage medium and electronic equipment
WO2012152049A2 (en) Method and device for shutting down application
EP2672781B1 (en) Method and mobile terminal for predicting user operation
CN105828424A (en) Intelligent terminal and energy consumption quantitative control method thereof
CN106126327B (en) A kind of control method and control device of application program launching
CN106022108B (en) A kind of synchronization management method and terminal device
CN107482709A (en) A kind of charging management method, device, electronic equipment and readable storage medium storing program for executing
CN104580710A (en) Automatic power saving method based on learning operation habit of user
CN106201574A (en) A kind of startup method and device of application interface
CN108089970A (en) Predict method, terminal and the storage medium of remaining capacity up time
CN102890628A (en) Method and device for displaying target object
CN106331318A (en) Automatic application opening method and device
CN105704758A (en) Method and device of closing social applications based on flow monitoring
CN106055075B (en) A kind of method for closing and device of sensor
CN106095054B (en) A kind of method for closing and device of application program
CN103533153A (en) Shaking help-seeking mechanism based on mobile terminal
CN107729781A (en) The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium
CN106095055B (en) A kind of method for closing and device of application program
CN108388458A (en) Message treatment method and Related product
CN108881630B (en) Reverse charging management method and device and terminal
CN106095487B (en) A kind of method for closing and device of application program

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