CN106256116B - A kind of method and terminal controlling application program - Google Patents

A kind of method and terminal controlling application program Download PDF

Info

Publication number
CN106256116B
CN106256116B CN201580006068.3A CN201580006068A CN106256116B CN 106256116 B CN106256116 B CN 106256116B CN 201580006068 A CN201580006068 A CN 201580006068A CN 106256116 B CN106256116 B CN 106256116B
Authority
CN
China
Prior art keywords
application program
application
terminal
operating parameter
destination application
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
CN201580006068.3A
Other languages
Chinese (zh)
Other versions
CN106256116A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910690275.5A priority Critical patent/CN110554762A/en
Publication of CN106256116A publication Critical patent/CN106256116A/en
Application granted granted Critical
Publication of CN106256116B publication Critical patent/CN106256116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a kind of methods for controlling application program, comprising: obtains the operating parameter of at least one application program run in terminal;According to the operating parameter of acquisition, destination application is obtained from least one described application program, the operating parameter of the destination application is greater than or equal to preset threshold;Close the destination application.Correspondingly, the embodiment of the invention also discloses a kind of terminals.Using the embodiment of the present invention, the power consumption for reducing terminal may be implemented, increase electricity cruise duration of terminal.

Description

A kind of method and terminal controlling application program
Technical field
The present invention relates to field of computer technology more particularly to a kind of methods and terminal for controlling application program.
Background technique
With the continuous development of electronic technology, such as the terminal of smart phone or tablet computer is more more and more universal.Currently, eventually The hardware and software that first day of the lunar year benefit is promoted are horizontal, and there are contradictions between electricity cruise duration, although the hardware and software of promotion are horizontal on the one hand The function of enriching terminal brings more services to user, but shortens electricity cruise duration of terminal, drop but then The low usage experience of user.For example, causing the APP non-pre- due to the design defect of application program (Application, APP) Phase ground continuous service, causes unnecessary power consumption, shortens electricity cruise duration of terminal.In view of the above-mentioned problems, existing Solution is: scheme one, terminal reduce the brightness of screen, to reduce power consumption;Scheme two, terminal are fast after user stops operation Speed is gone out screen, to enter the suspend mode of low-power consumption.
Wherein, it in scheme one, is not reduced by APP bring power consumption.In scheme two, some APP still can be generated need not The power consumption wanted leads to power consumption for example, some APP can continually wake up the terminal in suspend mode from the background;For another example, some APP can open suspend mode lock (wake lock), to prevent terminal from entering suspend mode, lead to power consumption, etc..
Summary of the invention
The embodiment of the invention provides a kind of methods and terminal for controlling application program, it is possible to reduce the power consumption of terminal increases Electricity cruise duration of long terminal.
First aspect of the embodiment of the present invention provides a kind of method for controlling application program, comprising:
Obtain the operating parameter of at least one application program run in terminal;
According to the operating parameter of acquisition, destination application is obtained from least one described application program, it is described The operating parameter of destination application is greater than or equal to preset threshold;
Close the destination application.
It is described to close after the destination application in the first possible implementation of first aspect, the side Method further include:
After receiving the instruction that the destination application actively triggers, described instruction is not executed.
With reference to first aspect or the first possible implementation of first aspect, it can be able to achieve for second in first aspect In mode, before the operating parameter for obtaining at least one application program run in terminal, the method also includes:
Determine that the terminal is in screen state of going out;
The operating parameter includes: time for the terminal that application program wakes up in a dormant state in first time period Number, and/or, application program opens the duration of suspend mode lock.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect, institute The operating parameter according to acquisition is stated, obtains destination application from least one described application program, comprising:
If the number that the first application program wakes up the terminal in a dormant state in first time period is greater than or waits In the first preset times, then obtaining first application program is the destination application;Or
If the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration, obtains described second and answer It is the destination application with program.
In the 4th kind of possible implementation of first aspect, the operating parameter, including following any one or more:
The number of application program self-starting in second time period;
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies CPU within the third period Ratio;
Power consumption of the application program within the 4th period;
Application program carries out the duration of GPS positioning within the 5th period.
The 4th kind of possible implementation with reference to first aspect, in the 5th kind of possible implementation of first aspect, institute The operating parameter according to acquisition is stated, obtains destination application from least one described application program, comprising:
If the number of third application program self-starting in the second time period is greater than or equal to the second preset times, Obtaining the third application program is the destination application;Or
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third Between occupy the ratio of CPU in section and be greater than or equal to pre-set ratio, then obtaining the 4th application program is the target application journey Sequence;Or
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, institute is obtained Stating the 5th application program is the destination application;Or
If the 6th application program carried out within the 5th period GPS positioning duration be greater than or equal to second it is default when Long, then obtaining the 6th application program is the destination application.
The 5th kind of possible implementation with reference to first aspect, in the 6th kind of possible implementation of first aspect, institute Stating the 6th application program is not navigation type application program.
The the 4th to the 6th any one possible implementation with reference to first aspect, the 7th kind in first aspect may be real It is described to close before the destination application in existing mode, further includes:
Determine that the destination application is the application program in running background.
With reference to first aspect or the first to the 7th of first aspect any one possible implementation, the of first aspect It is described to close before the destination application in eight kinds of possible implementations, further includes:
Determining the destination application not is preset system application.
With reference to first aspect or the first to the 8th of first aspect any one possible implementation, the of first aspect It is described to close the destination application in nine kinds of possible implementations, comprising:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
Second aspect of the embodiment of the present invention provides a kind of terminal, comprising:
Parameter acquisition module, for obtaining the operating parameter of at least one application program run in terminal;
It is obtained from least one described application program using module is obtained for the operating parameter according to acquisition The operating parameter of destination application, the destination application is greater than or equal to preset threshold;
Using closedown module, for closing the destination application.
In the first possible implementation of second aspect, the terminal further includes instruction refusal module,
Described instruction refuses module, is used for after the application closedown module closes the destination application, if connecing The instruction that the destination application actively triggers is received, then does not execute described instruction.
In conjunction with the possible implementation of the first of second aspect or second aspect, can be able to achieve for second in second aspect In mode, the terminal further includes state determining module,
The state determining module applies journey for obtaining at least one run in terminal in the parameter acquisition module Before the operating parameter of sequence, determine that the terminal is in screen state of going out;
The operating parameter includes: time for the terminal that application program wakes up in a dormant state in first time period Number, and/or, application program opens the duration of suspend mode lock.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect, institute It states using module is obtained in the operating parameter according to acquisition, target application journey is obtained from least one described application program When sequence, it is specifically used for:
If the number that the first application program wakes up the terminal in a dormant state in first time period is greater than or waits In the first preset times, then obtaining first application program is the destination application;Or
If the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration, obtains described second and answer It is the destination application with program.
In the 4th kind of possible implementation of second aspect, the operating parameter, including following any one or more:
The number of application program self-starting in second time period;
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies CPU within the third period Ratio;
Power consumption of the application program within the 4th period;
Application program carries out the duration of GPS positioning within the 5th period.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, institute It states using module is obtained in the operating parameter according to acquisition, target application journey is obtained from least one described application program When sequence, it is specifically used for:
If the number of third application program self-starting in the second time period is greater than or equal to the second preset times, Obtaining the third application program is the destination application;Or
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third Between occupy the ratio of CPU in section and be greater than or equal to pre-set ratio, then obtaining the 4th application program is the target application journey Sequence;Or
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, institute is obtained Stating the 5th application program is the destination application;Or
If the 6th application program carried out within the 5th period GPS positioning duration be greater than or equal to second it is default when Long, then obtaining the 6th application program is the destination application.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, institute Stating the 6th application program is not navigation type application program.
In conjunction with the 4th to the 6th of second aspect any one possible implementation, the 7th kind in second aspect may be real In existing mode, the terminal further includes applying determining module,
It is described to apply determining module, for determining before the application closedown module closes the destination application The destination application is the application program in running background.
In conjunction with second aspect or the first to the 7th of second aspect any one possible implementation, the of second aspect It is described to apply determining module in eight kinds of possible implementations, it is also used to close the target application in the application closedown module Before program, determining the destination application not is preset system application.
In conjunction with second aspect or the first to the 8th of second aspect any one possible implementation, the of second aspect In nine kinds of possible implementations, the application closedown module is specifically used for when closing the destination application:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
The third aspect of the embodiment of the present invention provides a kind of computer storage medium, and the computer storage medium is stored with Program, the program include some or all of a kind of method of control application program that first aspect provides step when executing.
Fourth aspect of the embodiment of the present invention provides a kind of terminal, display unit, input unit, memory and processing Device, wherein batch processing is stored in memory, and processor, for calling the program stored in memory, execution is following to be operated:
Obtain the operating parameter of at least one application program run in terminal;
According to the operating parameter of acquisition, destination application is obtained from least one described application program, it is described The operating parameter of destination application is greater than or equal to preset threshold;
Close the destination application.
In the first possible implementation of fourth aspect, the processor close the destination application it Afterwards, if receiving the instruction that the destination application actively triggers, described instruction is not executed.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, can be able to achieve for second in fourth aspect In mode, before the operating parameter at least one application program that the processor is run in obtaining terminal, also execute:
Determine that the terminal is in screen state of going out;
The operating parameter includes: time for the terminal that application program wakes up in a dormant state in first time period Number, and/or, application program opens the duration of suspend mode lock.
In conjunction with second of possible implementation of fourth aspect, in the third possible implementation of fourth aspect, institute Processor is stated in the operating parameter according to acquisition, when obtaining destination application from least one described application program, It is specific to execute following operation:
If the number that the first application program wakes up the terminal in a dormant state in first time period is greater than or waits In the first preset times, then obtaining first application program is the destination application;Or
If the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration, obtains described second and answer It is the destination application with program.
In the 4th kind of possible implementation of fourth aspect, the operating parameter, including following any one or more:
The number of application program self-starting in second time period;
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies CPU within the third period Ratio;
Power consumption of the application program within the 4th period;
Application program carries out the duration of GPS positioning within the 5th period.
In conjunction with the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation of fourth aspect, institute Processor is stated in the operating parameter according to acquisition, when obtaining destination application from least one described application program, It is specific to execute following operation:
If the number of third application program self-starting in the second time period is greater than or equal to the second preset times, Obtaining the third application program is the destination application;Or
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third Between occupy the ratio of CPU in section and be greater than or equal to pre-set ratio, then obtaining the 4th application program is the target application journey Sequence;Or
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, institute is obtained Stating the 5th application program is the destination application;Or
If the 6th application program carried out within the 5th period GPS positioning duration be greater than or equal to second it is default when Long, then obtaining the 6th application program is the destination application.
In conjunction with the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation of fourth aspect, institute Stating the 6th application program is not navigation type application program.
In conjunction with the 4th to the 6th of fourth aspect any one possible implementation, the 7th kind in fourth aspect may be real In existing mode, the processor also executes before closing the destination application:
Determine that the destination application is the application program in running background.
In conjunction with fourth aspect or the first to the 7th of fourth aspect any one possible implementation, the of fourth aspect In eight kinds of possible implementations, the processor also executes before closing the destination application:
Determining the destination application not is preset system application.
In conjunction with fourth aspect or the first to the 8th of fourth aspect any one possible implementation, the of fourth aspect In nine kinds of possible implementations, the processor is specific to execute following operation when closing the destination application:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
Therefore after the operating parameter of at least one APP that is run in obtaining terminal of the embodiment of the present invention, from above-mentioned The target APP that operating parameter is greater than or equal to preset threshold is obtained at least one APP, and then closes the target APP, Ke Yishi The APP bring power consumption by being operating abnormally now is reduced, electricity cruise duration of terminal is increased.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be made simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for controlling application program provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for another control application program provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for another control application program provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The method of control application program provided in an embodiment of the present invention is implemented in terminal, the terminal include smart phone, The electronic equipments such as tablet computer, digital audio & video players, electronic reader, handheld game machine and vehicle electronic device.This hair In bright embodiment, the operating system of terminal can be Android, iOS, Windows Phone and BlackBerry OS etc. and be System, is not construed as limiting here.Terminal can run APP on an operating system.
In order to make it easy to understand, first explaining some concepts involved in the lower embodiment of the present invention here.Firstly, the screen of terminal State includes bright screen state and screen state of going out, and terminal lights on-screen displays under bright screen state, the terminal under screen state of going out It closes screen and does not show picture, therefore, go out and shield the power consumption of state sub-screen and be less than the power consumption of bright screen state sub-screen.Wherein, Terminal is in operating mode under bright screen state, and terminal is typically in suspend mode under screen state of going out, but can also be called out It wakes up to operating mode, it should be understood that ground, the power consumption of terminal in the hibernation mode are less than the power consumption under operating mode.Further, The method of operation of APP includes front end operation and running background, by taking the terminal under bright screen state as an example, the intuitive performance of front end operation It is the runnable interface that screen shows the APP, the intuitive performance of running background is the runnable interface that screen does not show the APP.
Fig. 1 is a kind of flow diagram for the method for controlling application program in the embodiment of the present invention, as shown in Figure 1, the party Method may include:
S101 obtains the operating parameter of at least one application program (APP) run in terminal.
The operating parameter of the APP can directly or indirectly can reflect the power consumption situation of APP there are many type.
Optionally, before the operating parameter of the APP in detection terminal, the current screen state of terminal can be first determined. From the foregoing, it can be understood that the screen state of terminal includes bright screen state and screen state of going out.
On the one hand, however, it is determined that the screen state of terminal be to go out screen state, then the operating parameter obtained includes following six kinds Any one or more of type.
Class1: APP wakes up the number of terminal in a dormant state in first time period.
The first time period can be preset by designer, can also be set by the user, here without limitation.Example Such as, first time period is a hour.
The purpose for obtaining the type operating parameter is that terminal after screen state of going out, can enter suspend mode to subtract Few power consumption, but the terminal in suspend mode can be waken up there are some APP to execute specified operation, terminal can be again after operation It is secondary to enter suspend mode, if wakeup frequency is excessively high, terminal can be made to be in operating mode for a long time, power consumption is caused to increase.
Type 2:APP opens the duration of suspend mode lock (wake lock).
The suspend mode lock enters suspend mode in the terminal for shielding state of going out for preventing, so that the currently performed behaviour of APP It is not disrupted.
The purpose for obtaining the type operating parameter is, if APP opens the overlong time of suspend mode lock, when terminal can be made long Between be in operating mode, cause power consumption to increase.
The number of type 3:APP self-starting in second time period.
Similarly, the second time period can be preset by designer, can also be preset by user, here not It limits.For example, second time period is 30 minutes.
The purpose for obtaining the type operating parameter is that some APP are because of the defect in programming, the frequency of self-starting It is very high, cause the power consumption of terminal to increase.For example, due to the defect of programming, after some APP gets a triggering command Self-starting, but exited due to finding that no task needs to be implemented after self-starting, it, should if triggering command is not eliminated yet after exiting APP can self-starting again, repetitive operation until triggering command be eliminated.
Type 4: when the internal temperature of terminal is higher than preset temperature threshold, APP occupies the ratio of CPU within the third period Rate.
Similarly, the third period can be preset by designer, can also be preset by user, here not It limits.For example, the third period is 10 minutes.Wherein, the internal temperature that terminal can be detected by temperature sensor, presets temperature Degree threshold value can be preset by designer, here also without limitation, such as 50 DEG C.
The purpose for obtaining the type operating parameter is, when the internal temperature of terminal increases, illustrates that there may be APP just In misoperation, the power consumption of terminal is caused to increase.
Power consumption of the type 5:APP within the 4th period.
Similarly, the 4th period can be preset by designer, can also be preset by user, here not It limits.Wherein it is possible to according to the working frequency of CPU in the runing time of APP and the time, (different working frequencies correspond to Different electricity consumption values), power consumption of the APP within the time is calculated using calculus.
The purpose for obtaining the type operating parameter is that the power consumption of APP directly affects electricity cruise duration of terminal.
Type 6:APP carries out GPS (Global Positioning System, global positioning system within the 5th period System) positioning duration.
Similarly, the 5th period can be preset by designer, can also be preset by user, here not It limits.For example, the 5th period was 1 day.
The purpose for obtaining the type operating parameter is that the mechanism for carrying out GPS positioning there are some APP is unreasonable, frequently Ground carries out GPS positioning, and the power consumption for carrying out GPS positioning is very big, affects electricity cruise duration of terminal.
On the other hand, however, it is determined that terminal screen state be bright screen state, then the operating parameter obtained can be above-mentioned Any one or more in 6 these four types of type 3- type.
It should be noted that terminal can not know current screen first before the operating parameter of the APP in detection terminal Tentiform state, and directly detect any one or more operating parameter in 6 these four types of the above-mentioned type 3- type;When getting Current screen state is that after going out screen state, can detect the operating parameter of the above-mentioned type 1 and/or type 2 again.
Multiple APP can be run in terminal;Each APP at runtime, there is corresponding operating parameter.Such as: in terminal APP1 and APP2 is run, wherein APP1 may be corresponding with one of above-mentioned six kinds of operating parameters or a variety of, and APP2 may be also right There should be one of above-mentioned six kinds of operating parameters or a variety of.
S102 obtains destination application from least one described application program according to the operating parameter of acquisition, The operating parameter of the destination application is greater than or equal to preset threshold.
It should be pointed out that the type of corresponding preset threshold may be different for different types of operating parameter;For The operating parameter of same type but different types of APP, the value of corresponding preset threshold can also be different.
Specifically, according to the operating parameter of acquisition, the realization process that target APP is obtained from least one described APP can To include one of following manner or a variety of, specifically determined by the type of the operating parameter obtained;Obtaining certain seed type Operating parameter after, according to the operating parameter of the type, obtain target APP.Such as: in the operation for obtaining the above-mentioned type 1 After parameter, target APP is obtained by mode 1 below.
Mode 1: if the number that the first APP wakes up terminal in a dormant state in first time period is greater than or equal to the One preset times, then obtaining the first APP is target APP.
Example shown in table 1 is please referred to, prepackage APP refers to that the producer of terminal is preassembled in addition to system APP in table APP, the third party APP, NA that self-chambering APP refers to that user voluntarily installs refer to not given threshold, wherein for not given threshold Operating parameter default be greater than or equal to preset threshold.In the specific implementation, if mobile phone house keeper wakes up in suspend mode in 1 hour The number of terminal reach 10 times, be higher than 7 times, then mobile phone house keeper be recorded as target APP.
Table 1
Optionally, the first preset times should be greater than the beats of APP, and the beats of APP refer to the APP at first Between its introversive subordinate server of section send the number of online response message, for example, a social activity APP per hour will be to clothes belonging to it Business device sends 30 online response messages, and with tell the server, the user is still online, can receive chat messages;If first time period It is 1 hour, it, need to be by the first preset times of social activity APP in order to avoid the social APP operated normally is mistaken for target APP It is arranged at 30 times or more.
Mode 2: if the duration that the 2nd APP opens suspend mode lock is greater than or equal to the first preset duration, obtaining the 2nd APP is Target APP.
Example shown in table 2 is please referred to, relevant information is similar to table 1, and which is not described herein again.In the specific implementation, assuming hand Machine house keeper opened suspend mode lock more than 2 minutes after terminal is in screen state of going out, then mobile phone house keeper was recorded as target APP.
Table 2
Mode 3: it if the number of the 3rd APP self-starting in second time period is greater than or equal to the second preset times, obtains Taking the 3rd APP is target APP.
Example shown in table 3 is please referred to, relevant information is similar to table 1, and which is not described herein again.In the specific implementation, assuming certain Self-starting number is 20 times to a self-chambering APP in 5 minutes, is higher than 15 times, then self-chambering APP is recorded as target APP.
Table 3
Further, the number for obtaining the self-starting in second time period is greater than or equal to the target of the second preset times The concrete operations of APP, which may also is that, searches high self-starting rate APP list;Acquisition is not belonging to high self-starting rate APP list, and The number of self-starting is greater than or equal to the target APP of the second preset times in second time period.Wherein, high self-starting rate APP The APP that list is recorded is the APP of intrinsic high self-starting rate, and this kind of APP should not be taken as target APP, for example, input method APP, Self-starting rate is higher, if being considered as target APP closing, will lead to user and is not available input method, reduce the use of user Experience.Optionally, high self-starting rate APP list can be updated by network.
Mode 4: when the internal temperature of terminal is higher than preset temperature threshold, if the 4th APP is occupied within the third period The ratio of CPU is greater than or equal to pre-set ratio, then obtaining the 4th APP is target APP.
Example shown in table 4 is please referred to, relevant information is similar to table 1, and which is not described herein again.In the specific implementation, assuming certain The ratio that a self-chambering APP occupies CPU in 10 minutes is 12%, is higher than 7%, then self-chambering APP is recorded as target APP.
Table 4
Mode 5: if power consumption of the 5th APP within the 4th period, which is greater than or equal to, presets electricity consumption value, described in acquisition 5th APP is target APP.
Example shown in table 5 is please referred to, relevant information is similar to table 1, and which is not described herein again.In the specific implementation, assuming hand Machine house keeper power consumption in 1 hour is 18mA, is higher than 15mA, then mobile phone house keeper is recorded as target APP.
Table 5
Mode 6: if the duration that the 6th APP carries out GPS positioning within the 5th period is greater than or equal to the second preset duration, Then obtaining the 6th APP is target APP.
Example shown in table 6 is please referred to, relevant information is similar to table 1, and which is not described herein again.In the specific implementation, assuming certain A self-chambering APP added up to carry out in 8 hours GPS positioning up to 3 minutes, is higher than 2 minutes, then self-chambering APP is recorded as target APP。
Table 6
Further, the target APP of record is non-navigation type APP.It will be appreciated that the major function of navigation type APP is exactly GPS positioning is carried out, therefore its duration for carrying out GPS positioning is certain to not be included in control range more than the second preset duration.
Also it should be added that, the first above-mentioned APP, the 2nd APP, the 3rd APP, the 4th APP, the 5th APP and Six APP are a kind of mode of name, should not constitute and limit to the APP that is referred to, they may refer to same APP, can also be with Refer to different APP.
S103 closes destination application.
Specifically, the realization process for closing target APP can be with are as follows: all processes, service and the work of target end APP It is dynamic.
Optionally, after closing target APP, if receiving the instruction that target APP is actively triggered again, this is not executed and is referred to It enables.For example, it is assumed that target APP is the excessively high APP of self-starting rate, after closing target APP, if receiving target APP The actively self-starting instruction of triggering, will not execute self-starting instruction.
In the embodiment of the present invention, however, it is determined that terminal screen state be bright screen state, then before closing target APP, Can also determine whether target APP is APP in running background, when target APP is the APP of running background, just close the mesh Mark APP.The reason is that, the operating parameter for the APP (i.e. the APP of front stage operation) that user is currently up is likely to not meet pre- bidding Standard, but belong to normal condition, which should not be included in control range, need to only manage the APP of running background.
Again optionally, before closing target APP, need to determine target APP not is preset system APP.It is described preset System APP may include the application of system jingle bell, the application of system dial etc..The operating parameter of preset system APP may not be inconsistent Preset standard is closed, but control range should not be included in, for example, the application of system jingle bell may be after smart phone be in screen state of going out Suspend mode lock is opened for a long time, if stopping the application of response system jingle bell, will lead to smart phone cannot issue jingle bell in incoming call, Reduce the usage experience of user;For another example, the application of system dial may operation when can short time self-starting it is multiple, if Stop the application of response system dial, then will lead to user can not pop up dial when dialing, reduce making for user With experience.
Again optionally, it is not desired to the APP closed in order to avoid closing user, closes the specific implementation process of target APP It may is that transmission prompt information, after the confirmation message for receiving external transmission, close target APP.For example, determining A game Push one prompting frame of display to user: " is the current power consumption of A game application abnormal, if clears up immediately after for target APP? <being>;<no>" closes A game application if user clicks<being>, if user clicks<no>, with no treatment.It is preferred that Ground after being determined as target APP, can directly close preset some APP;For other preset APP, true After being set to target APP, prompt information need to be sent, is closed after the confirmation message for receiving external transmission.For example, please referring to table 7, mode 1 indicates the target APP obtained according to the number for waking up terminal in a dormant state in first time period, mode 2 Indicate the target APP obtained according to the duration for opening suspend mode lock, mode 3 indicates the number according to the self-starting in second time period The target APP of acquisition, mode 4 indicate the target APP obtained according to the ratio for occupying CPU within the third period, and mode 5 indicates According to the target APP that the power consumption within the 4th period obtains, mode 6 indicates fixed according to GPS is carried out within the 5th period Target APP, the I expression that the duration of position obtains can be closed directly, and II expression need to send prompt information, receive external transmission Confirmation message after close.
Table 7
Still optionally further, user is being determined in prompting frame after input validation information, high power consumption is added in target APP Blacklist, and when APP in inactive high power consumption blacklist does not execute by the instruction of target APP actively triggering.
Therefore after the operating parameter of at least one APP that is run in obtaining terminal of the embodiment of the present invention, from above-mentioned The target APP that operating parameter is greater than or equal to preset threshold is obtained at least one APP, and then closes the target APP, Ke Yishi The APP bring power consumption by being operating abnormally now is reduced, electricity cruise duration of terminal is increased.
Fig. 2 is the flow diagram of the method for another control application program in the embodiment of the present invention, may include:
S201 determines that the terminal is in screen state of going out.
From the foregoing, it can be understood that the screen state of terminal includes bright screen state and screen state of going out.Specifically, determining that terminal is current Screen state be to go out after screen state, execute step S202.
S202 obtains the operating parameter of at least one application program run in terminal.
Specifically, the operating parameter of acquisition include it is following kind of any one or more:
Class1: APP wakes up the number of terminal in a dormant state in first time period.
Type 2:APP opens the duration of suspend mode lock (wake lock).
The number of type 3:APP self-starting in second time period.
Type 4: when the internal temperature of terminal is higher than preset temperature threshold, APP occupies the ratio of CPU within the third period Rate.
Power consumption of the type 5:APP within the 4th period.
Type 6:APP carries out the duration of GPS positioning within the 5th period.
S203 obtains destination application from least one described application program according to the operating parameter of acquisition, The operating parameter of the destination application is greater than or equal to preset threshold.
Specifically, according to the operating parameter of acquisition, the realization process that target APP is obtained from least one described APP can To include following manner:
Mode 1: if the number that the first APP wakes up terminal in a dormant state in first time period is greater than or equal to the One preset times, then obtaining the first APP is target APP.
Mode 2: if the duration that the 2nd APP opens suspend mode lock is greater than or equal to the first preset duration, obtaining the 2nd APP is Target APP.
Mode 3: it if the number of the 3rd APP self-starting in second time period is greater than or equal to the second preset times, obtains Taking the 3rd APP is target APP.
Mode 4: when the internal temperature of terminal is higher than preset temperature threshold, if the 4th APP is occupied within the third period The ratio of CPU is greater than or equal to pre-set ratio, then obtaining the 4th APP is target APP.
Mode 5: if power consumption of the 5th APP within the 4th period, which is greater than or equal to, presets electricity consumption value, described in acquisition 5th APP is target APP.
Mode 6: if the duration that the 6th APP carries out GPS positioning within the 5th period is greater than or equal to the second preset duration, Then obtaining the 6th APP is target APP.
S204 sends prompt information.
The prompt information is for prompting the user with whether close target APP.
S205 closes target APP after the confirmation message for receiving external transmission.
The external confirmation message sent is the information of user's input, and instruction can close target APP.
It should be noted that S204, S205, which may alternatively be, directly closes target APP, that is to say, that obtained in S203 To after target APP, prompt information can not be sent to user, and directly close target APP.
Therefore in the embodiment of the present invention, go out screen state when terminal is in, at least one run in obtaining terminal After the operating parameter of APP, the target APP that operating parameter is greater than or equal to preset threshold is obtained from least one above-mentioned APP, into And target APP is closed, it may be implemented to reduce the APP bring power consumption by being operating abnormally, increase electricity cruise duration of terminal.
Fig. 3 is the flow diagram of the method for another control application program in the embodiment of the present invention, may include:
S301 determines that the terminal is in bright screen state.
From the foregoing, it can be understood that the screen state of terminal includes bright screen state and screen state of going out.Specifically, determining that terminal is current Screen state be bright screen state after, execute step S302.
S302 obtains the operating parameter of at least one application program run in terminal.
Specifically, the operating parameter of acquisition include it is following kind of any one or more:
The number of type 3:APP self-starting in second time period.
Type 4: when the internal temperature of terminal is higher than preset temperature threshold, APP occupies the ratio of CPU within the third period Rate.
Power consumption of the type 5:APP within the 4th period.
Type 6:APP carries out the duration of GPS positioning within the 5th period.
S303 obtains destination application from least one described application program according to the operating parameter of acquisition, The operating parameter of the destination application is greater than or equal to preset threshold.
Specifically, according to the operating parameter of acquisition, the realization process that target APP is obtained from least one described APP can To include following manner:
Mode 1: it if the number of the 3rd APP self-starting in second time period is greater than or equal to the second preset times, obtains Taking the 3rd APP is target APP.
Mode 2: when the internal temperature of terminal is higher than preset temperature threshold, if the 4th APP is occupied within the third period The ratio of CPU is greater than or equal to pre-set ratio, then obtaining the 4th APP is target APP.
Mode 3: if power consumption of the 5th APP within the 4th period, which is greater than or equal to, presets electricity consumption value, described in acquisition 5th APP is target APP.
Mode 4: if the duration that the 6th APP carries out GPS positioning within the 5th period is greater than or equal to the second preset duration, Then obtaining the 6th APP is target APP.
S304 determines that target APP is the APP in running background.
The reason is that, the operating parameter of APP that user is currently up (i.e. the APP of front end operation) be likely to not meet it is default Standard, but belong to normal condition, which should not be included in control range, need to only manage the APP of running background.
S305 sends prompt information.
S306 closes target APP after the confirmation message for receiving external transmission.
It should be noted that prompt information can not be sent to user after S303 gets target APP, and it is direct Close target APP.
Therefore in the embodiment of the present invention, when terminal is in bright screen state, run in obtaining terminal at least one After the operating parameter of APP, the target APP that operating parameter is greater than or equal to preset threshold is obtained from least one above-mentioned APP, into And target APP is closed, it may be implemented to reduce the APP bring power consumption by being operating abnormally, increase electricity cruise duration of terminal.
Fig. 4 is the structural schematic diagram of terminal in the embodiment of the present invention, and the terminal is for executing figure 1 above, Fig. 2 or Fig. 3 institute Show the method for the control application program in embodiment, it should be understood that the explanation that occurs in ground, Fig. 1, Fig. 2 or embodiment illustrated in fig. 3 and Citing, hereafter repeats no more.Specifically, as shown in figure 4, the terminal in the embodiment of the present invention at least may include that parameter obtains mould Block 410, using obtain module 420 and apply closedown module 430, in which:
Parameter acquisition module 410, for obtaining the operating parameter of at least one APP run in terminal.
Using module 420 is obtained, for the operating parameter according to acquisition, target APP, mesh are obtained from least one APP The operating parameter for marking APP is greater than or equal to preset threshold.
Using closedown module 430, for closing target APP.
Referring to Fig. 4, the terminal in the embodiment of the present invention can also include instruction refusal module 440, instruction as shown in the figure Refuse module 440 after application closedown module closes target APP, is used for: after the instruction for receiving target APP active triggering, It does not execute instruction.
Referring to Fig. 4, the terminal in the embodiment of the present invention can also include state determining module 450, state as shown in the figure Determining module 450 is used for before the operating parameter that parameter acquisition module 410 obtains at least one APP run in terminal: really Determine terminal and is in screen state of going out.Further, operating parameter includes: that APP wakes up in a dormant state in first time period The number of terminal, and/or, APP opens the duration of suspend mode lock.
Wherein, using module 420 is obtained in the operating parameter according to acquisition, target APP is obtained from least one APP When, it is specifically used for:
If it is default that the number that the first APP wakes up terminal in a dormant state in first time period is greater than or equal to first Number, then obtaining the first APP is target APP;Or
If the duration that the 2nd APP opens suspend mode lock is greater than or equal to the first preset duration, the 2nd APP of acquisition is target APP。
Optionally, operating parameter can also include following any one or more:
The number of APP self-starting in second time period;
When the internal temperature of terminal is higher than preset temperature threshold, APP occupies the ratio of CPU within the third period;
Power consumption of the APP within the 4th period;
APP carries out the duration of GPS positioning within the 5th period.
Wherein, using module 420 is obtained in the operating parameter according to acquisition, target APP is obtained from least one APP When, it is specifically used for:
If the number of the 3rd APP self-starting in second time period is greater than or equal to the second preset times, third is obtained APP is target APP;Or
When the internal temperature of terminal is higher than preset temperature threshold, if the 4th APP occupies the ratio of CPU within the third period Rate is greater than or equal to pre-set ratio, then obtaining the 4th APP is target APP;Or
If power consumption of the 5th APP within the 4th period is greater than or equal to default electricity consumption value, the 5th APP of acquisition is mesh Mark APP;Or
If the duration that the 6th APP carries out GPS positioning within the 5th period is greater than or equal to the second preset duration, obtain 6th APP is target APP.
Optionally, the 6th APP is not navigation type APP.
Referring to Fig. 4, the terminal in the embodiment of the present invention can also include applying determining module 460, application as shown in the figure Determining module 460 is used for before application closedown module 430 closes target APP: determining that target APP is in running background APP。
Optionally, it is also used to before application closedown module 430 closes target APP using determining module 460: determining mesh Marking APP is not preset system APP.
Also optionally, it is specifically used for using closedown module 430 when closing the destination application:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
Fig. 5 is the structural schematic diagram of another terminal in the embodiment of the present invention, as shown in figure 5, the terminal may include: At least one processor 501, such as CPU, at least one communication bus 502, memory 503, display unit 504, input unit 505.Wherein, communication bus 502 is for realizing the connection communication between these components;Display unit 504 may include screen;It is defeated Entering unit may include touch screen and other input equipments.Memory 503 can be high speed RAM memory, be also possible to non-easy The memory (non-volatile memory) of mistake, for example, at least a magnetic disk storage.Optionally, memory 503 can be with It is the storage device that at least one is located remotely from aforementioned processor 501.Batch processing code is stored in memory 503, and is handled Device 501 is for calling the program code stored in memory 503 to execute following operation:
Obtain the operating parameter of at least one application program run in terminal;
According to the operating parameter of acquisition, destination application is obtained from least one described application program, it is described The operating parameter of destination application is greater than or equal to preset threshold;
Close the destination application.
Optionally, processor 501 also executes after closing the destination application:
After receiving the instruction that the destination application actively triggers, described instruction is not executed.
Optionally, it before the operating parameter at least one application program that processor 501 is run in obtaining terminal, also holds Row:
Determine that the terminal is in screen state of going out;
The operating parameter includes: time for the terminal that application program wakes up in a dormant state in first time period Number, and/or, application program opens the duration of suspend mode lock.
Correspondingly, processor 501 is obtained from least one described application program in the operating parameter according to acquisition It is specific to execute following operation when destination application:
If the number that the first application program wakes up the terminal in a dormant state in first time period is greater than or waits In the first preset times, then obtaining first application program is the destination application;Or
If the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration, obtains described second and answer It is the destination application with program.
Again optionally, the operating parameter, including following any one or more:
The number of application program self-starting in second time period;
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies CPU within the third period Ratio;
Power consumption of the application program within the 4th period;
Application program carries out the duration of GPS positioning within the 5th period.
Correspondingly, processor 501 is obtained from least one described application program in the operating parameter according to acquisition It is specific to execute following operation when destination application:
If the number of third application program self-starting in the second time period is greater than or equal to the second preset times, Obtaining the third application program is the destination application;Or
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third Between occupy the ratio of CPU in section and be greater than or equal to pre-set ratio, then obtaining the 4th application program is the target application journey Sequence;Or
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, institute is obtained Stating the 5th application program is the destination application;Or
If the 6th application program carried out within the 5th period GPS positioning duration be greater than or equal to second it is default when Long, then obtaining the 6th application program is the destination application.
Further, the 6th application program is not navigation type application program.
Separately optionally, processor 501 also executes before closing the destination application:
Determine that the destination application is the application program in running background.
Separately optionally, processor 501 also executes before closing the destination application:
Determining the destination application not is preset system application.
Separately optionally, processor 501 is specific to execute following operation when closing the destination application:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
The embodiment of the present invention also proposed a kind of computer storage medium, and the computer storage medium is stored with program, Described program includes some instructions to execute in the method for controlling application program described in Fig. 1 of the embodiment of the present invention-Fig. 3 Part or all of step.
Therefore after the operating parameter of at least one APP that is run in obtaining terminal of the embodiment of the present invention, from above-mentioned The target APP that operating parameter is greater than or equal to preset threshold is obtained at least one APP, and then closes the target APP, Ke Yishi The APP bring power consumption by being operating abnormally now is reduced, electricity cruise duration of terminal is increased.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (21)

1. a kind of method for controlling application program, which is characterized in that the described method includes:
Obtain the operating parameter of at least one application program run in terminal;
According to the operating parameter of acquisition, destination application, the target are obtained from least one described application program The operating parameter of application program is greater than or equal to preset threshold;
Close the destination application;
Wherein, described to close before the destination application further include: determining the destination application not is preset system System application program;
Wherein, before the operating parameter for obtaining at least one application program run in terminal, the method also includes: really The fixed terminal is in screen state of going out, and the screen state of the terminal includes bright screen state and screen state of going out;The operating parameter It include: the number for the terminal that application program wakes up in a dormant state in first time period, and/or, application program is opened Open the duration of suspend mode lock;Wherein, the operating parameter according to acquisition, obtains mesh from least one described application program Mark application program includes: if the number that the first application program wakes up the terminal in a dormant state in first time period is big In or equal to the first preset times, then obtaining first application program is the destination application;Or, if second applies journey The duration that sequence opens suspend mode lock is greater than or equal to the first preset duration, then obtaining second application program is the target application Program;
Alternatively,
The operating parameter further includes following any one or more: application program in second time period the number of self-starting, Application program carries out the duration of GPS positioning within the 5th period;Wherein, the operating parameter according to acquisition, from institute If stating and obtaining destination application at least one application program includes: that third application program opens certainly in the second time period Dynamic number is greater than or equal to the second preset times, then obtaining the third application program is the destination application, alternatively, If the duration that the 6th application program carries out GPS positioning within the 5th period is greater than or equal to the second preset duration, obtain Taking the 6th application program is the destination application, and the 6th application program is not navigation type application program.
2. the method as described in claim 1, which is characterized in that described to close after the destination application, the method Further include:
After receiving the instruction that the destination application actively triggers, described instruction is not executed.
3. the method as described in claim 1, which is characterized in that the operating parameter further includes following any one or more:
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies the ratio of CPU within the third period Rate;
Power consumption of the application program within the 4th period.
4. method as claimed in claim 3, which is characterized in that the operating parameter according to acquisition, from it is described at least Destination application is obtained in one application program, comprising:
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third period The interior ratio for occupying CPU is greater than or equal to pre-set ratio, then obtaining the 4th application program is the destination application;Or Person
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, described the is obtained Five application programs are the destination application.
5. method as claimed in claim 3, which is characterized in that described to close before the destination application, further includes:
Determine that the destination application is the application program in running background.
6. method as claimed in claim 4, which is characterized in that described to close before the destination application, further includes:
Determine that the destination application is the application program in running background.
7. as the method according to claim 1 to 6, which is characterized in that described to close the destination application, comprising:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
8. a kind of terminal, which is characterized in that the terminal includes:
Parameter acquisition module, for obtaining the operating parameter of at least one application program run in terminal;
Target is obtained from least one described application program for the operating parameter according to acquisition using module is obtained The operating parameter of application program, the destination application is greater than or equal to preset threshold;
Using closedown module, for closing the destination application;
Wherein, described to apply determining module, it is also used to before the application closedown module closes the destination application, really The fixed destination application is not preset system application;
Wherein, the terminal further includes state determining module, the state determining module, for obtaining in the parameter acquisition module Before the operating parameter for taking at least one application program run in terminal, determine that the terminal is in screen state of going out, the end The screen state at end includes bright screen state and screen state of going out;The operating parameter includes: that application program is called out in first time period The number and/or application program of the terminal waken up in a dormant state open the duration of suspend mode lock;
Wherein, the application obtains module in the operating parameter according to acquisition, obtains from least one described application program When taking destination application, be specifically used for: if the first application program waken up in first time period in a dormant state described in The number of terminal is greater than or equal to the first preset times, then obtaining first application program is the destination application;Or Person obtains described second using journey if the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration Sequence is the destination application;
Alternatively,
The operating parameter includes the one or more of following parameter: application program in second time period the number of self-starting, Application program carries out the duration of GPS positioning within the 5th period;Wherein, the application obtains module according to acquisition Operating parameter is specifically used for: when obtaining destination application from least one described application program if third application program exists The number of self-starting is greater than or equal to the second preset times in the second time period, then obtains the third application program as institute State destination application;Alternatively, if the duration that the 6th application program carries out GPS positioning within the 5th period be greater than or Equal to the second preset duration, then obtaining the 6th application program is the destination application, and the 6th application program is not It is navigation type application program.
9. terminal as claimed in claim 8, which is characterized in that the terminal further includes instruction refusal module,
Described instruction refuses module, is used for after the application closedown module closes the destination application, if receiving The instruction that the destination application actively triggers, then do not execute described instruction.
10. terminal as claimed in claim 9, which is characterized in that the operating parameter further includes following any one or more:
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies the ratio of CPU within the third period Rate;
Power consumption of the application program within the 4th period.
11. terminal as claimed in claim 10, which is characterized in that the application obtains module in the operation according to acquisition Parameter, when obtaining destination application from least one described application program, also particularly useful for:
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third period The interior ratio for occupying CPU is greater than or equal to pre-set ratio, then obtaining the 4th application program is the destination application;Or Person
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, described the is obtained Five application programs are the destination application.
12. terminal as claimed in claim 10, which is characterized in that the terminal further includes applying determining module,
It is described to apply determining module, described in determining before the application closedown module closes the destination application Destination application is the application program in running background.
13. terminal as claimed in claim 11, which is characterized in that
The terminal further includes applying determining module,
It is described to apply determining module, described in determining before the application closedown module closes the destination application Destination application is the application program in running background.
14. such as the described in any item terminals of claim 8-13, which is characterized in that the application closedown module is closing the mesh When marking application program, it is specifically used for:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
15. a kind of terminal, which is characterized in that the terminal includes display unit, input unit, memory and processor, In, batch processing is stored in memory, and processor, for calling the program stored in memory, execution is following to be operated:
Obtain the operating parameter of at least one application program run in terminal;
According to the operating parameter of acquisition, destination application, the target are obtained from least one described application program The operating parameter of application program is greater than or equal to preset threshold;
Close the destination application;
Wherein, the processor also executes before closing the destination application: determining the destination application not is Preset system application;
Wherein, it is also executed before the operating parameter at least one application program that the processor is run in obtaining terminal: really The fixed terminal is in screen state of going out, and the screen state of the terminal includes bright screen state and screen state of going out;The operating parameter It include: the number for the terminal that application program wakes up in a dormant state in first time period, and/or, application program is opened Open the duration of suspend mode lock;
Wherein, the processor obtains target from least one described application program in the operating parameter according to acquisition It is specific to execute following operation: if the first application program wakes up institute in a dormant state in first time period when application program The number for stating terminal is greater than or equal to the first preset times, then obtaining first application program is the destination application; Alternatively, obtaining second application if the duration that the second application program opens suspend mode lock is greater than or equal to the first preset duration Program is the destination application;
Alternatively,
The operating parameter includes following any one or more: application program in second time period the number of self-starting, answer The duration of GPS positioning is carried out within the 5th period with program;The processor is in the operating parameter according to acquisition, from institute It is specific to execute following operation: if third application program is described when stating acquisition destination application at least one application program The number of self-starting is greater than or equal to the second preset times in second time period, then obtaining the third application program is the mesh Mark application program;Or, if the duration that the 6th application program carries out GPS positioning within the 5th period is greater than or equal to second Preset duration, then obtaining the 6th application program is the destination application, and the 6th application program is not navigation type Application program.
16. terminal as claimed in claim 15, which is characterized in that the processor close the destination application it Afterwards, if receiving the instruction that the destination application actively triggers, described instruction is not executed.
17. terminal as claimed in claim 15, which is characterized in that the operating parameter further includes following any one or more :
When the internal temperature of the terminal is higher than preset temperature threshold, application program occupies the ratio of CPU within the third period Rate;
Power consumption of the application program within the 4th period.
18. terminal as claimed in claim 17, which is characterized in that the processor in the operating parameter according to acquisition, It is specific to execute following operation when obtaining destination application from least one described application program:
When the internal temperature of the terminal is higher than the preset temperature threshold, if the 4th application program is in the third period The interior ratio for occupying CPU is greater than or equal to pre-set ratio, then obtaining the 4th application program is the destination application;Or Person
If power consumption of the 5th application program within the 4th period is greater than or equal to default electricity consumption value, described the is obtained Five application programs are the destination application.
19. terminal as claimed in claim 17, which is characterized in that the processor close the destination application it Before, also execute:
Determine that the destination application is the application program in running background.
20. terminal as claimed in claim 18, which is characterized in that the processor close the destination application it Before, also execute:
Determine that the destination application is the application program in running background.
21. such as the described in any item terminals of claim 15-20, which is characterized in that the processor is answered in the closing target It is specific to execute following operation when with program:
Directly close the destination application;Or
Prompt information is sent, after the confirmation message for receiving external transmission, closes the destination application.
CN201580006068.3A 2015-04-14 2015-04-14 A kind of method and terminal controlling application program Active CN106256116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910690275.5A CN110554762A (en) 2015-04-14 2015-04-14 Method and terminal for controlling application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/076589 WO2016165078A1 (en) 2015-04-14 2015-04-14 Method and terminal for controlling application

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910690275.5A Division CN110554762A (en) 2015-04-14 2015-04-14 Method and terminal for controlling application program

Publications (2)

Publication Number Publication Date
CN106256116A CN106256116A (en) 2016-12-21
CN106256116B true CN106256116B (en) 2019-08-13

Family

ID=57125564

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910690275.5A Pending CN110554762A (en) 2015-04-14 2015-04-14 Method and terminal for controlling application program
CN201580006068.3A Active CN106256116B (en) 2015-04-14 2015-04-14 A kind of method and terminal controlling application program

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910690275.5A Pending CN110554762A (en) 2015-04-14 2015-04-14 Method and terminal for controlling application program

Country Status (2)

Country Link
CN (2) CN110554762A (en)
WO (1) WO2016165078A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329559B (en) * 2017-06-30 2021-04-16 宇龙计算机通信科技(深圳)有限公司 Application program control method, device, terminal and storage medium
CN107729236A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 Management method, device, mobile terminal and the storage medium of application program
CN107886119B (en) * 2017-10-31 2020-05-12 Oppo广东移动通信有限公司 Feature extraction method, application control method, device, medium and electronic equipment
CN108717376A (en) * 2018-03-23 2018-10-30 河源市美晨智能研究院 Management method, electronic equipment and the device with store function of background application
CN110837288B (en) * 2018-08-15 2024-03-19 北京搜狗科技发展有限公司 Application management method and device, mobile terminal and readable storage medium
CN109271292A (en) * 2018-09-06 2019-01-25 北京小米移动软件有限公司 Power consumption information acquisition method and device
CN109413726B (en) * 2018-12-24 2021-05-07 维沃移动通信有限公司 Power consumption control method and mobile terminal
CN110134219B (en) * 2019-05-13 2024-03-19 深圳传音通讯有限公司 Application program background power consumption processing method and device
CN111221633A (en) * 2019-10-31 2020-06-02 RealMe重庆移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN111309282B (en) * 2020-02-11 2023-08-22 RealMe重庆移动通信有限公司 Audio equipment power consumption control method and device, audio equipment and storage medium
CN113766611B (en) * 2020-06-02 2023-08-11 深圳市万普拉斯科技有限公司 Low-power consumption control optimization method and device, mobile terminal and storage medium
CN111867024A (en) * 2020-06-28 2020-10-30 维沃移动通信有限公司 Electronic equipment control method and device and electronic equipment
CN114449094B (en) * 2020-10-30 2023-04-11 华为技术有限公司 Control method, electronic device, chip and storage medium
CN113645682A (en) * 2021-08-12 2021-11-12 深圳市柔宇科技股份有限公司 Application program management method and mobile terminal
CN117119564A (en) * 2022-05-16 2023-11-24 中兴通讯股份有限公司 Control method of positioning tracking device, positioning tracking device and storage medium
CN116089930A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Application management and control method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104317649A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Processing method and device of terminal application program APP and terminal
CN104331357A (en) * 2014-10-10 2015-02-04 北京金山安全软件有限公司 Application program abnormity detection method and device and mobile terminal

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2446168A (en) * 2007-01-30 2008-08-06 Third Sense Ltd Reducing the power consumed from a battery
US8811555B2 (en) * 2010-02-04 2014-08-19 Altera Corporation Clock and data recovery circuitry with auto-speed negotiation and other possible features
CN102510422B (en) * 2011-10-09 2014-06-25 惠州Tcl移动通信有限公司 Mobile terminal and method for regulating operating load thereof
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN104184907B (en) * 2013-05-27 2017-12-15 腾讯科技(深圳)有限公司 The detection method and terminal of the wake-up data of terminal application software in the standby state
CN104298336B (en) * 2013-07-19 2018-09-14 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN103607494B (en) * 2013-11-30 2016-04-06 广东欧珀移动通信有限公司 The method in a kind of automated terminal test at times cruising time and terminal
CN104021019B (en) * 2014-06-18 2016-09-14 腾讯科技(深圳)有限公司 A kind of apply the control method of self-starting, terminal and server
CN104102326B (en) * 2014-07-23 2017-08-08 Tcl通讯(宁波)有限公司 The electricity-saving control method and system of a kind of mobile terminal
CN104391743B (en) * 2014-11-26 2018-01-12 北京奇虎科技有限公司 Optimize the method and apparatus of the speed of service of mobile terminal
CN104486510A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104317649A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Processing method and device of terminal application program APP and terminal
CN104331357A (en) * 2014-10-10 2015-02-04 北京金山安全软件有限公司 Application program abnormity detection method and device and mobile terminal

Also Published As

Publication number Publication date
CN106256116A (en) 2016-12-21
WO2016165078A1 (en) 2016-10-20
CN110554762A (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN106256116B (en) A kind of method and terminal controlling application program
CN107809542B (en) Application program control method and device, storage medium and electronic equipment
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN108491275A (en) program optimization method, device, terminal and storage medium
EP2381357B1 (en) Generation and control of a title bar on a display of a portable electronic device having multiple applications
CN107943534B (en) Background application program closing method and device, storage medium and electronic equipment
CN106528282A (en) Method, device and terminal for closing process
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
US11245786B2 (en) Recommendation method and terminal
CN109343902A (en) Operation method, device, terminal and the storage medium of audio processing components
CN106296135A (en) Event-prompting method, device and terminal
CN104346563B (en) The method and electronic equipment of a kind of information processing
CN104424432A (en) Information processing method and electronic device
CN111796735B (en) Application program control method and device and electronic equipment
CN105892818A (en) Information processing method and device and electronic equipment
CN108712559A (en) A kind of disturbance-free method, system and terminal device
CN106055360A (en) Starting method of application background service and mobile terminal
CN108804156A (en) Application program preloads method, apparatus, storage medium and terminal
CN108184021A (en) A kind of application operation condition control method and mobile terminal
CN113709306B (en) Session processing method and device and electronic equipment
CN106155870B (en) Terminal optimization processing method and device and terminal
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN105955789B (en) A kind of application program discharging method, device and equipment
CN103257894B (en) A kind of method and electric terminal of management program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant