CN106020910A - Application shut-down method and device - Google Patents
Application shut-down method and device Download PDFInfo
- Publication number
- CN106020910A CN106020910A CN201610383807.7A CN201610383807A CN106020910A CN 106020910 A CN106020910 A CN 106020910A CN 201610383807 A CN201610383807 A CN 201610383807A CN 106020910 A CN106020910 A CN 106020910A
- Authority
- CN
- China
- Prior art keywords
- function
- rank
- application program
- function rank
- object function
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (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, first pressing operation of a user on a terminal is detected, a first pressure value corresponding to the first pressing operation is obtained, a first target function grade corresponding to the first pressure value is obtained later, 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 pressing pressure of the user on the terminal, and electricity consumption of the 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
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 brings advantage to the user.People's life, application function is the most 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 can consume greatly
The electricity of amount, reduces the flying power of intelligent terminal.
At present, in order to lower the consumption of intelligent terminal's electricity, and then the flying power of lifting intelligent terminal, intelligence
Terminal can close application program, i.e. close all of function in application program and (include principal function, subfunction
Etc.);Such as intelligent terminal can be automatically switched off application program, or close according to the operation of user should
Use program;Specifically, intelligent terminal can monitor user's operation to intelligent terminal, then, based on this behaviour
Make to close corresponding application program.
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;
Detection user is for the first pressing operation of terminal, and obtain that described first pressing operation is corresponding first
Force value;
Obtain the first object function rank that described first force value is corresponding;
Close function corresponding with described first object function rank in described application program.
Further, the step of the first object function rank that the described force value of described acquisition is corresponding is specifically wrapped
Include:
Judge that described first force value is whether in the first preset pressure value interval;
The most then obtain the first preset function rank that described first preset pressure value interval is corresponding, and should
First preset function rank is as first object function rank.
Further, the described step to the function setup function rank in application program specifically includes:
Obtain the call relation between function in application program;
To the function setup function rank in application program.
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, close function corresponding with described first object function rank in described application program it
After, described method for closing also includes:
Detection user is for the second pressing operation of terminal, and obtain that described second pressing operation is corresponding second
Force value;
Obtain the second object function rank that described second force value is corresponding, wherein, described second object function
It is superior to described first object function rank;
Close residue corresponding with described second object function rank in described application program and be not turned off function.
Further, the step of the second object function rank that described second force value of described acquisition is corresponding is concrete
Including:
Judge that described second force value is whether in the second preset pressure value interval;
The most then obtain the second preset function rank that the second preset pressure value interval is corresponding, described second pre-
If function is superior to described first object function rank;
Using this second preset function rank as the second object function rank.
Further, corresponding with described second object function rank in the described application program of described closedown residue
The step being not turned off function specifically includes:
Judge whether described second object function rank is the highest function rank;
The most then close all of residue in described application program and be not turned off function;
If it is not, then close described residue to be not turned off the function that described in function, the second object function rank is corresponding,
And function rank is less than the function of described second object function rank.
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 detection module, for detecting the user's the first pressing operation for terminal, and obtains described first
The first force value that pressing operation is corresponding;
First acquisition module, for obtaining the first object function rank that described first force value is corresponding;
First processing module, corresponding with described first object function rank for closing in described application program
Function.
Further, described first acquisition module specifically includes:
Judge submodule, be used for judging that described first force value is whether in the first preset pressure value interval;
Second obtains submodule, for when described judgement submodule is judged as YES, obtains described first and presets
The first preset function rank that force value interval is corresponding, and using this first preset function rank as first object
Function rank.
Further, the described module that arranges specifically includes:
3rd obtains submodule, for obtaining in application program the call relation between function;
Submodule is set, for the function setup function rank in application program.
Further, described first processing module specifically for:
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, described shutoff device also includes:
Second detection module, for detecting the user's the second pressing operation for terminal, and obtains described second
The second force value that pressing operation is corresponding;
4th acquisition module, for obtaining the second object function rank that described second force value is corresponding, wherein,
Described second object function is superior to described first object function rank;
Second processing module, corresponding with described second object function rank for closing in described application program
Residue is not turned off function.
The embodiment of the present invention uses the function setup function rank in application program, it is then detected that user's pin
The first pressing operation to terminal, and obtain the first force value that described first pressing operation is corresponding, obtain subsequently
Take the first object function rank that described first force value is corresponding, close in described application program with described first
The function that object function rank is corresponding;The program can press the pressure closedown application program of terminal based on user
The function of middle correspondence, can reduce the electric quantity consumption of terminal, and owing to the program does not directly close application
Program, but close function corresponding in application program, therefore, when needs restart this application program,
Have only to the pent function of re invocation, for hinge structure, terminal power can reduced
While consumption, 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 a is the structural representation of the shutoff device of the first application program that the embodiment of the present invention three provides;
Fig. 3 b is the structural representation of the shutoff device of the second application program that the embodiment of the present invention three provides;
Fig. 3 c is the structural representation of the shutoff device of the third application program that the embodiment of the present invention three provides;
Fig. 3 d is the structural representation of the shutoff device of the 4th kind of application program that the embodiment of the present invention three 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.To 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, inspection
Survey the user's the first pressing operation for terminal, and obtain the first force value that this pressing operation is corresponding, obtain
The first object function rank that this first force value is corresponding, close in this application program with this first object function
The function that rank is corresponding.
As it is shown in figure 1, the method for closing of this application program, idiographic flow may include that
101, to the function setup function rank in application program.
In concrete application, it is possible to operating system (such as, Android system, Android) upper run appoint
What application program, has been required for a principal function (or referred to as monoexponential function), and principal function is application journey
The entrance of sequence, for calling other various functions (subfunction), simultaneously because principal function needs
Providing the operation result of application program, therefore principal function is also the outlet of application program.Generally principal function compares
Succinctly, application program needs the detail of the function realized to be packaged into inside subfunction for principal function tune
With, additionally, subfunction can also call other subfunction.
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 with the call relation between function, such as, the rank of principal function is set to 1 grade,
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 grades,
The rank of the function of 3 grades of function calls is set to 4 grades, by that analogy.The numerical value of function rank shows the most greatly this
The rank that function is in the position of more lower floor, i.e. this function in call relation is the lowest.
When according to said method, function rank is set, the function setup function rank in application program specifically may be used
To comprise the following steps:
Obtain the call relation between function in application program;
To the function setup function rank in application program.
Specifically, when application program launching, can come according to the operation sequential of each function in application program
Obtaining the call relation between function, such as, first function A runs, and function B runs subsequently, then letter
Number C runs, and last function D runs, then the call relation that can get between function is: function A calls
Function B, function B call 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.
102, detection user is for the first pressing operation of terminal, and obtain that this pressing operation is corresponding first
Force value.
Concrete, this pressing operation can be user's touch operation for touch screen, it is also possible to be for thing
Reason button or the pressing operation of soft-key button, it is also possible to be other type of operation, the particular type of pressing operation
Different because of the operation interface type of terminal.
Detection user has multiple for the method for the pressing operation of terminal, such as, is examined by pressure transducer
Survey the pressing operation of user.The pressure transducer arranged in terminal detects the operation interface of terminal in real time and is subject to
Pressure, and sense this force value, show when force value is undergone mutation to operate interface have received user by
Press operation, and obtain the force value (the first force value) of this pressing operation.
In one preferred embodiment, pressure transducer can be shown on the display interface of terminal in real time
The force value sensed.
103, obtain the first object function rank that this first force value is corresponding.
Specifically, can prestore in the memory area of terminal between force value and object function rank
Mapping relations, these mapping relations can also be configured by user and be stored in the memory area of terminal.When
The pressing operation of user detected, and after getting the force value of this pressing operation, call and be stored in terminal
Mapping relations in memory area, obtain the rank of object function according to these mapping relations.Such as, pass is mapped
The object function rank that in system, force value 0.5N is corresponding is 3 grades, then when pressure user's pressing operation being detected
When value is for 0.5N, the object function rank that can get correspondence is 3 grades.
In actual application, it is contemplated that the force value of pressing operation, when carrying out pressing operation, is controlled not by user
Can be very accurate, therefore, in mapping relations, force value corresponding to certain function rank can be a pressure
Value interval.Therefore, the first object function rank obtaining this first force value corresponding specifically can include following
Step:
Judge that this first force value is whether in the first preset pressure value interval;
The most then obtain the first preset function rank that this first preset pressure value interval is corresponding, and by this
One preset function rank is as first object function rank.
Specifically, after the pressing operation of user being detected and getting force value, such as 0.5N, it is judged that should
Whether force value in preset pressure value interval, such as, this force value interval be [0.3N, 0.6N), then may be used
Be judged as this force value in preset pressure value interval, further according to this force value interval function rank it
Between mapping relations obtain corresponding preset function rank, such as force value interval [0.3N, 0.6N) corresponding
Preset function rank be 3 grades, then the preset function rank that can get correspondence is 3 grades, and by this default letter
Several levels other 3 grades as object function rank.
This preset pressure value interval can be the range of pressure values being stored in advance in terminal area, it is possible to
To be user setup the range of pressure values being stored in terminal area.
104, close 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 3 grades, close all of 3 grades of functions in application program.
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 with this first object function rank in this application program and can specifically include following steps:
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 3 grades, then judge whether
Exist by 4 grades of functions of 3 grades of function calls.
When being judged as YES, close the function that this object function rank is corresponding, such as, close all of 3 grades
Function;When being judged as NO, closedown function rank is less than or equal to the function of this object function rank, such as,
Close all of 3 grades of functions and 4 grades of functions and 5 grades of functions (when there is 5 grades of functions).
In actual application, user carry out pressing operation to close corresponding function after, may also may proceed to into
Row pressing operation is to continue to close other function, to reduce the electric quantity consumption of terminal further.Therefore, close
After closing function corresponding with this first object function rank in this application program, following step can be farther included
Rapid:
Detection user is for the second pressing operation of terminal, and obtains the second pressure that this second pressing operation is corresponding
Force value;
Obtain the second object function rank that this second force value is corresponding, wherein, this second object function rank
Higher than first object function rank;
Close residue corresponding with this second object function rank in this application program and be not turned off function.
Wherein, the second object function rank obtaining this second force value corresponding can specifically include following step
Rapid:
Judge that this second force value is whether in the second preset pressure value interval;
The most then obtain the second preset function rank that the second preset pressure value interval is corresponding, this second preset
Function is superior to this first object function rank;
Using this second preset function rank as the second object function rank.
Wherein, close residue corresponding with this second object function rank in this application program be not turned off function can
To specifically include following steps:
Judge whether this second object function rank is the highest function rank;
The most then close all of residue in this application program and be not turned off function;
If it is not, then close this residue to be not turned off in function the function that this second object function rank is corresponding, and
Function rank is less than the function of this second object function rank.
Specifically, after close function corresponding in this application program according to first object function rank, continue
User is for the pressing operation of terminal in detection, such as, is detected the pressing operation of user by pressure transducer.
The pressure transducer arranged in terminal continues the operation interface pressure experienced of detection terminal, and senses this pressure
Value, restores after first time pressing operation when force value and (restores and i.e. represent that the first time pressing operation of user is tied
Bundle) and show that operating interface have received the pressing operation of user again, obtains subsequently when again undergoing mutation
The force value (the second force value) of this pressing operation, and judge whether this second force value presets pressure second
In force value interval.
This second preset pressure value interval can be the range of pressure values being stored in advance in terminal area,
Such as [0.6N, 0.9N), if the second force value obtained is 0.8N, then can determine whether that this second force value is at this
In second preset pressure value interval.Now, this second force value interval is obtained according to default mapping relations right
The the second preset function rank answered, such as in mapping relations force value interval [0.6N, 0.9N) corresponding letter
Several levels is not 2 grades, then can get the second preset function rank is 2 grades, and by this second preset function rank
2 grades as the second object function rank.
Determine whether whether this second object function rank is the highest function rank.The method judged can have
Multiple, such as, inquire about in all functions that this application program runs in systems, if existence function calls
The subfunction that this object function rank is corresponding.
When not existence function calls subfunction corresponding to this object function rank, it is judged that be yes, i.e. this second
Object function rank is the highest function rank, then close all of residue in this application program and be not turned off function,
I.e. close all survival functions outside the function that pressing operation is corresponding for the first time;When existence function calls this mesh
During subfunction corresponding to scalar functions rank, it is judged that being no, i.e. this second object function rank is not the highest function
Rank, then close residue and be not turned off in function function corresponding to this second object function rank and function rank
Function less than this second object function rank.
In actual application, second pressing operation of user detected, and after closing the function of correspondence, also may be used
To continue the 3rd pressing operation of detection user, the function corresponding to close the 3rd pressing operation of user.
Detect user and for the 3rd pressing operation of terminal and close function corresponding to the 3rd pressing operation
Implementation method and detection user are for the second pressing operation of terminal and to close this second pressing operation corresponding
The implementation method of function is identical, does not repeats them here.
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, detection user is for the first pressing operation of terminal, and obtains this pressing operation
The first corresponding force value, obtains the first object function rank that this force value is corresponding subsequently, and closes and should answer
Technical scheme with function corresponding with this first object function rank in program;The program first corresponds to use journey
Function setup function rank in sequence, then obtains the mesh of correspondence according to the force value of the pressing operation of user
Scalar functions rank, and close function corresponding with this object function rank in application program, due to the program also
The most directly close application program, but 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 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, by the most integrated in the terminal, with movement for the shutoff device with application program
It is described in detail as a example by the method for closing of the application program of terminal.
As in figure 2 it is shown, the method for closing of this application program, idiographic flow can be such that
201, obtain the call relation between function in application program.
In being embodied as, the mode obtaining in application program the call relation between function has multiple, such as,
When application program launching, can obtain between function according to the operation sequential of each function in application program
Call relation, such as, first function A runs, and function B runs subsequently, then function C run, finally
Function D runs, then the call relation that can get between function is: function A calls function B, function B
Call function C, function C and call function D.
202, to the function setup function rank in 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.
203, detection user is for the first pressing operation of terminal, and obtain that this pressing operation is corresponding first
Force value.
Specifically, this first pressing operation is user's touch operation for touch screen.The pressure arranged in terminal
Force transducer detects the touch screen pressure experienced of terminal in real time, and senses this force value, when force value occurs
Show during sudden change that touch screen have received the pressing operation of user, and obtain the force value (of this pressing operation
One force value).Such as, the force value that pressure transducer detected within 1 minute is 0, works as force value
Show when sporting 0.5N that operating interface have received the pressing operation of user, obtains this force value simultaneously, and
In this force value that the display screen display of terminal gets.
204, it is judged that whether this first force value is in the first preset pressure value interval.
Specifically, this first preset pressure value interval is that terminal is stored in advance in the built-in of terminal and deposits when dispatching from the factory
A range of pressure values in storage area territory, such as, this first preset pressure value interval be [0.3N, 0.6N),
When terminal gets the first force value, such as, the first force value is 0.5N, then from the built-in storage of terminal
Region is called this first preset pressure value interval, ask for this first force value and this first preset pressure respectively
The difference of the difference between pressure upper limit value and threshold pression value that value is interval, 0.5N and pressure upper limit value 0.6N
Being negative, the difference of 0.5N and threshold pression value 0.3N is just, then can determine whether that this first force value is first pre-at this
If in force value interval.
205, the most then obtain the first preset function rank that this first preset pressure value interval is corresponding, and
Using this first preset function rank as first object function rank.
Specifically, it is previously stored with in the built-in memory area of terminal between the function rank of force value interval
Mapping relations, such as, force value interval [0.3N, 0.6N) corresponding function rank is 3 grades, force value
Interval [0.6N, 0.9N) corresponding function rank is 2 grades.When terminal judges the first force value is preset first
Time in force value interval, call this mapping relations, according to this first preset pressure value interval [0.3N, 0.6N)
Determine that corresponding function rank is 3 grades, and using 3 grades as first object function rank.
206, it is judged that whether this first object function rank is minimum function rank.
Specifically, in all functions that this application program of terminal inquiry runs in systems, if exist by this
The subfunction of the function call that first object function rank is corresponding.Such as, this first object function rank is 3
Whether level, then inquire about and exist by 4 grades of functions of 3 grades of function calls.If existing, then it is judged as this first object
Function rank is not minimum function rank, if not existing, is then judged as that this first object function rank is minimum
Function rank.
207, close the function that in this application program, this first object function rank is corresponding.
In concrete application, when being judged as that this first object function rank is minimum function rank, such as, the
One object function rank is 3 grades, then close all 3 grades of functions that this application program runs in systems.
208, close the function that in this application program, this first object function rank is corresponding, and function rank
Function less than this first object function rank.
In concrete application, when being judged as that this first object function rank is not minimum function rank, such as,
First object function rank is 3 grades, then be related to all 3 grades of functions that this application program runs in systems and
The function of 3 grades of following ranks of function (4 grades, 5 grades of functions etc.).
209, detection user is for the second pressing operation of terminal, and it is corresponding to obtain this second pressing operation
Second force value;
210, it is judged that whether this second force value is in the second preset pressure value interval;
211, the most then obtain the second preset function rank that the second preset pressure value interval is corresponding, this is years old
Two preset function are superior to this first object function rank;
212, using this second preset function rank as the second object function rank.
In concrete application, this second preset function is superior to this first object function rank, and such as, this is the years old
When one object function rank is 3 grades, this second preset function rank can only be 2 grades or 1 grade.Above-mentioned for
The handling process of second pressing operation at family is identical, i.e. with the handling process of the first pressing operation for user
Step 209~212 is identical with the implementation method of step 203~205, does not repeats them here.
213, it is judged that whether this second object function rank is the highest function rank.
In concrete application, after determining the second object function rank, it is judged that whether this second object function rank is
1 grade, namely judge whether function corresponding to this second object function rank is principal function.The most then perform
Step 214, if it is not, then perform step 215.
214, close all of residue in this application program and be not turned off function.
Specifically, when judging that the second object function rank is the highest function rank, namely the second object function
Rank is 1 grade, closes all functions that this application program currently runs the most in systems.
215, close this residue and be not turned off in function the function that this second object function rank is corresponding, Yi Jihan
Several levels Di Yu the function of this second object function rank.
Specifically, when judging that the second object function rank is not the highest function rank, namely the second target letter
Several levels is not the most 1 grade, and such as, the second object function rank is 2 grades, then close this application program and currently still exist
The all 2 grades of functions run in system and function (3 grades, 4 grades, 5 grades of functions of 2 grades of following ranks of function
Deng).
In actual application, second pressing operation of user detected, and after closing the function of correspondence, also may be used
To continue the 3rd pressing operation of detection user, the function corresponding to close the 3rd pressing operation of user.
Detect user and for the 3rd pressing operation of terminal and close function corresponding to the 3rd pressing operation
Implementation method and detection user are for the second pressing operation of terminal and to close this second pressing operation corresponding
The implementation method of function is identical, does not repeats them here.
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 also arranges function rank, and first pressing operation of detection user also obtains first
Force value, it is judged that whether this first force value is in the first preset pressure value interval, if it is pre-then to obtain first
If function rank and using this first preset function rank as first object function rank, it is judged that this first object
Whether function rank is minimum function rank, if then closing the function that first object function rank is corresponding, if
Otherwise close function corresponding to first object function rank and function rank less than first object function rank
Function, detect second pressing operation of user subsequently and obtain the second force value, it is judged that this second force value
Whether in the second preset pressure value interval, if then obtaining the second preset function rank and this second being preset
Function rank is as the second object function rank, it is judged that whether this second object function rank is the highest function level
Not, if then closing all of residue in this application program to be not turned off function, it is not turned off if otherwise closing residue
Function and function rank that in function, this second object function rank is corresponding are less than this second object function level
The scheme of other function;The program closes the function of correspondence according to first pressing operation of user, goes forward side by side one
Walk to close according to second pressing operation of user and remain the function being not turned off in function correspondence, due to the program
Directly do not close application program, but close function corresponding in application program according to user operation, because of
This, when needs restart this application program, it is only necessary to the pent function of re invocation, relatively
For prior art, while can consuming reducing terminal power, promote what application program restarted
Speed.
Embodiment three,
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 Figure 3 a, the shutoff device of this application program may include that arranging module 301, first detects
Module the 302, first acquisition module the 303, first processing module 304, is described in detail below:
This arranges module 301, for the function setup function rank in application program;
This first detection module 302, for detecting the user's the first pressing operation for terminal, and acquisition should
The first force value that pressing operation is corresponding;
This first acquisition module 303, for obtaining the first object function rank that this first force value is corresponding;
This first processing module 304, is used for closing in this application program corresponding with this first object function rank
Function.
Preferably, as shown in Figure 3 b, this first acquisition module 303 may include that judge submodule 3031,
Second obtains submodule 3032, specific as follows:
This judgement submodule 3031, is used for judging that this first force value is the most interval at the first preset pressure value
In;
This second obtains submodule 3032, for when this judgement submodule is judged as YES, obtains this first pre-
If the first preset function rank that force value interval is corresponding, and using this first preset function rank as the first mesh
Scalar functions rank.
Preferably, as shown in Figure 3 c, this arrange module 301 may include that the 3rd acquisition submodule 3011,
Submodule 3012 is set, specific as follows:
3rd obtains submodule 3011, for obtaining in application program the call relation between function;
This arranges submodule, for the function setup function rank in application program.
Preferably, this first processing module 304 specifically for:
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.
Preferably, as shown in Figure 3 d, the shutoff device of this application program can also include: the second detection module
305, the 4th acquisition module the 306, second processing module 307, specific as follows:
This second detection module 305, for detecting the user's the second pressing operation for terminal, and acquisition should
The second force value that second pressing operation is corresponding;
4th acquisition module 306, for obtaining the second object function rank that this second force value is corresponding,
Wherein, this second object function is superior to this first object function rank;
This second processing module 307, is used for closing in this application program corresponding with this second object function rank
Residue be not turned off function.
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 301
To the function setup function rank in application program, first detection module 302 detects user for the of terminal
One pressing operation also obtains the first force value that this pressing operation is corresponding, and the first acquisition module 303 obtains this pressure
The first object function rank that force value is corresponding, the first processing module 304 close in this application program with this first
The function that object function rank is corresponding;The program first corresponds to use the function setup function rank in program, so
The rear object function rank obtaining correspondence, and close letter corresponding with this object function rank in application program
Number, owing to the program does not directly close application program, but closes function corresponding in application program,
Therefore, when needs restart this application program, it is only necessary to the pent function of re invocation, phase
For prior art, while can consuming reducing terminal power, promote application program and restart
Speed.
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, as being stored in the memorizer of terminal, and by least one in this terminal
Processor performs.Wherein, storage medium may include that read only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Method for closing and device to a kind of application program that the embodiment of the present invention provides have been carried out in detail above
Introducing, its each functional module can be integrated in one and process in chip, it is also possible to be the independent physics of modules
Exist, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated module is the most permissible
The form using hardware realizes, it would however also be possible to employ the form of software function module realizes.Tool used herein
Principle and the embodiment of the present invention are set forth by body example, and the explanation of above example is only intended to side
Assistant solves method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to this
Bright thought, the most all will change, in sum, and this explanation
Book content should not be construed as limitation of the present invention.
Claims (12)
1. the method for closing of an application program, it is characterised in that including:
To the function setup function rank in application program;
Detection user is for the first pressing operation of terminal, and obtain that described first pressing operation is corresponding first
Force value;
Obtain the first object function rank that described first force value is corresponding;
Close function corresponding with described first object function rank in described application program.
2. method for closing as claimed in claim 1, it is characterised in that described first force value of described acquisition
The step of corresponding first object function rank specifically includes:
Judge that described first force value is whether in the first preset pressure value interval;
The most then obtain the first preset function rank that described first preset pressure value interval is corresponding, and should
First preset function rank is as first object function rank.
3. method for closing as claimed in claim 1, it is characterised in that described to the function in application program
The step arranging function rank specifically includes:
Obtain the call relation between function in application program;
To the function setup function rank in application program.
4. method for closing as claimed in claim 1, it is characterised in that described first object function rank is low
In the highest function rank;Letter corresponding with described first object function rank in the described application program of described closedown
The step of number 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.
5. method for closing as claimed in claim 4, it is characterised in that in closing described application program with
After the function that described first object function rank is corresponding, described method for closing also includes:
Detection user is for the second pressing operation of terminal, and obtain that described second pressing operation is corresponding second
Force value;
Obtain the second object function rank that described second force value is corresponding, wherein, described second object function
It is superior to described first object function rank;
Close residue corresponding with described second object function rank in described application program and be not turned off function.
6. method for closing as claimed in claim 5, it is characterised in that described second force value of described acquisition
The step of the second corresponding object function rank specifically includes:
Judge that described second force value is whether in the second preset pressure value interval;
The most then obtain the second preset function rank that the second preset pressure value interval is corresponding, described second pre-
If function is superior to described first object function rank;
Using this second preset function rank as the second object function rank.
7. method for closing as claimed in claim 5, it is characterised in that in the described application program of described closedown
The residue corresponding with described second object function rank is not turned off the step of function and specifically includes:
Judge whether described second object function rank is the highest function rank;
The most then close all of residue in described application program and be not turned off function;
If it is not, then close described residue to be not turned off the function that described in function, the second object function rank is corresponding,
And function rank is less than the function of described second object function rank.
8. 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 detection module, for detecting the user's the first pressing operation for terminal, and obtains described first
The first force value that pressing operation is corresponding;
First acquisition module, for obtaining the first object function rank that described first force value is corresponding;
First processing module, corresponding with described first object function rank for closing in described application program
Function.
9. shutoff device as claimed in claim 8, it is characterised in that described first acquisition module specifically wraps
Include:
Judge submodule, be used for judging that described first force value is whether in the first preset pressure value interval;
Second obtains submodule, for when described judgement submodule is judged as YES, obtains described first and presets
The first preset function rank that force value interval is corresponding, and using this first preset function rank as first object
Function rank.
10. shutoff device as claimed in claim 8, it is characterised in that the described module that arranges specifically includes:
3rd obtains submodule, for obtaining in application program the call relation between function;
Submodule is set, for the function setup function rank in application program.
11. shutoff devices as claimed in claim 8, it is characterised in that described first processing module is concrete
For:
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.
12. shutoff devices as claimed in claim 11, it is characterised in that described shutoff device also includes:
Second detection module, for detecting the user's the second pressing operation for terminal, and obtains described second
The second force value that pressing operation is corresponding;
4th acquisition module, for obtaining the second object function rank that described second force value is corresponding, wherein,
Described second object function is superior to described first object function rank;
Second processing module, corresponding with described second object function rank for closing in described application program
Residue is not turned off function.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383807.7A CN106020910B (en) | 2016-05-31 | 2016-05-31 | The method for closing and device of a kind of application program |
PCT/CN2017/086471 WO2017206874A1 (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 |
---|---|---|---|
CN201610383807.7A CN106020910B (en) | 2016-05-31 | 2016-05-31 | The method for closing and device of a kind of application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106020910A true CN106020910A (en) | 2016-10-12 |
CN106020910B CN106020910B (en) | 2017-11-17 |
Family
ID=57089221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610383807.7A Expired - Fee Related CN106020910B (en) | 2016-05-31 | 2016-05-31 | The method for closing and device of a kind of application program |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106020910B (en) |
WO (1) | WO2017206874A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106406677A (en) * | 2016-10-13 | 2017-02-15 | 珠海市魅族科技有限公司 | Method and device for closing application process |
WO2017206874A1 (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 |
WO2017206868A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
US20140325204A1 (en) * | 2013-04-25 | 2014-10-30 | Sky Socket, Llc | Device Management Macros |
CN105094618A (en) * | 2015-08-25 | 2015-11-25 | 努比亚技术有限公司 | Method and device for managing background applications |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204930A (en) * | 2014-05-29 | 2015-12-30 | 深圳桑菲消费通信有限公司 | Application program switching method and system |
CN104991820B (en) * | 2015-06-12 | 2018-06-08 | 北京创鑫旅程网络技术有限公司 | The method and mobile terminal that a kind of mobile terminal application is switched fast |
CN106020910B (en) * | 2016-05-31 | 2017-11-17 | 广东欧珀移动通信有限公司 | The method for closing and device of a kind of application program |
-
2016
- 2016-05-31 CN CN201610383807.7A patent/CN106020910B/en not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086471 patent/WO2017206874A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
US20140325204A1 (en) * | 2013-04-25 | 2014-10-30 | Sky Socket, Llc | Device Management Macros |
CN105094618A (en) * | 2015-08-25 | 2015-11-25 | 努比亚技术有限公司 | Method and device for managing background applications |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017206874A1 (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 |
WO2017206868A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
CN106406677A (en) * | 2016-10-13 | 2017-02-15 | 珠海市魅族科技有限公司 | Method and device for closing application process |
Also Published As
Publication number | Publication date |
---|---|
WO2017206874A1 (en) | 2017-12-07 |
CN106020910B (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106020910A (en) | Application shut-down method and device | |
CN106786958B (en) | Charging method, device and terminal | |
CN103956792B (en) | A kind of method and device controlling mobile terminal charging temperature rise | |
CN106095363A (en) | Ameliorative way, device and the terminal that a kind of terminal card pauses | |
CN103516557B (en) | test method and system | |
CN106455016A (en) | Method for controlling mobile terminal, and mobile terminal | |
CN105955073A (en) | Automatic starting method, system and mobile intelligent devices for satellite positioning device | |
CN106325707A (en) | Method and system for realizing screen wakeup and put-out, and equipment | |
CN107402809A (en) | Management-control method, device, storage medium and the electronic equipment of application program | |
CN106095492B (en) | The method for closing and device of a kind of application program | |
CN103246819B (en) | A kind of discordance context towards general fit calculation eliminates system and method | |
CN106020907A (en) | Application shut-down method and device | |
CN103858070A (en) | Power-off threshold voltage adjustment method, starting up method and electronic equipment using same | |
CN113286315B (en) | Load balance judging method, device, equipment and storage medium | |
CN104202480B (en) | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus | |
CN108931932A (en) | A kind of method for managing power supply and intelligent robot | |
CN106055076A (en) | Method and device for closing sensors | |
US20190087381A1 (en) | Method and apparatus for controlling serial peripheral interface of fingerprint sensor, and mobile terminal | |
CN106055075A (en) | Method and device for closing sensors | |
CN105826962A (en) | Power control method and device in charging process | |
CN106201019A (en) | The threshold value control method of a kind of proximity transducer and mobile terminal | |
CN105516476B (en) | A method of high energy consumption application is closed to control using economize on electricity | |
CN106095487A (en) | The method for closing of a kind of application program and device | |
CN109388589A (en) | A kind of method, equipment and storage medium adjusting cache partitions ratio | |
CN106020908B (en) | A kind of function method for closing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
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: 20171117 |