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

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

Info

Publication number
CN106095492B
CN106095492B CN201610383705.5A CN201610383705A CN106095492B CN 106095492 B CN106095492 B CN 106095492B CN 201610383705 A CN201610383705 A CN 201610383705A CN 106095492 B CN106095492 B CN 106095492B
Authority
CN
China
Prior art keywords
function
rank
application program
closing
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610383705.5A
Other languages
Chinese (zh)
Other versions
CN106095492A (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 CN201610383705.5A priority Critical patent/CN106095492B/en
Publication of CN106095492A publication Critical patent/CN106095492A/en
Priority to PCT/CN2017/086482 priority patent/WO2017206885A1/en
Application granted granted Critical
Publication of CN106095492B publication Critical patent/CN106095492B/en
Active 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

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of method for closing of application program and device, this method includes:To the function setup function rank in application program;User is received for the triggered first function turn-off request of the first operation of terminal, the first function turn-off request carries corresponding first operation information of the first operation;Corresponding first object function rank is obtained according to first function turn-off request;Corresponding function in application program is closed according to first object function rank;The program can close corresponding function in application program based on user to the operation of terminal, and indirect closing application program, compared with the prior art for, can be while terminal power consumption be reduced, the speed of lifting application program restarting.

Description

The method for closing and device of a kind of application program
Technical field
The present invention relates to field of terminal technology, and in particular to the method for closing and device of a kind of application program.
Background technology
With the development of intelligent terminal, the function that intelligent terminal can be compatible is more and more, not only enriches user's life, also Bring advantage to the user.It is gradually improved, is brought to user as mobile terminal device has increasingly incorporated people's life, application function Great convenience and improve Consumer's Experience.
In order to realize various functions to meet the various demands of user, usual intelligent terminal can install various applications Program (can be applied referred to as).But, the application program installed on intelligent terminal can consume substantial amounts of electricity, and reduction intelligence is eventually The endurance at end.
At present, in order to lower the consumption of intelligent terminal electricity, and then the endurance of intelligent terminal, intelligent terminal meeting are lifted Application program is closed, that is, closes all function in application program (including principal function, subfunction etc.);Such as intelligent terminal can To close application program automatically, or application program closed according to the operation of user;Specifically, intelligent terminal can monitor use Operation of the family to intelligent terminal, then, corresponding application program is closed based on the operation.
It is due to that the program is pass although being consumed however, current closing application program scheme can reduce terminal power Functions all in application program are closed, if after application program is closed, intelligent terminal needs to restart the application program, So now, intelligent terminal needs to re-call all functions of the application program, the speed that application program can be caused to restart Degree is slow.
The content of the invention
The embodiment of the present invention provides a kind of method for closing and device of application program, can be in reduction terminal power consumption Meanwhile, the speed of lifting application program restarting.
The embodiment of the present invention provides a kind of method for closing of application program, including:
To the function setup function rank in application program;
User is received for the triggered first function turn-off request of the first operation of terminal, the first function is closed please Seek corresponding first operation information of carrying first operation;
Corresponding first object function rank is obtained according to the first function turn-off request;
Corresponding function in the application program is closed according to the first object function rank.
Further, the step of function setup function rank in application program is specifically included:
Obtain the call relation between function in application program;
According to the call relation to the function setup function rank in application program.
Further, the first object function rank is less than highest function rank;It is described according to the first object letter The step of several levels do not close corresponding function in the application program specifically includes:
Whether judge the first object function rank is minimum function rank;
If so, then closing the corresponding function of first object function rank described in the application program;
If it is not, the corresponding function of first object function rank described in the application program is then closed, and function rank Less than the function of the first object function rank.
Further, closed according to the first object function rank in the application program after corresponding function, The method for closing also includes:
User is received for the triggered second function turn-off request of the second operation of terminal, the second function is closed please Seek corresponding second operation information of carrying second operation;
According to the corresponding second object function rank of second operation information acquisition, the second object function rank is high In the first object function rank;
Corresponding residue in the application program is closed according to the second object function rank and is not turned off function.
Further, corresponding residue is not closed in the application program according to the second object function rank closing The step of closing function specifically includes:
Whether judge the second object function rank is highest function rank;
If so, then closing residues all in the application program is not turned off function;
If it is not, then closing the residue is not turned off the corresponding function of the second object function rank, Yi Jihan described in function Several levels not Di Yu the second object function rank function.
Further, second object function is being judged not for highest function rank, and close the application program In corresponding residue be not turned off after function, the method for closing also includes:
User is received for the 3rd triggered function turn-off request of the 3rd operation of terminal, the 3rd function is closed please Seek corresponding 3rd operation information of carrying the 3rd operation;
Corresponding 3rd object function rank, the 3rd object function level are obtained according to the 3rd function turn-off request Gao Yu not the second object function rank;
Close residues all in the application program and be not turned off function.
Correspondingly, the embodiment of the present invention additionally provides a kind of shutoff device of application program, including:Setup module, first Receiving module, the first acquisition module and the first closedown module;
The setup module, for the function setup function rank in application program;
First receiving module, please for the triggered first function closing of the first operation of terminal for receiving user Ask, the first function turn-off request carries corresponding first operation information of first operation;
First acquisition module, for obtaining corresponding first object function level according to the first function turn-off request Not;
First closedown module, it is corresponding in the application program for being closed according to the first object function rank Function.
Further, the setup module is specifically for obtaining the call relation in application program between function;According to institute Call relation is stated to the function setup function rank in application program.
Further, the first object function rank is less than highest function rank;
First closedown module, specifically for judging whether the first object function rank is minimum function rank; If so, then closing the corresponding function of first object function rank described in the application program;If it is not, then closing the application journey The corresponding function of the rank of first object function described in sequence, and function rank are less than the letter of the first object function rank Number.
Further, described device also includes:Second receiving module, the second acquisition module and the second closedown module;
Second receiving module, for being answered in the first closedown module according to closing the first object function rank After corresponding function in program, user is received for the triggered second function turn-off request of the second operation of terminal, institute State second function turn-off request and carry corresponding second operation information of second operation;
Second acquisition module, for according to the corresponding second object function rank of second operation information acquisition, Second object function is superior to the first object function rank;
Second closedown module, it is corresponding in the application program for being closed according to the second object function rank Residue is not turned off function.
The embodiment of the present invention is used to the function setup function rank in application program, then, is received user and is passed through to end End carries out the triggered first function turn-off request of the first operation, and the first function turn-off request carries user and the terminal is carried out First operation information of the first operation, corresponding first object function rank is obtained according to the first function turn-off request, according to The first object function rank closes corresponding function in the application program;The program can be closed based on user to the operation of terminal Corresponding function in application program is closed, the electric quantity consumption of terminal can be reduced, and application is directly closed because the program does not have Program, but corresponding function in application program is closed, therefore, when needing to restart the application program, it is necessary to adjust again With and perform the function of closing, compared with the prior art for, can be while terminal power consumption be reduced, lifting should The speed restarted with program.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic flow sheet for the closing application program method that the embodiment of the present invention one is provided;
Fig. 2 is the schematic flow sheet for the closing application program method that the embodiment of the present invention two is provided;
Fig. 3 a are the structural representations for the first closing application program device that the embodiment of the present invention three is provided;
Fig. 3 b are the structural representations for second of closing application program device that the embodiment of the present invention three is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method for closing and device of application program.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of closing application program, and the closing application program can specifically be integrated in end In end, the terminal can be the equipment such as smart mobile phone, tablet personal computer.
A kind of closing application program method, including:To the function setup function rank in application program;User is received to be directed to First the triggered first function turn-off request of operation of terminal, the first function turn-off request carries the first operation corresponding the One operation information;Corresponding first object function rank is obtained according to first function turn-off request;According to first object function level Guan Bi not corresponding function in application program.
As shown in figure 1, closing application program method, idiographic flow can be as follows:
101st, to the function setup function rank in application program.
Specifically, the application program can be the application program of running background, the wechat of such as running background, QQ;Typically Ground, when writing a program that can be run on an operating system, is required for a principal function.Principal function means to set up one Independent process, and the process becomes the entrance of program, (is referred to as method in some OOP language, such as to other each subfunctions Java) it is called, certainly, other called subfunctions can also go to call more polygamma function, the fortune of so whole program again Row track can be referred to as call stack just as a kind of stack.Principal function is both the entrance of program, is the outlet of program again, generally also An exit code can be specified to exit again, to show result that program is last.
Because principal function bears the important task of entrance and exit, for maintenance and expansion, principal function should be as far as possible succinct, tool Body realizes details to be encapsulated into inside called subfunction to go.Therefore, the function setup function in application program During rank, function rank can be configured based on the call relation between each function in application program;Namely step " correspondence With the function setup function rank in program " it can specifically include:
Obtain the call relation between function in application program;
According to the call relation to the function setup function rank in application program.
Such as, principal function can be set to one-level (superlative degree) function, the sub- letter that can directly invoke the principal function Number is set to two grades of functions, the subfunction that two grades of functions are directly invoked can be set into three-level function, can be by the three-level The subfunction that function is directly invoked is set to level Four function, by that analogy;Or, it can be reversed, it is assumed that have three Principal function, then can be set to three-level (superlative degree) function, the subfunction that principal function is directly invoked is set by the function of individual level Two grades of functions are set to, the subfunction of the function call of the second level is set to monoexponential function.
In specific implementation process, the form of expression of function rank can have a variety of in the application program, such as, Ke Yiyong The indicator function rank such as digital form, alphabetical form;Exemplified by digital form, monoexponential function such as is represented with 1,2 represent two grades of letters Number, 3 represent three-level function, wherein, the rank of the bigger representative of numeral is higher, or the rank of digital smaller representative is higher with such Push away.
102nd, user is received for the triggered first function turn-off request of the first operation of terminal, and the first function is closed Request carries corresponding first operation information of the first operation.
Specifically, the first operation can be the touch control operations such as pressing, percussion that user is directed to terminal device, accordingly, should First operation information can be the information such as pressing dynamics, compression frequency, or number of taps, tap the information such as position;And touch-control Position can be not limited only to terminal display screen, can also be the positions such as terminal back, side, the present invention does not make specific limit to this It is fixed.
Such as,, can be to the pressing operation pair in order to avoid maloperation exemplified by carrying out pressing operation in terminal display screen The press pressure value answered is estimated, and judges whether to meet condition, and the first function that can be triggered if condition is met is closed please Ask, the idiographic flow that " receives user for the triggered first function turn-off request of the first operation of terminal " that is, step can be with It is as follows:
Receive the pressing operation that user is directed to terminal;
Obtain the corresponding press pressure value of the pressing operation;
Judge whether the press pressure value is more than predetermined threshold value;
If being more than, first function turn-off request is triggered.
103rd, corresponding first object function rank is obtained according to first function turn-off request.
Specifically, the first preset function rank can be pre-set, such as, can provide the user one can The selection interface of editor, can set a slip control, for sliding explicit function rank, user can be on the boundary at the interface Face sets first object function rank, such as can be set as two grades, then preserves.After function turn-off request is triggered, terminal Acquisition request can be sent, associated process is called, the first object function rank of setting is obtained from corresponding storage region Related data, and the data are returned into terminal, first object function rank is obtained for two grades.
Preferably, the corresponding first object function rank of aforesaid operations acquisition of information can be based on, such as, with the first operation To tap exemplified by operation, the first operation information be number of taps, number of times and function rank can be will hit against in advance set up mapping and close System, the different function rank of different number of taps correspondences, to obtain mapping relations set, phase is obtained according to the mapping relations set The first object function rank answered.
104th, corresponding function in application program is closed according to first object function rank.
In actual applications, the application program can be application set in advance by user, being automatically processed Program, as default application program, such as, can be sentenced according to the application identities and default application identities set of the application program Whether the application program of breaking is default application program;Namely it is corresponding in application program being closed according to first object function rank Before function, it can also include:
Obtain the application identities of the application program;
Judge to whether there is and the application identities identical sample application identities in default logo collection;
Corresponding function in application program is closed according to first object function rank if so, then performing.
In order to which power consumption of terminal can be reduced, while application program can be allowed to keep normal operation again, can be by first mesh Scalar functions rank is set lower than highest function rank, to keep application program principal function to be not turned off;And closing corresponding letter During number, the other function of other lower levels, namely step can also be closed while the function of first object rank is closed The idiographic flow of " closing corresponding function in application program according to first object function rank " can be as follows:
Whether judge first object function rank is minimum function rank;
If so, then closing the corresponding function of first object function rank in application program;
If it is not, the corresponding function of first object function rank in application program is then closed, and function rank is less than first The function of object function rank.
Such as, so that highest level is one-level as an example, application program is to that should have monoexponential function, two grades of functions, three-level function, four Level function, Pyatyi function (lowermost level), it is assumed that the first object function rank is Pyatyi, and being readily obtained the object function rank is Minimum function rank, now performs and closes Pyatyi function;Assuming that the first object function rank is level Four, then can be by level Four letter Number, Pyatyi function are together closed.
In order to further reduce power consumption of terminal, terminal can further be operated, to close survival function;Namely in root After corresponding function in first object function rank closing application program, it can also comprise the following steps:
User is received for the triggered second function turn-off request of the second operation of terminal, second function turn-off request is taken Band second operates corresponding second operation information;
According to the corresponding second object function rank of the second operation information acquisition, the second object function is superior to the first mesh Scalar functions rank;
Corresponding residue in application program is closed according to the second object function rank and is not turned off function.
Such as, so that highest level is one-level as an example, application program is to that should have monoexponential function, two grades of functions, three-level function, four Level function, Pyatyi function (lowermost level), if first object function rank is Pyatyi, now Pyatyi function has been closed, it is assumed that should Second object function rank is one-level, then the monoexponential function (i.e. principal function) can be closed, while all residues can also be closed Function.
Alternatively, step " closes corresponding residue in application program according to the second object function rank and is not turned off function " tool Body flow can be as follows:
Whether judge the second object function rank is highest function rank;
If so, then closing residues all in application program is not turned off function;
If it is not, then closing residue is not turned off the corresponding function of the second object function rank in function, and function rank is low In the function of the second object function rank.
In actual applications, in order to which application program can be allowed to keep normal operation, while reducing power consumption of terminal, it can close Function is superior to first object function rank in survival function, at the same again be less than highest function rank function, such as, still with Highest level is exemplified by one-level, application program is to that should have monoexponential function, two grades of functions, three-level function, level Four function, Pyatyi functions (lowermost level), if first object function rank is Pyatyi, now Pyatyi function has been closed, it is assumed that the second object function rank For three-level, then three-level function and level Four function can be closed.
Preferably, in order to further reduce power consumption of terminal, remaining all functions can be closed, to close correspondence Application program;Namely the second object function is being judged not for highest function rank, and remained accordingly in closing application program It is remaining to be not turned off after function, it can also comprise the following steps:
User is received for the 3rd triggered function turn-off request of the 3rd operation of terminal, the 3rd function turn-off request is taken Band the 3rd operates corresponding 3rd operation information;
Corresponding 3rd object function rank is obtained according to the 3rd function turn-off request, the 3rd object function is superior to the Two object function ranks;
Close residues all in application program and be not turned off function.
Such as, so that highest level is one-level as an example, application program is to that should have monoexponential function, two grades of functions, three-level function, four Level function, Pyatyi function (lowermost level), if the second object function rank is level Four, first object function rank is Pyatyi, now, Level Four function, Pyatyi function have been closed, it is assumed that the 3rd object function rank is one-level, then can close in application program and own Residue be not turned off letter, including monoexponential function, two grades of functions, three-level functions;Assuming that the 3rd object function rank is three-level, still Residues all in application program can be closed and be not turned off letter, including monoexponential function, two grades of functions, three-level functions.
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, then, user is received by carrying out the first triggered first function turn-off request of operation to terminal, this One function turn-off request carries the first operation information that user carries out the first operation to the terminal, and being closed according to the first function please The corresponding first object function rank of acquisition is sought, corresponding letter in the application program is closed according to the first object function rank Number;The program can close corresponding function in application program to the operation of terminal based on user, can reduce the electricity of terminal Consumption, and application program is directly closed because the program does not have, but corresponding function in application program is closed, therefore, , it is necessary to re-call and perform the function of closing when needing to restart the application program, compared with the prior art for, Can be while terminal power consumption be reduced, the speed of lifting application program restarting.
Embodiment two,
Citing, is described in further detail by the method according to described by embodiment one below.
In the present embodiment, mobile terminal will be specifically integrated in the closing application program device, in answering for running background It is wechat with program, highest function rank is to be described in detail exemplified by one-level.
It should be noted that in the present embodiment, the corresponding function of wechat includes one-level (superlative degree) function, two grades of letters Number, three-level function, level Four function, Pyatyi (lowermost level) function.
As shown in Fig. 2 a kind of closing application program method, idiographic flow can be as follows:
201st, mobile terminal is to the function setup function rank in application program.
Specifically, in the function setup function rank in application program, can be based on application program in each function it Between call relation function rank is configured;Namely step " to the function setup function rank in application program " specifically may be used With including:
Obtain the call relation between function in application program;
According to the call relation to the function setup function rank in application program.
Such as, principal function can be set to monoexponential function, the subfunction that the principal function is directly invoked can be set to Two grades of functions, can be set to three-level function by the subfunction that two grades of functions are directly invoked, can be direct by the three-level function The subfunction called is set to level Four function, by that analogy.
In specific implementation process, the form of expression of function rank can have a variety of in the application program, such as, Ke Yiyong Digital form indicator function rank, such as represents monoexponential function with 1, and 2 represent two grades of functions, and 3 represent three-level function, or, can be with With alphabetical form indicator function rank, monoexponential function is such as represented with A, B represents two grades of functions, and C represents three-level function etc..
202nd, mobile terminal receives the first of user and operates triggered first function turn-off request, is closed according to first function Close the function that minimum function rank in application program is closed in request.
Specifically, the first operation can be the touch control operations such as pressing, percussion that user is directed to terminal device, in order to avoid by mistake Operation, wherein, the first function turn-off request can carry corresponding first operation information of the first operation, such as pressing dynamics, Number of taps etc..
First function turn-off request is triggered in order to avoid maloperation, the operation information can be judged, to tap Whether exemplified by number of times, it can be determined that whether number of taps meets preparatory condition, such as, it is double strike to judge the percussion Hit, specifically, it can be determined that whether number of taps is continuously to tap twice, if so, and then judging between time for tapping twice Every whether being less than prefixed time interval, if being less than, it is judged as double percussion, can now triggers first function closing Request.
In specific implementation process, first function turn-off request is received, acquisition instruction can be sent, terminal can basis The function that acquisition instruction obtains the function rank corresponding with first function acquisition request is closed, in the present embodiment It is set to the function of minimum function rank, i.e. monoexponential function.
Preferably, can also be to the corresponding application program of the monoexponential function (i.e. wechat) before the monoexponential function is closed Judged, the default application program to determine whether for that can be handled automatically;Such as, the application program can be obtained The application identities of (i.e. wechat), judge to whether there is in default logo collection and are marked with application identities identical sample application Know, if in the presence of it is default application program to be determined as wechat, and now the corresponding monoexponential function of wechat can be closed.
203rd, mobile terminal receives the second of user and operates triggered second function turn-off request, is closed according to second function Close function in request closing application program and be superior to minimum function rank, while less than the function of highest function rank, and its The function of following rank.
Specifically, the corresponding function grade of the second function turn-off request can in advance be set by user, Ke Yishi Two grades, three-level, any one in level Four, when performing function and closing, the function grade set according to user, the function of closing can It is a variety of to have, such as, three-level function, level Four function, or two grades of functions, three-level function, level Four functions can be closed, and can not To be two grades of functions, level Four function.
204th, mobile terminal receives the 3rd of user and operates the 3rd triggered function turn-off request, is closed according to the 3rd function Close request and close all remaining functions in application program.
Such as, mobile terminal closes two grades of functions and three-level function according to second function turn-off request correspondence, then is connecing Receive after the 3rd function turn-off request, the corresponding all remaining functions of wechat, i.e. monoexponential function and two grades of functions can be closed.
From the foregoing, it will be observed that the method for closing of application program provided in an embodiment of the present invention, using mobile terminal to application program In function setup function rank, then, the first triggered first function turn-off request of operation of user is received, according to first Function turn-off request closes the function of minimum function rank in application program, then receives the second operation triggered second of user Function turn-off request, closes function in application program according to second function turn-off request and is superior to minimum function rank, simultaneously Less than the function of the function of highest function rank, and its following rank, finally receive user the 3rd operates triggered the 3rd Function turn-off request, all remaining functions in application program are closed according to the 3rd function turn-off request;The program can be based on User closes corresponding function in application program to the operation of terminal, and indirect closing application program, compared with the prior art and Speech, can be while terminal power consumption be reduced, the speed of lifting application program restarting.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of closing application program device, and this closes dress Put can with it is integrated in the terminal, the terminal can specifically include the equipment such as mobile phone, tablet personal computer, notebook computer.Such as Fig. 3 a institutes Show, the closing application program device can include setup module 301, the first receiving module 302, the first acquisition module 303 and the One closedown module 304;It is as follows:
The setup module 301, for the function setup function rank in application program;
First receiving module 302, is closed for receiving user for the triggered first function of the first operation of terminal Request, the first function turn-off request carries corresponding first operation information of the first operation;
First acquisition module 303, for obtaining corresponding first object function level according to the first function turn-off request Not;
First closedown module 304, for closing corresponding letter in the application program according to the first object function rank Number.
Preferably, the setup module 301 is specifically for obtaining the call relation in application program between function;According to the tune With the function setup function rank in relation pair application program.
Preferably, the first object function rank is less than highest function rank;
First closedown module 304, specifically can be used for judging whether the first object function rank is minimum function level Not;If so, then closing the corresponding function of first object function rank in the application program;If it is not, then closing the application program In the corresponding function of first object function rank, and function rank be less than the first object function rank function.
Preferably, as shown in Figure 3 b, the device can also include:Second receiving module 305, the and of the second acquisition module 306 Second closedown module 307;
Second receiving module 305, for closing the application according to the first object function rank in the first closedown module In program after corresponding function, second operation triggered second function turn-off request of the user for terminal is received, this Two function turn-off requests carry corresponding second operation information of the second operation;
Second acquisition module 306, for according to the corresponding second object function rank of second operation information acquisition, being somebody's turn to do Second object function is superior to the first object function rank;
Second closedown module 307, is remained accordingly for being closed according to the second object function rank in the application program It is remaining to be not turned off function.
From the foregoing, it will be observed that the shutoff device of application program provided in an embodiment of the present invention, journey is applied for 301 pairs using setup module Function setup function rank in sequence, the first receiving module 302 receives user by carrying out what the first operation was triggered to terminal First function turn-off request, the first function turn-off request carries the first operation letter that user carries out the first operation to the terminal Breath, the first acquisition module 303 obtains corresponding first object function rank according to the first function turn-off request, and first closes mould Block 304 closes corresponding function in the application program according to the first object function rank;The program can be based on user to end Corresponding function in application program is closed in the operation at end, can reduce the electric quantity consumption of terminal, and because the program does not have directly Closing application program is connect, but closes corresponding function in application program, therefore, when needing to restart the application program, Need to re-call and perform the function of closing, compared with the prior art for, can reduction terminal power consumption Meanwhile, the speed of lifting application program restarting.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program to instruct the hardware of correlation to complete, and the program can be stored in computer-readable storage medium In matter, such as it is stored in the memory of terminal, and by least one computing device in the terminal, can wraps in the process of implementation Include the flow of the embodiment such as information issuing method.Wherein, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The method for closing and device of a kind of application program provided in an embodiment of the present invention are described in detail above, its Each functional module can be integrated in a process chip or modules are individually physically present, can also two or Two or more module is integrated in a module.Above-mentioned integrated module can both be realized in the form of hardware, can also be adopted Realized with the form of software function module.Specific case used herein is explained the principle and embodiment of the present invention State, the explanation of above example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for this area Technical staff, according to the thought of the present invention, will change in specific embodiments and applications, in summary, This specification content should not be construed as limiting the invention.

Claims (7)

1. a kind of method for closing of application program, it is characterised in that including:
To the function setup function rank in application program;
User is received for the triggered first function turn-off request of the first operation of terminal, the first function turn-off request is taken With corresponding first operation information of the described first operation;
Corresponding first object function rank is obtained according to the first function turn-off request, the first object function rank is low In highest function rank;
Whether judge the first object function rank is minimum function rank;
If so, then closing the corresponding function of first object function rank described in the application program;
If it is not, the corresponding function of first object function rank described in the application program is then closed, and function rank is less than The function of the first object function rank;
User is received for the triggered second function turn-off request of the second operation of terminal, the second function turn-off request is taken With corresponding second operation information of the described second operation;
According to the corresponding second object function rank of second operation information acquisition, second object function is superior to institute State first object function rank;
Corresponding residue in the application program is closed according to the second object function rank and is not turned off function.
2. method for closing as claimed in claim 1, it is characterised in that the function setup function rank in application program The step of specifically include:
Obtain the call relation between function in application program;
According to the call relation to the function setup function rank in application program.
3. method for closing as claimed in claim 1, it is characterised in that described that institute is closed according to the second object function rank The step of corresponding residue is not turned off function in application program is stated to specifically include:
Whether judge the second object function rank is highest function rank;
If so, then closing residues all in the application program is not turned off function;
If it is not, then closing the residue is not turned off the corresponding function of the second object function rank described in function, and function level Not Di Yu the second object function rank function.
4. method for closing as claimed in claim 3, it is characterised in that judging second object function not for highest function Corresponding residue is not turned off after function in rank, and the closing application program, and the method for closing also includes:
User is received for the 3rd triggered function turn-off request of the 3rd operation of terminal, the 3rd function turn-off request is taken With corresponding 3rd operation information of the described 3rd operation;
Corresponding 3rd object function rank is obtained according to the 3rd function turn-off request, the 3rd object function rank is high In the second object function rank;
Close residues all in the application program and be not turned off function.
5. a kind of shutoff device of application program, it is characterised in that including:Setup module, the first receiving module, first obtain mould Block, the first closedown module, the second receiving module, the second acquisition module and the second closedown module;
The setup module, for the function setup function rank in application program;
First receiving module, for receiving user for the triggered first function turn-off request of the first operation of terminal, The first function turn-off request carries corresponding first operation information of first operation;
First acquisition module, for obtaining corresponding first object function rank according to the first function turn-off request, The first object function rank is less than highest function rank;
First closedown module, for judging whether the first object function rank is minimum function rank;If so, then closing Close the corresponding function of first object function rank described in the application program;If it is not, then closing described in the application program The corresponding function of first object function rank, and function rank are less than the function of the first object function rank;
Second receiving module, for closing the application journey according to the first object function rank in the first closedown module In sequence after corresponding function, second operation triggered second function turn-off request of the user for terminal is received, described the Two function turn-off requests carry corresponding second operation information of second operation;
Second acquisition module, it is described for according to the corresponding second object function rank of second operation information acquisition Second object function is superior to the first object function rank;
Second closedown module, it is corresponding remaining in the application program for being closed according to the second object function rank It is not turned off function.
6. shutoff device as claimed in claim 5, it is characterised in that the setup module is specifically for obtaining in application program Call relation between function;According to the call relation to the function setup function rank in application program.
7. a kind of computer-readable recording medium, it stores the computer program of the closing for application program, wherein, the meter Calculation machine program causes computer to perform the method as described in claim 1.
CN201610383705.5A 2016-05-31 2016-05-31 The method for closing and device of a kind of application program Active CN106095492B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610383705.5A CN106095492B (en) 2016-05-31 2016-05-31 The method for closing and device of a kind of application program
PCT/CN2017/086482 WO2017206885A1 (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
CN201610383705.5A CN106095492B (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
CN106095492A CN106095492A (en) 2016-11-09
CN106095492B true CN106095492B (en) 2017-11-07

Family

ID=57447964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610383705.5A Active CN106095492B (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) CN106095492B (en)
WO (1) WO2017206885A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095487B (en) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106095492B (en) * 2016-05-31 2017-11-07 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106020908B (en) * 2016-05-31 2019-04-12 Oppo广东移动通信有限公司 A kind of function method for closing and device
CN106095048B (en) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 A kind of method for closing and device of function
CN106850947A (en) * 2016-12-15 2017-06-13 广州视源电子科技股份有限公司 A kind of control method and device of boot animation
CN112135294A (en) * 2020-09-21 2020-12-25 Oppo广东移动通信有限公司 Wireless encryption method and client terminal equipment thereof

Citations (2)

* Cited by examiner, † Cited by third party
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914013B2 (en) * 2013-04-25 2014-12-16 Airwatch Llc Device management macros
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs
CN105278370B (en) * 2015-09-30 2018-03-20 小米科技有限责任公司 Energy-saving mode open method and device
CN106095492B (en) * 2016-05-31 2017-11-07 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106020910B (en) * 2016-05-31 2017-11-17 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106020907B (en) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 A kind of method for closing and device of application program

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
WO2017206885A1 (en) 2017-12-07
CN106095492A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106095492B (en) The method for closing and device of a kind of application program
CN103019842A (en) Background program finishing method and system
CN204334965U (en) A kind of Bluetooth control device, mobile terminal and communication system
CN104182027B (en) The NFC clock control devices and its method of a kind of mobile terminal
CN208421807U (en) A kind of detection circuit of Type-C interface
WO2013131320A1 (en) Information backup method and apparatus, mobile terminal
CN106569582A (en) Method and device for prompting remaining power consumption time of terminal
CN112165140A (en) Charging and discharging control method and device and power supply equipment
CN107506121A (en) A kind of key control method, storage medium and intelligent terminal
CN109753348A (en) The management-control method and terminal of background application
CN103633692B (en) A kind of information processing method and electronic equipment
CN104836869A (en) Mobile communication terminal and mobile communication terminal power-on method
CN105681533A (en) Call content recording method and apparatus
CN108763030A (en) A kind of detection circuit and detection method of Type-C interfaces
CN102934086A (en) Multi-core processor system, method of power control, and power control program
CN107111351A (en) Heat alleviation in equipment with multiple processing units
CN107104478A (en) A kind of information processing method and electronic equipment
CN106292989A (en) A kind of information processing method and electronic equipment
CN106095055A (en) The method for closing of a kind of application program and device
CN106020910A (en) Application shut-down method and device
US20040085045A1 (en) Electronic device
CN105700922A (en) Method and device for automatically cleaning memory when charging is carried out and mobile terminal
CN102455773A (en) Mobile storage device and energy conservation control method thereof
CN106095487B (en) A kind of method for closing and device of application program
CN106055365B (en) A kind of closing application program method and apparatus

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

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

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

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

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

CP01 Change in the name or title of a patent holder