CN110187753A - Application control method, device, terminal and computer readable storage medium - Google Patents

Application control method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110187753A
CN110187753A CN201910448906.2A CN201910448906A CN110187753A CN 110187753 A CN110187753 A CN 110187753A CN 201910448906 A CN201910448906 A CN 201910448906A CN 110187753 A CN110187753 A CN 110187753A
Authority
CN
China
Prior art keywords
destination application
application
state
parameter value
operational parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910448906.2A
Other languages
Chinese (zh)
Other versions
CN110187753B (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 CN201910448906.2A priority Critical patent/CN110187753B/en
Publication of CN110187753A publication Critical patent/CN110187753A/en
Application granted granted Critical
Publication of CN110187753B publication Critical patent/CN110187753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

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

Abstract

This application involves field of terminal technology, this application discloses a kind of application control method, application control method the following steps are included: obtain destination application operating status and the operating status under operational parameter value;Preset state and threshold map table are inquired, the corresponding targets threshold of operating status described in the destination application is obtained;When detecting that the operational parameter value reaches the targets threshold, the destination application is adjusted.Disclosed herein as well is a kind of application program controlling device, terminal and computer readable storage mediums.According to the operating status of destination application in the application, the corresponding targets threshold of operating status is determined, when the operating parameter of destination application is more than targets threshold, by adjusting destination application, extend the cruise duration of end cell.

Description

Application control method, device, terminal and computer readable storage medium
Technical field
This application involves field of terminal technology more particularly to application control method, device, terminals and computer-readable Storage medium.
Background technique
With the continuous development of mobile communication and electronic technology, terminal is increasingly becoming work indispensable in people's life Tool.Under the premise of end cell performance is constant, battery saving mode is usually arranged in terminal, by the brightness for reducing terminal display screen Come, in order to extend the cruise duration of terminal, still, such control mode simultaneously cannot actually make for each application program With situation, the use of application program may be will affect.
Summary of the invention
The main purpose of the application is to provide a kind of application control method, device, terminal and computer-readable deposits Storage media, it is intended to solve the actual use situation that cannot be currently directed to each application program, extend end cell cruise duration Technical problem.
To achieve the above object, the application provides a kind of application control method, the application control method packet Include following steps:
Obtain the operational parameter value under the operating status and the operating status of destination application;
Preset state and threshold map table are inquired, the corresponding target threshold of operating status described in the destination application is obtained Value;
When detecting that the operational parameter value reaches the targets threshold, the destination application is adjusted.
Optionally, described when detecting that the operational parameter value reaches the targets threshold, adjust the target application The step of program, comprising:
When detecting that the operational parameter value reaches the targets threshold, if the operating status is foreground state, Judge the operational order to the destination application whether is received in the first preset duration in the past;
If the operational order to the destination application is not received by the first preset duration of past, by the mesh It marks application program and background state is switched to by foreground state.
Optionally, the operation of the destination application is referred to if being not received by first preset duration in the past After the step of enabling, then the destination application being switched to background state by foreground state, comprising:
When detecting that the destination application switches to background state, the corresponding operation ginseng of the background state is obtained Numerical value;
The preset state and threshold map table are inquired, the corresponding mesh of background state described in the destination application is obtained Mark threshold value;
When detecting that the operational parameter value reaches the corresponding targets threshold of the background state, the mesh is closed Mark application program.
Optionally, the operation of the destination application is referred to if being not received by first preset duration in the past The step of enabling, then the destination application being switched into background state by foreground state, comprising:
If being not received by the operational order to the destination application, output state in the first preset duration of past Switch prompting information;
The status switching instruction based on the state switch prompting information input is received, the status switching instruction is executed, The destination application is switched into background state by foreground state.
Optionally, described when detecting that the operational parameter value reaches the targets threshold, if the operating status is Foreground state then judges the step of whether receiving the operational order to the destination application in the first preset duration in the past Later, comprising:
If receiving the operational order to the destination application in first preset duration of past, described in reduction The volume of destination application, the display brightness for reducing the destination application, the resolution for turning down the destination application Rate and/or the contrast for reducing the destination application.
Optionally, described when detecting that the operational parameter value reaches the targets threshold, adjust the target application The step of program, comprising:
When detecting that the operational parameter value reaches the targets threshold, if the operating status is background state, Judge the destination application with the presence or absence of task in execution;
If task in execution is not present in the destination application, the destination application is closed.
Optionally, described when detecting that the operational parameter value reaches the targets threshold, if the operating status is Background state, then after the step of judging the destination application with the presence or absence of task in execution, comprising:
If there are tasks in execution for the destination application, the destination application in execution is closed Business.
Optionally, the operating status for obtaining destination application and operational parameter value under the operating status Step, comprising:
The operating status for obtaining destination application, judges whether the operating right with the destination application;
If the operating right with the destination application, obtains the destination application in the operating status Under operational parameter value.
Optionally, the operating status for obtaining destination application and operational parameter value under the operating status Before step, comprising:
Obtain remaining capacity;
If the remaining capacity is less than default electricity, the operating status for obtaining destination application and institute are executed The step of stating the operational parameter value under operating status.
Optionally, the operating status for obtaining destination application and operational parameter value under the operating status Before step, comprising:
Obtain the power consumption rate in the second preset duration in the past;
If the power consumption rate is greater than default power consumption rate, the operating status for obtaining destination application is executed, The step of with operational parameter value under the operating status.
Optionally, described when detecting that the operational parameter value reaches the targets threshold, adjust the application program The operating status the step of after, comprising:
If the destination application that adjustment is completed is in close state, detecting that the destination application opens When dynamic, the operational parameter value of the destination application is updated;
If the destination application that adjustment is completed is not on closed state, the destination application is updated Operating status.
In addition, to achieve the above object, the application also provides a kind of application program controlling device, the application program controlling Device includes:
State parameter obtains module, the fortune under operating status and the operating status for obtaining destination application Row parameter value;
Threshold query module obtains fortune described in the destination application for inquiring preset state and threshold map table The corresponding targets threshold of row state;
Detection adjustment module, for adjusting the mesh when detecting that the operational parameter value reaches the targets threshold Mark application program.
Optionally, the detection adjusts module, comprising:
First judging submodule, for when detecting that the operational parameter value reaches the targets threshold, if the fortune Whether row state is foreground state, then judge to pass by receive in the first preset duration to refer to the operation of the destination application It enables;
The first adjustment submodule, if for being not received by the first preset duration in the past to the destination application The destination application is then switched to background state by foreground state by operational order.
Optionally, the detection adjusts module, comprising:
Acquisition submodule is detected, for when detecting that the destination application switches to background state, described in acquisition The corresponding operational parameter value of background state;
Threshold query submodule obtains the destination application for inquiring the preset state and threshold map table The corresponding targets threshold of the background state;
Submodule is closed in detection, for detecting the corresponding mesh of the operational parameter value arrival background state When marking threshold value, the destination application is closed.
Optionally, the first adjustment submodule includes:
Output unit is prompted, if for being not received by the behaviour to the destination application in the first preset duration in the past It instructs, then output state switch prompting information;
Switch unit is received, for receiving the status switching instruction based on the state switch prompting information input, is executed The destination application is switched to background state by foreground state by the status switching instruction.
Optionally, the detection adjusts module, comprising:
Second adjustment submodule, if for receiving in first preset duration of past to the destination application Operational order, then the volume for reducing the destination application, the display brightness for reducing the destination application, turn down it is described The resolution ratio of destination application and/or the contrast for reducing the destination application.
Optionally, the detection adjustment module includes:
Second judgment submodule, for when detecting that the operational parameter value reaches the targets threshold, if the fortune Row state is background state, then judges the destination application with the presence or absence of task in execution;
Stop submodule closes the mesh if task in execution is not present for the destination application Mark application program.
Optionally, the detection adjustment module includes:
Task closes submodule and closes the target if there are tasks in execution for the destination application Application program task in execution.
In addition, to achieve the above object, the application also provides a kind of terminal;
The terminal includes: memory, processor and is stored on the memory and can run on the processor Computer program, in which:
The step of computer program realizes application control method as described above when being executed by the processor.
In addition, to achieve the above object, the application also provides computer storage medium;
Computer program, the realization when computer program is executed by processor are stored in the computer storage medium Such as the step of above-mentioned application control method.
A kind of application control method, device, terminal and the computer readable storage medium that the embodiment of the present application proposes, The operational parameter value under the operating status and the operating status of destination application is obtained in the present embodiment;Inquire default shape State and threshold map table, obtain the corresponding targets threshold of operating status described in the destination application;Detecting the fortune When row parameter value reaches the targets threshold, the destination application is adjusted.Preset state and threshold value in the present embodiment terminal Mapping table, terminal select corresponding targets threshold according to the operating status of application program, and destination application reaches targets threshold Destination application is adjusted, such adjustment mode is directed to the use state of destination application, adjusts target application Program, neither normal operating of the influence user to destination application, and the cruise duration of end cell can be extended.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing a kind of terminal of each embodiment of the application;
Fig. 2 is the flow diagram of the application application control method first embodiment;
Fig. 3 is the functional block diagram of one embodiment of the application application program controlling device.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit the application.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present application scheme is related to.
The present embodiment provides a kind of terminals, are called application program controlling equipment, and terminal can be by individual application program Control device is constituted, and is also possible to be combined by other devices with application program controlling device and is formed, and the terminal in the present embodiment can To implement in a variety of manners.For example, terminal described in this application may include such as mobile phone, tablet computer, notebook electricity Brain, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device and wearable device etc..
As shown in Figure 1, the application program controlling equipment may include: processor 1001, such as CPU, network interface 1004, User interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional User interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable Memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned The storage device of processor 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and the corresponding computer program of application program controlling.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the corresponding computer program of the application program controlling stored in memory 1005, and execute following applications Operation in control method.
The specific embodiment of the application terminal and the specific embodiment of computer readable storage medium and following application programs Each embodiment of control method is essentially identical, and therefore not to repeat here.
Based on above-mentioned terminal hardware structure, each embodiment of the application application control method is proposed.
Referring to Fig. 2, the first embodiment of the application provides a kind of application control method, the application program controlling side Method, comprising:
Step S10 obtains the operational parameter value under the operating status and the operating status of destination application.
Terminal receives application program controlling instruction in the present embodiment, wherein the triggering mode of application program controlling instruction is not It limits, that is, application program controlling instruction can be by user's active triggering;Can also be terminal detect meet it is preset Automatic trigger when application program controlling condition.
For terminal when receiving application program controlling instruction, terminal obtains the operating status of destination application, wherein mesh Mark number of applications, which is not especially limited, can be one or more;Terminal is in the operation shape for getting destination application After state, terminal obtains corresponding operational parameter value under destination application operating status;When operational parameter value includes: operation Between, power consumption rate, power consumption, network resource consumption amount and CPU usage (Central Processing Unit/ Processor, central processing unit).
Further, in this embodiment step S10 includes:
Terminal obtains the operating status of destination application, judges whether the operating rights with the destination application Limit;If the operating right with the destination application, obtains the destination application under the operating status Operational parameter value.
Terminal can be controlled in the present embodiment with third party application, the control to system program be excluded, with effective Ground ensure that normal operation of terminal, in addition, considering part particular application in the present embodiment, such as wechat, mailbox etc. are soft Part, user need to receive information in real time, therefore do not need to carry out control adjustment to such application program, so that end cell is continuous ETS estimated time of sailing and user demand take into account.
Step S20, inquiry preset state and threshold map table, it is corresponding to obtain operating status described in the destination application Targets threshold.
Each application program is preset in preset state and threshold map table in terminal, preset state and threshold map table Threshold value (being called, adjust critical parameters value) under different operating statuses;Threshold value includes but are not limited to: standard hour of operation, mark Quasi- power consumption rate, standard power consumption, standard network consumed resource and standard CPU usage, threshold value can be user and actively set It sets, that is, corresponding threshold value is arranged to the different operating status of application program has been installed in terminal in user;Preset state and threshold value Mapping table is as shown in table 1:
Table 1
In addition, threshold value can also be terminal self-setting, that is, the power consumption speed of terminal combination battery dump energy, battery Rate, the particular condition in use of application program (such as the running frequency of application program, and average operation duration) or other factors The threshold value of automatic setting application program, specifically, preset state and threshold value in threshold map table are related with terminal residual electricity, such as Shown in the following table 2:
Table 2
Terminal inquiry preset state and threshold map table obtain the corresponding targets threshold of destination application operating status, For example, preset state shown in terminal inquiry table 2 and threshold map table, obtain the targets threshold of destination application A, that is, mesh Mark application program A operating status is front stage operation, and end cell remaining capacity is 50%, the application program A's that terminal is got Targets threshold is 1.5 hours standard hour of operation or standard power consumption 200mA.
Step S30 adjusts the target application journey when detecting that the operational parameter value reaches the targets threshold Sequence.
The operational parameter value of destination application is compared by terminal with targets threshold, in the operation of destination application When parameter value is more than targets threshold, terminal adjusts the destination application.
Operating parameter and targets threshold are same dimensional parameters in the present embodiment, and operational parameter value is corresponding with targets threshold , for example, operational parameter value is runing time, then targets threshold is the standard time;Operational parameter value is power consumption rate, then target Threshold value is standard power consumption rate;Operational parameter value is the power consumption in operational process, then targets threshold is standard power consumption;Operation Parameter value is program CPU usage, then targets threshold is standard CPU usage.
It is understood that can be more than corresponding targets threshold with one or more operational parameter value in the present embodiment, that is, The runing time that can be application program is more than the standard hour of operation of the application program or the power consumption of application program is more than The standard power consumption of application program;The runing time that can also be application program is more than the standard hour of operation of the application program, And the power consumption of application program is more than the standard power consumption of application program.
Terminal adjustment destination application includes: that the application program in foreground state is adjusted to by terminal in the present embodiment Background state;Or the application program adjustment in background state is in off state by terminal;Or terminal will be in preceding mesa-shaped The display brightness of the destination application of state reduces, then terminal the closing application program part backstage of background state is executed Task dispatching etc., to reduce the power consumption of terminal by the resource consumption for reducing application program under operating status.
In the present embodiment, terminal adjusts destination application according to the operating status of destination application, neither influences to use Normal operating of the family to destination application, and the cruise duration of end cell can be extended.
It is to be understood that terminal is by the operating parameter of the application program after terminal completes application program adjustment Value is updated, specifically:
Step a1 is detecting that the target answers if the destination application that adjustment is completed is in close state When being started with program, the operational parameter value of the destination application is updated;
Step a2 updates the target and answers if the destination application that adjustment is completed is not on closed state With the operating status of program.
Terminal obtains the current state that destination application is completed in adjustment, the destination application that terminal judgement adjustment is completed Whether it is in close state, when the destination application that adjustment is completed is in close state, terminal is by destination application Operational parameter value is zeroed;For terminal when detecting destination application restarting, terminal updates the target application journey The operational parameter value of sequence;When the destination application that adjustment is completed is not on closed state, terminal is by destination application Operational parameter value be zeroed and counted again.Terminal carries out the operational parameter value of destination application real in the present embodiment Shi Gengxin, to guarantee the real-time of application program controlling.
Further, second that the application application control method is proposed on the basis of first embodiment is implemented Example.
The present embodiment is the refinement of the step S20 of first embodiment, and terminal adjustment foreground state is given in the present embodiment Destination application specific implementation, comprising:
Step S21, when detecting that the operational parameter value reaches the targets threshold, if the operating status is foreground State then judges the operational order to the destination application whether is received in the first preset duration in the past.
Terminal detects that operational parameter value reaches targets threshold, and terminal determines that destination application is in foreground state, eventually (the first preset duration refers to that pre-set detection time, the first preset duration can roots to the first preset duration in the past for end judgement According to concrete condition flexible setting, such as be set as 2 minutes) in whether receive operational order to destination application;With root It is operated according to the corresponding adjustment of operational order execution whether received to destination application, specifically:
Step S22, if receiving the operational order to the destination application in the first preset duration of the past, The volume for reducing the destination application, turns down the target application journey at the display brightness for reducing the destination application The resolution ratio of sequence and/or the contrast for reducing the destination application.
If receiving the operational order to destination application in the first preset duration of past, terminal output adjustment is mentioned Show, terminal receives confirmation instruction of the user based on adjustment prompt input, and terminal reduces the volume of destination application, reduces target The display brightness of application program, the resolution ratio for turning down destination application and/or the contrast for reducing destination application, to subtract Few destination application power consumption.
It is understood that terminal can also adjust other parameters in destination application operational process in the present embodiment, For example, limited target application program function, with by reduce destination application electric quantity consumption, extend end cell Cruise duration.
After the present embodiment step S21, further includes:
Step S23, if the operational order to the destination application is not received by the first preset duration in the past, The destination application is switched into background state by foreground state.
Specifically, step S23 includes:
Step b1, if the operational order to the destination application is not received by the first preset duration in the past, Output state switch prompting information;
Step b2 receives the status switching instruction based on the state switch prompting information input, executes the state and cut Instruction is changed, the destination application is switched into background state by foreground state.
If the operational order to destination application is not received by the present embodiment in the first preset duration of past, eventually Hold output state switch prompting information;Terminal receives status switching instruction of the user based on state switch prompting information input, eventually End executes status switching instruction, destination application is switched to background state by foreground state, to reduce the target application journey The power consumption of sequence extends the cruise duration of end cell.
Further, the third for proposing the application application control method on the basis of the above embodiments is implemented Example.
The step of the present embodiment is after the step S23 of second embodiment gives terminal for preceding mesa-shaped in the present embodiment The destination application of state adjusts the specific implementation to background state, comprising:
It is corresponding to obtain the background state when detecting that the destination application switches to background state by step c1 Operational parameter value;
Step c2 inquires the preset state and threshold map table, obtains background state described in the destination application Corresponding targets threshold;
Step c3 is closed when detecting that the operational parameter value reaches the corresponding targets threshold of the background state Close the destination application.
Destination application is switched to background state, the terminal more corresponding fortune of new target application background state by terminal Row parameter value;For example, terminal will when the runing time that xxx video software is in foreground state is above standard runing time 2 hours Xxx video software is adjusted to background state, and the runing time that xxx video software is in foreground state is zeroed by terminal, so Afterwards, terminal starts to count the runing time that xxx video software is in background state.Terminal obtains destination application background state Corresponding operational parameter value.
(preset state and threshold map table and first in the present embodiment are real for terminal inquiry preset state and threshold map table Apply identical in example, the present embodiment does not repeat), terminal obtains the corresponding targets threshold of destination application background state;It is examining When measuring operational parameter value and reaching the corresponding targets threshold of background state, terminal closes destination application, in the present embodiment eventually End, which will be adjusted from preceding mesa-shaped state to the destination application of background state, to be closed, to reduce the power consumption of the destination application Amount, extends the cruise duration of end cell;At the same time, terminal by the application program of foreground state adjust to background state it Afterwards, the corresponding operational parameter value of terminal more new application, to guarantee real-time that terminal controls destination application.
Further, propose the application application control method on the basis of the above embodiments the 4th implements Example.
The present embodiment is the refinement of the step S20 of first embodiment, and terminal adjustment background state is given in the present embodiment Destination application specific implementation, comprising:
Step S24, when detecting that the operational parameter value reaches the targets threshold, if the operating status is backstage State then judges the destination application with the presence or absence of task in execution.
Terminal detects that operational parameter value reaches targets threshold, and terminal determines that destination application is background state, terminal Judge the destination application of background state with the presence or absence of task in execution, that is, terminal obtain destination application backstage into When the corresponding each thread of journey in background process includes thread task, terminal determine application program there are task in execution, It is on the contrary.
Step S25 closes the destination application if task in execution is not present in the destination application.
Determining destination application there is no when task in execution in terminal, then terminal output bolt down procedure prompts, When terminal receives confirmation instruction of the user based on bolt down procedure prompt input, terminal closes application program;It is received in terminal It is based on bolt down procedure prompt to user to have selected to cancel, then terminal does not close the application program;In addition, terminal is in preset time Confirmation instruction of the user based on bolt down procedure prompt input is not received by section, terminal is repeatedly exported bolt down procedure Prompt, until user confirm/cancel or until prompt number is automatically closed more than preset times.
Step S26 closes the destination application and executes if there are tasks in execution for the destination application In task.
Terminal determines application program there are backstage execution task, and terminal output closes briefing, receives use in terminal When the confirmation instruction that family is inputted based on the closing briefing, the backstage that terminal closes application program executes task, keeps application Program is in running background, for example, xxx video program, closes backstage caching task, but the operating status of xxx video program is also In background state;It receives user in terminal to have selected to cancel based on the closing briefing, then terminal does not adjust the application Program;In addition, terminal be not received by within a preset period of time the confirmation instruction that user is inputted based on the closing briefing or When cancelling instruction, terminal, which repeatedly exports, closes briefing, until user confirm/cancel or until prompt number is super Preset times are crossed to be automatically closed.
Terminal is adjusted the application program of background state in the present embodiment, effectively prevents the long-time of application program Running background, caused by terminal battery electricity quantity consumption, effectively extend end cell cruise duration.
Further, propose the application application control method on the basis of the above embodiments the 5th implements Example.
The present embodiment be in first embodiment before step S10 the step of, the application program in the 5th embodiment of the application Control method, comprising:
Step S40 obtains the information about power of terminal, wherein the information about power includes remaining capacity or preset duration Power consumption.
Terminal obtains information about power, and information about power includes remaining capacity or (past second is default for the second preset duration in the past Duration refers to pre-set unit time, and past preset duration can be according to concrete scene flexible setting, for example, default in the past Duration is set as 10 minutes using current time as node, before current time) in power consumption rate, be less than in remaining capacity pre- If electricity (default electricity is arranged as the case may be, for example, default electricity is set as the 70% of terminal total electricity) or power consumption speed Rate is greater than default power consumption rate, and (default power consumption rate refers to pre-set power consumption rate, and presetting power consumption rate can be according to tool Body scene flexible setting, for example, default power consumption rate is set as the 1% of every 10 minutes consumption battery total amounts) when, terminal executes the Step S10 in one embodiment obtains the operating status of destination application and the step of the operational parameter value under the operating status Suddenly.
The higher condition of power consumption rate for only meeting terminal residual not enough power supply or terminal in the present embodiment, just can be right End objectives application program is controlled, and is avoided the occurrence of by too late phenomenon, when effectively taking into account extension end cell continuation of the journey Between and user demand.
In addition, the embodiment of the present application also proposes a kind of application program controlling device, the application program controlling referring to Fig. 3 Device, comprising:
State parameter obtains module 10, under the operating status and the operating status for obtaining destination application Operational parameter value;
Threshold query module 20 obtains described in the destination application for inquiring preset state and threshold map table The corresponding targets threshold of operating status;
Detection adjustment module 30, for when detecting that the operational parameter value reaches the targets threshold, described in adjustment Destination application.
In one embodiment, the detection adjusts module 30, comprising:
First judging submodule, for when detecting that the operational parameter value reaches the targets threshold, if the fortune Whether row state is foreground state, then judge to pass by receive in the first preset duration to refer to the operation of the destination application It enables;
The first adjustment submodule, if for being not received by the first preset duration in the past to the destination application The destination application is then switched to background state by foreground state by operational order.
In one embodiment, the detection adjusts module 30, comprising:
Acquisition submodule is detected, for when detecting that the destination application switches to background state, described in acquisition The corresponding operational parameter value of background state;
Threshold query submodule obtains the destination application for inquiring the preset state and threshold map table The corresponding targets threshold of the background state;
Submodule is closed in detection, for detecting the corresponding mesh of the operational parameter value arrival background state When marking threshold value, the destination application is closed.
In one embodiment, the first adjustment submodule includes:
Output unit is prompted, if for being not received by the behaviour to the destination application in the first preset duration in the past It instructs, then output state switch prompting information;
Switch unit is received, for receiving the status switching instruction based on the state switch prompting information input, is executed The destination application is switched to background state by foreground state by the status switching instruction.
In one embodiment, the detection adjusts module 30, comprising:
Second adjustment submodule, if for receiving in first preset duration of past to the destination application Operational order, then the volume for reducing the destination application, the display brightness for reducing the destination application, turn down it is described The resolution ratio of destination application and/or the contrast for reducing the destination application.
In one embodiment, the detection adjusts module 30, comprising:
Second judgment submodule, for when detecting that the operational parameter value reaches the targets threshold, if the fortune Row state is background state, then judges the destination application with the presence or absence of task in execution;
Stop submodule closes the mesh if task in execution is not present for the destination application Mark application program.
In one embodiment, the detection adjusts module 30, comprising:
Task closes submodule and closes the target if there are tasks in execution for the destination application Application program task in execution.
The specific embodiment of the application application program controlling device and each embodiment of above-mentioned application control method are basic Identical, therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the application.
The above is only preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all to utilize this Shen Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills Art field similarly includes in the scope of patent protection of the application.

Claims (20)

1. a kind of application control method, which is characterized in that the application control method the following steps are included:
Obtain the operational parameter value under the operating status and the operating status of destination application;
Preset state and threshold map table are inquired, the corresponding targets threshold of operating status described in the destination application is obtained;
When detecting that the operational parameter value reaches the targets threshold, the destination application is adjusted.
2. application control method as described in claim 1, which is characterized in that described to detect the operational parameter value When reaching the targets threshold, the step of adjusting the destination application, comprising:
When detecting that the operational parameter value reaches the targets threshold, if the operating status is foreground state, judge Whether operational order to the destination application is received in the first preset duration of past;
If being not received by the operational order to the destination application in the first preset duration of past, the target is answered Background state is switched to by foreground state with program.
3. application control method as claimed in claim 2, which is characterized in that if not having in first preset duration in the past There is the operational order received to the destination application, then the destination application is switched into backstage by foreground state After the step of state, comprising:
When detecting that the destination application switches to background state, the corresponding operating parameter of the background state is obtained Value;
The preset state and threshold map table are inquired, the corresponding target threshold of background state described in the destination application is obtained Value;
When detecting that the operational parameter value reaches the corresponding targets threshold of the background state, closes the target and answer Use program.
4. application control method as claimed in claim 2, which is characterized in that if not having in first preset duration in the past There is the operational order received to the destination application, then the destination application is switched into backstage by foreground state The step of state, comprising:
If being not received by the operational order to the destination application in the first preset duration of past, output state switching Prompt information;
The status switching instruction based on the state switch prompting information input is received, the status switching instruction is executed, by institute It states destination application and background state is switched to by foreground state.
5. application control method as claimed in claim 2, which is characterized in that described to detect the operational parameter value When reaching the targets threshold, if the operating status is foreground state, judge whether receive in the first preset duration in the past After the step of to operational order to the destination application, comprising:
If receiving the operational order to the destination application in first preset duration of past, the target is reduced The volume of application program, the display brightness for reducing the destination application, the resolution ratio for turning down the destination application and/ Or reduce the contrast of the destination application.
6. application control method as described in claim 1, which is characterized in that described to detect the operational parameter value When reaching the targets threshold, the step of adjusting the destination application, comprising:
When detecting that the operational parameter value reaches the targets threshold, if the operating status is background state, judge The destination application whether there is task in execution;
If task in execution is not present in the destination application, the destination application is closed.
7. application control method as claimed in claim 6, which is characterized in that described to detect the operational parameter value When reaching the targets threshold, if the operating status is background state, judges that the destination application whether there is and hold After the step of task in row, comprising:
If there are tasks in execution for the destination application, destination application task in execution is closed.
8. application control method as described in claim 1, which is characterized in that the operation for obtaining destination application The step of operational parameter value under state and the operating status, comprising:
The operating status for obtaining destination application, judges whether the operating right with the destination application;
If the operating right with the destination application, obtains the destination application under the operating status Operational parameter value.
9. application control method as described in claim 1, which is characterized in that the operation for obtaining destination application Before the step of operational parameter value under state and the operating status, comprising:
Obtain remaining capacity;
If the remaining capacity is less than default electricity, the operating status and the fortune for obtaining destination application is executed The step of operational parameter value under row state.
10. application control method as described in claim 1, which is characterized in that the fortune for obtaining destination application Before the step of operational parameter value under row state and the operating status, comprising:
Obtain the power consumption rate in the second preset duration in the past;
If the power consumption rate is greater than default power consumption rate, the operating status for obtaining destination application and institute are executed The step of stating the operational parameter value under operating status.
11. the application control method as described in claims 1 to 10 any one, which is characterized in that described to detect When the operational parameter value reaches the targets threshold, after the step of adjusting the operating status of the application program, packet It includes:
If the destination application that adjustment is completed is in close state, the destination application starting is being detected When, update the operational parameter value of the destination application;
If the destination application that adjustment is completed is not on closed state, the operation of the destination application is updated State.
12. a kind of application program controlling device, which is characterized in that the application program controlling device includes:
State parameter obtains module, the operation ginseng under the operating status and the operating status for obtaining destination application Numerical value;
Threshold query module obtains for inquiring preset state and threshold map table and runs shape described in the destination application The corresponding targets threshold of state;
Detection adjustment module, for adjusting the target and answering when detecting that the operational parameter value reaches the targets threshold Use program.
13. application program controlling device as claimed in claim 12, which is characterized in that the detection adjusts module, comprising:
First judging submodule, for when detecting that the operational parameter value reaches the targets threshold, if the operation shape State is foreground state, then judges the operational order to the destination application whether is received in the first preset duration in the past;
The first adjustment submodule, if for being not received by the operation to the destination application in the first preset duration in the past Instruction, then switch to background state by foreground state for the destination application.
14. application program controlling device as claimed in claim 13, which is characterized in that the detection adjusts module, comprising:
Acquisition submodule is detected, for obtaining the backstage when detecting that the destination application switches to background state The corresponding operational parameter value of state;
Threshold query submodule obtains described in the destination application for inquiring the preset state and threshold map table The corresponding targets threshold of background state;
Submodule is closed in detection, for detecting the corresponding target threshold of the operational parameter value arrival background state When value, the destination application is closed.
15. application program controlling device as claimed in claim 13, which is characterized in that the first adjustment submodule includes:
Output unit is prompted, if referring to for being not received by the first preset duration in the past to the operation of the destination application It enables, then output state switch prompting information;
Switch unit is received, for receiving the status switching instruction based on the state switch prompting information input, described in execution The destination application is switched to background state by foreground state by status switching instruction.
16. application program controlling device as claimed in claim 13, which is characterized in that the detection adjusts module, comprising:
Second adjustment submodule, if for receiving the operation to the destination application in first preset duration of past Instruction, the then volume for reducing the destination application, turn down the target at the display brightness for reducing the destination application The resolution ratio of application program and/or the contrast for reducing the destination application.
17. application program controlling device as claimed in claim 12, which is characterized in that the detection adjusts module and includes:
Second judgment submodule, for when detecting that the operational parameter value reaches the targets threshold, if the operation shape State is background state, then judges the destination application with the presence or absence of task in execution;
Stop submodule is closed the target and is answered if task in execution is not present for the destination application Use program.
18. application program controlling device as claimed in claim 17, which is characterized in that the detection adjusts module and includes:
Task closes submodule and closes the target application if there are tasks in execution for the destination application Program task in execution.
19. a kind of terminal, which is characterized in that the terminal includes: memory, processor and is stored on the memory and can The computer program run on the processor, in which:
The application program as described in any one of claims 1 to 11 is realized when the computer program is executed by the processor The step of control method.
20. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the application program control as described in any one of claims 1 to 11 when the computer program is executed by processor The step of method processed.
CN201910448906.2A 2019-05-27 2019-05-27 Application program control method, device, terminal and computer readable storage medium Active CN110187753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910448906.2A CN110187753B (en) 2019-05-27 2019-05-27 Application program control method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910448906.2A CN110187753B (en) 2019-05-27 2019-05-27 Application program control method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110187753A true CN110187753A (en) 2019-08-30
CN110187753B CN110187753B (en) 2021-09-07

Family

ID=67718067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910448906.2A Active CN110187753B (en) 2019-05-27 2019-05-27 Application program control method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110187753B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647366A (en) * 2019-09-19 2020-01-03 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing card pause
CN110659136A (en) * 2019-09-19 2020-01-07 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for limiting frame rate
CN110708747A (en) * 2019-09-18 2020-01-17 Tcl移动通信科技(宁波)有限公司 Data transmission rate adjusting method, system, storage medium and mobile terminal
CN110891304A (en) * 2019-11-29 2020-03-17 Tcl移动通信科技(宁波)有限公司 Gps power consumption control method for mobile terminal
CN111867024A (en) * 2020-06-28 2020-10-30 维沃移动通信有限公司 Electronic equipment control method and device and electronic equipment
CN112035249A (en) * 2020-08-24 2020-12-04 Tcl海外电子(惠州)有限公司 Application program network proportion adjusting method and device and storage medium
CN112131001A (en) * 2020-09-23 2020-12-25 山石网科通信技术股份有限公司 Sandbox-based resource processing method and device, storage medium and processor
CN112799495A (en) * 2021-01-21 2021-05-14 惠州Tcl移动通信有限公司 Power consumption mode setting method, terminal device and computer readable storage medium
CN115453895A (en) * 2022-08-17 2022-12-09 青岛海尔科技有限公司 Terminal control method, terminal control device, storage medium and electronic device
WO2023109438A1 (en) * 2021-12-15 2023-06-22 中兴通讯股份有限公司 Communication transmission control method and apparatus, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412636A (en) * 2013-08-05 2013-11-27 Tcl通讯(宁波)有限公司 Power saving system and power saving method of intelligent terminal
CN104239195A (en) * 2014-09-17 2014-12-24 可牛网络技术(北京)有限公司 Method for processing power consumption of electronic equipment, and electronic equipment
CN105676987A (en) * 2014-11-19 2016-06-15 中兴通讯股份有限公司 Method for shutting down background application of mobile terminal, device and mobile terminal
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN106774806A (en) * 2016-12-18 2017-05-31 滁州昭阳电信通讯设备科技有限公司 The method and mobile terminal of a kind of power saving
CN107329559A (en) * 2017-06-30 2017-11-07 宇龙计算机通信科技(深圳)有限公司 A kind of application control method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412636A (en) * 2013-08-05 2013-11-27 Tcl通讯(宁波)有限公司 Power saving system and power saving method of intelligent terminal
CN104239195A (en) * 2014-09-17 2014-12-24 可牛网络技术(北京)有限公司 Method for processing power consumption of electronic equipment, and electronic equipment
CN105676987A (en) * 2014-11-19 2016-06-15 中兴通讯股份有限公司 Method for shutting down background application of mobile terminal, device and mobile terminal
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN106774806A (en) * 2016-12-18 2017-05-31 滁州昭阳电信通讯设备科技有限公司 The method and mobile terminal of a kind of power saving
CN107329559A (en) * 2017-06-30 2017-11-07 宇龙计算机通信科技(深圳)有限公司 A kind of application control method, device, terminal and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708747A (en) * 2019-09-18 2020-01-17 Tcl移动通信科技(宁波)有限公司 Data transmission rate adjusting method, system, storage medium and mobile terminal
CN110659136A (en) * 2019-09-19 2020-01-07 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for limiting frame rate
CN110647366A (en) * 2019-09-19 2020-01-03 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing card pause
CN110647366B (en) * 2019-09-19 2023-08-22 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing blocking
CN110659136B (en) * 2019-09-19 2022-07-15 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for limiting frame rate
CN110891304A (en) * 2019-11-29 2020-03-17 Tcl移动通信科技(宁波)有限公司 Gps power consumption control method for mobile terminal
CN111867024A (en) * 2020-06-28 2020-10-30 维沃移动通信有限公司 Electronic equipment control method and device and electronic equipment
CN112035249B (en) * 2020-08-24 2023-06-13 茂佳科技(广东)有限公司 Application program network duty ratio adjusting method, device and storage medium
CN112035249A (en) * 2020-08-24 2020-12-04 Tcl海外电子(惠州)有限公司 Application program network proportion adjusting method and device and storage medium
CN112131001A (en) * 2020-09-23 2020-12-25 山石网科通信技术股份有限公司 Sandbox-based resource processing method and device, storage medium and processor
CN112131001B (en) * 2020-09-23 2022-10-18 山石网科通信技术股份有限公司 Sandbox-based resource processing method and device, storage medium and processor
CN112799495A (en) * 2021-01-21 2021-05-14 惠州Tcl移动通信有限公司 Power consumption mode setting method, terminal device and computer readable storage medium
WO2023109438A1 (en) * 2021-12-15 2023-06-22 中兴通讯股份有限公司 Communication transmission control method and apparatus, electronic device and storage medium
CN115453895A (en) * 2022-08-17 2022-12-09 青岛海尔科技有限公司 Terminal control method, terminal control device, storage medium and electronic device

Also Published As

Publication number Publication date
CN110187753B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN110187753A (en) Application control method, device, terminal and computer readable storage medium
CN104298336B (en) Mobile terminal and control method and device of application program of mobile terminal
CN107944277B (en) Application starting control method and device, storage medium and intelligent terminal
CN107197103B (en) Power-saving operation control method and device for intelligent terminal
CN106299516B (en) Intelligent device and charging method thereof
CN111343682B (en) Network switching method, device, storage medium and terminal
CN106131337A (en) A kind of method and device out of service based on User Status control application
CN110351431B (en) Sleep mode setting method, user terminal and computer readable storage medium
CN104780269A (en) Method and device for regulating performance of mobile terminal based on electric quantity
CN106413053B (en) A kind of mobile terminal and its electricity saving method
CN104391554A (en) Method for adjusting terminal temperature
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN107148072A (en) The acquisition methods and system of a kind of target resource parameter of intelligent terminal application
CN112261225A (en) Volume adjusting method and device, electronic equipment and storage medium
CN103002163A (en) Mobile terminal background program control method and mobile terminal
CN107272873B (en) Application control method and device of intelligent equipment
CN107729062A (en) Using freezing method and related product
CN108121435A (en) Electricity saving of mobile terminal operation method, device and computer readable storage medium
CN104486511A (en) Method, terminal and system for controlling electricity quantity
CN107894917A (en) Terminal and its method for closing background application, storage device
CN114828180B (en) Control method and device of sensor
CN110312044A (en) Control method, mobile terminal and the storage medium of mobile terminal WIFI module
KR100442942B1 (en) Method for saving battery reduce capacity by controlling power supply in call mode of image mobile phone
CN107589886A (en) The display control method and device of a kind of icon, terminal and readable storage medium storing program for executing
CN104156057A (en) Control method and device of mobile device and mobile device

Legal Events

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