CN107908273B - Application management method and device, storage medium and electronic equipment - Google Patents

Application management method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107908273B
CN107908273B CN201711124586.2A CN201711124586A CN107908273B CN 107908273 B CN107908273 B CN 107908273B CN 201711124586 A CN201711124586 A CN 201711124586A CN 107908273 B CN107908273 B CN 107908273B
Authority
CN
China
Prior art keywords
application
closing instruction
preset
period
periods
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
CN201711124586.2A
Other languages
Chinese (zh)
Other versions
CN107908273A (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 CN201711124586.2A priority Critical patent/CN107908273B/en
Publication of CN107908273A publication Critical patent/CN107908273A/en
Application granted granted Critical
Publication of CN107908273B publication Critical patent/CN107908273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • 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

Abstract

The application discloses an application management method, an application management device, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring an operation interval period of an application in a preset time period, wherein the operation interval period is an interval period in which the application is turned on again after being turned off; comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result; monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application; and if the closing instruction is monitored, determining whether to respond to the closing instruction according to the comparison result. According to the embodiment of the application, the closing action of the system to the application can be managed more intelligently, and further the power consumption of the electronic equipment is reduced.

Description

Application management method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an application management method, an application management apparatus, a storage medium, and an electronic device.
Background
With the development of intelligent devices, more and more applications are running on the intelligent devices, so that the application range of the intelligent devices is wider and wider.
In the application running process, if a user needs to switch from one application to another application, the application running in the foreground in advance can be switched and run to the system background, and when the user needs to use the application, the application is called from the background to the foreground and used. While the application runs in the background, many applications still perform some operations in the background, such as data exchange with a server.
Therefore, when the number of applications running in the background of the system increases, the number of operations executed by the background applications also increases, and the power consumption of the electronic device is greatly increased.
Disclosure of Invention
The embodiment of the application management method and device, the storage medium and the electronic equipment can reduce the power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides an application management method applied to an electronic device, including:
acquiring an operation interval period of an application in a preset time period, wherein the operation interval period is an interval period in which the application is turned on again after being turned off;
comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result;
monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application;
and if the closing instruction is monitored, determining whether to respond to the closing instruction according to the comparison result.
In a second aspect, an application management apparatus further provided in an embodiment of the present application includes:
the device comprises a duration acquisition module, a time delay module and a time delay module, wherein the duration acquisition module is used for acquiring an operation interval period of an application in a preset time period, and the operation interval period is an interval period in which the application is turned on again after being turned off;
the comparison module is used for comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result;
the monitoring module is used for monitoring a closing instruction, and the closing instruction is used for indicating that the application is closed; and
and the response determining module is used for determining whether to respond to the closing instruction according to the comparison result if the closing instruction is monitored.
In a third aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to, when executed on a computer, cause the computer to execute the application management method described above.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor is configured to execute the application management method as described above by loading the instructions in the memory.
According to the application management method provided by the embodiment of the application management method, the operation interval period in which the application is closed and then opened again is obtained within the preset time period, and whether the application is closed or not is judged when the closing instruction is obtained based on the operation interval period. According to the embodiment of the application, the closing action of the system to the application can be managed more intelligently, and further the power consumption of the electronic equipment is reduced.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of an implementation of an application management method according to an embodiment of the present application.
Fig. 2 is an application scenario diagram of an application management method according to an embodiment of the present application.
Fig. 3 is a flowchart of another implementation of the application management method according to the embodiment of the present application.
Fig. 4 is a flowchart of an implementation of determining whether to respond to a close command according to an embodiment of the present application.
Fig. 5 is an application scenario diagram for determining whether to respond to a close command according to an embodiment of the present application.
Fig. 6 is a flowchart of still another implementation of the application management method according to the embodiment of the present application.
Fig. 7 is a schematic structural diagram of an application management apparatus according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an application management apparatus according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be a software object that executes on the computing system. The different components, modules, engines, and services described herein may be implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices in the embodiments of the present application may include a mobile phone (or "cellular" phone, such as a smart phone) or a computer with a wireless communication module, such as a tablet computer, and may also be portable, pocket, hand-held vehicle-mounted computers that exchange language and/or data with a wireless access network. For example, the devices include Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and the like, but are not limited thereto.
When the method is applied to the electronic device, wherein the application management method may run in an operating system of the electronic device, and may include but is not limited to a Windows operating system, a Mac OS operating system, an Android operating system, an IOS operating system, a Symbian operating system, a Windows Phone operating system, and the like, which is not limited in the embodiment of the present application.
Referring to fig. 1, an implementation flow of an application management method in an embodiment of the present application is shown, and for convenience of description, only a part related to the content of the present application is shown in the figure.
The Application described in the embodiments of the present Application refers to a computer Application (Application) that performs one or more specific tasks, operates in a user mode, can interact with a user, and has a visual user interface.
Referring to fig. 1, the implementation steps of the application management method provided by the embodiment of the present application are shown in the figure, and the implementation steps include the following steps:
101. acquiring the running interval period of the application in the preset time period.
The preset time period may be a time period set manually, for example, a time period of 1 day, 1 week, or 1 month, and the specific value of the preset time period may be determined according to actual conditions. The running interval period is the interval period between the two actions of turning on again after the application is turned off.
Referring to fig. 2, in some embodiments, first, after the system is automatically triggered to close an application, the time point at this time is recorded as a closing time point. The reason for the automatic triggering may be an artificially preset event, for example, the screen is turned off for a preset duration, and the memory occupancy reaches a preset value. Then, when the application is turned on again by a user or the system after being turned off by the system, the time point at the moment is recorded as a starting time point as a second time point. The operation interval period is an interval period between the first time point and the second time point.
102. And comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result.
The reference time period may be a time period set by a person, for example, a time period of 10 minutes, 30 minutes, or 1 hour, and a specific value of the reference time period may be determined according to an actual situation. The comparison result may be that the operation interval period is greater than, equal to, or less than the reference duration, and when the operation interval period is greater than, equal to, or less than the reference duration, the system may react differently according to different comparison results.
For example, when the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison indicates that 10 minutes >5 minutes, and the system may execute the instruction corresponding to the operation interval period greater than the reference time period.
When the system automatically triggers the application to be closed in order to reduce the power consumption of the electronic device, some applications with high use frequency may be closed sometimes. Thus, the problem of reducing the power consumption of the electronic device can be achieved, but the normal use of these applications by the user can be affected. By comparing the operation interval period with the reference time length, the use frequency condition of the application can be determined, and the comparison result is used as a reference basis for judging whether the system closes the application.
103. And monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application.
The closing instruction is used for indicating that the application is closed, and when the system is automatically triggered to close one application, the closing instruction for closing the application is sent to the system at the moment.
In some embodiments, whether to perform a shutdown operation for an application may be determined by listening for a shutdown instruction for the application. For example, when an application is running in the background, the application may then initiate a listening operation for the close instruction. If the display screen of the electronic equipment is turned off and an application is not in the screen-off keep-alive list of the electronic equipment, the electronic equipment triggers generation and sends a closing instruction of the application to the system. After the application monitors the closing instruction, the application triggers the closing operation of the application. If the application does not monitor the closing instruction, the application is in a running state all the time, and the application does not respond until the closing instruction is monitored.
104. And if the closing instruction is monitored, determining whether to respond to the closing instruction according to a comparison result.
Whether the closing instruction is responded is determined according to the comparison result, and it can be understood that when the comparison result meets a certain preset condition, a response corresponding to the preset condition is executed on the application.
In some embodiments, when the system monitors a close command for an application, the system checks the comparison result in step 102, matches the comparison result with a preset condition, and executes an operation corresponding to the preset condition according to the comparison result when the preset condition is matched with the comparison result.
For example, if the preset condition a is set to turn off the application when the operation interval period is longer than the reference period. If the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison shows that 10 minutes is more than 5 minutes, and at this time, the system determines that the comparison result matches the preset condition a, and executes the operation in the condition, that is, performs the closing operation on the application.
Therefore, in the embodiment in fig. 1, the operation interval period during which the application is turned on again after being turned off is obtained within the preset time period, and based on the operation interval period, it is determined whether to turn off the application when the turn-off instruction is obtained. According to the embodiment of the application, the closing action of the system to the application can be managed more intelligently, and further the power consumption of the electronic equipment is reduced.
Referring to fig. 3, another implementation step of the application management method provided by the embodiment of the present application is shown, and for convenience of explanation, only the content related to the present application is shown in the figure.
As shown in fig. 3, an application management method includes the following steps:
201. acquiring the running interval period of the application in the preset time period.
The preset time period may be a time period set manually, for example, a time period of 1 day, 1 week, or 1 month, and the specific value of the preset time period may be determined according to actual conditions. The running interval period is the interval period between the two actions of turning on again after the application is turned off.
Referring to fig. 2, in some embodiments, first, after the system is automatically triggered to close an application, the time point at this time is recorded as a closing time point. The reason for the automatic triggering may be an artificially preset event, for example, the screen is turned off for a preset duration, and the memory occupancy reaches a preset value. Then, when the application is turned on again by a user or the system after being turned off by the system, the time point at the moment is recorded as a starting time point as a second time point. The operation interval period is an interval period between the first time point and the second time point.
202. And when the duration of the operation interval period is less than or equal to the reference duration, determining the operation interval period as a target interval period.
The reference time period may be a time period set by a person, for example, a time period of 10 minutes, 30 minutes, or 1 hour, and a specific value of the reference time period may be determined according to an actual situation.
When the system automatically triggers the application to be closed in order to reduce the power consumption of the electronic device, some applications with high use frequency may be closed sometimes. Thus, the problem of reducing the power consumption of the electronic device can be achieved, but the normal use of these applications by the user can be affected.
In some embodiments, to determine the frequency of use of an application, a reference time period may be set, and the interval period may be compared with the reference time period. In the comparison process, an application having an operation interval period less than or equal to the reference time period may be used as an application having a higher frequency of use, and the operation interval period less than or equal to the reference time period may be used as the target interval period.
For example, when the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison indicates that 10 minutes >5 minutes, and the system may use the operation interval period as the target interval period.
203. And counting the number of the target interval periods in the preset time period.
The number of the target interval periods in the preset time period is counted, so that the use condition of the application can be better known, and the system can judge whether the application is closed more accurately.
For example, if the preset time period is 1 day, the number of target interval periods in 1 day is counted.
204. And monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application.
The closing instruction is used for indicating that the application is closed, and when the system is automatically triggered to close one application, the closing instruction for closing the application is sent to the system at the moment.
In some embodiments, whether to perform a shutdown operation for an application may be determined by listening for a shutdown instruction for the application. For example, when an application is running in the background, the application may then initiate a listening operation for the close instruction. If the display screen of the electronic equipment is turned off and an application is not in the screen-off keep-alive list of the electronic equipment, the electronic equipment triggers generation and sends a closing instruction of the application to the system. After the application monitors the closing instruction, the application triggers the closing operation of the application. If the application does not monitor the closing instruction, the application is in a running state all the time, and the application does not respond until the closing instruction is monitored.
205. And if the closing instruction is monitored, determining whether to respond to the closing instruction according to the number of the target interval time periods.
In some embodiments, determining whether to respond to the closing instruction according to the number of the target interval periods may be performed by setting a preset number for comparing with the number of the target interval periods to measure the frequency of use of the application, and specifically, the method may include the following steps:
when the number of the target interval periods is greater than or equal to the preset number, not responding to the closing instruction;
and responding to the closing instruction when the number of the target interval periods is less than the preset number.
The preset number can be an artificial preset number value, and the specific number value can be determined according to the actual situation. For example, if the preset time period is 1 day, the preset number is 5, and the result of counting the number of target intervals in 1 day is 6, it may be determined that the number of target intervals is greater than the preset number, and the system does not respond to the shutdown command.
By comparing the number of target interval periods within a preset time period with the preset number value, the use frequency of the application can be better determined.
Therefore, in fig. 3, by determining the number of the target interval periods and taking the number of the target interval periods as a basis for determining whether to close the application, the system can determine whether to close the application according to the frequency of use of the application, and on the premise that the power consumption of the electronic device can be reduced, the influence on the normal use of the applications by the user due to the fact that the application with the higher frequency of use is closed is avoided.
Referring to fig. 4, implementation steps for determining whether to respond to a close command provided by the embodiment of the present application are shown, and for convenience of explanation, only contents related to the present application are shown in the figure.
As shown in fig. 4, in some embodiments, the determining whether to respond to the close command according to the number of the target interval periods in fig. 3 may include the following steps:
301. acquiring the total number of operation interval periods in a preset time period.
302. Determining a ratio of the number of target interval periods to the total number of operating interval periods, based on the total number of operating interval periods.
For example, if the preset time period is 1 day, the number of the target interval periods acquired in 1 day is 5, and the total number of the operation interval periods is 8, the ratio of the number of the target interval periods to the total number of the operation interval periods is 5/8 or 62.5%.
303. And when the ratio is greater than or equal to the preset ratio, not responding to the closing instruction.
The preset ratio is a value set manually, for example, 50%, and when the ratio is greater than or equal to the preset ratio, the closing instruction is not responded. The application with the ratio of the target interval period being greater than or equal to the preset ratio can be determined to belong to the application with the higher use frequency, so that the application with the higher use frequency can be kept alive, and the normal use of the user is ensured.
304. And responding to the closing instruction when the ratio is smaller than the preset ratio.
And when the ratio is smaller than the preset ratio, responding to a closing instruction. The application with the ratio of the target interval period smaller than the preset ratio can be determined to belong to the application with the lower use frequency, so that the application with the lower use frequency can be closed to reduce the power consumption of the electronic device.
As shown in fig. 5, the application scenario includes three applications, namely, application a, application B, and application C. Wherein the ratios of the number of target interval periods to the total number of operation interval periods in the three applications are 60%, 35%, and 80%, respectively. When the ratio is determined, the preset ratio is obtained to be 50%, and the ratios of the three applications are compared with 50% respectively. At this time, it can be seen that the ratio of the application a to the application C is greater than 50%, and the ratio of the application B is less than 50%, the system does not respond to the closing instruction for the application a and the application C, and responds to the closing instruction for the application B to close the application B.
Therefore, in the embodiment in fig. 4, the ratio of the number of the target interval periods to the total number of the operation interval periods is obtained, and the ratio is compared with the preset ratio, so that the use frequency of the application can be better determined, and whether the system responds to the closing instruction and then the application is closed can be judged more intelligently and accurately.
Referring to fig. 6, a further implementation step of the application management method provided by the embodiment of the present application is shown, and for convenience of description, only the content related to the present application is shown in the figure.
The application management method in fig. 6 includes the following steps:
401. acquiring the running interval period of the application in the preset time period.
402. And comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result.
403. And monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application.
404. And if the closing instruction is monitored, determining whether to respond to the closing instruction according to a comparison result.
For avoiding redundancy, the above description of the specific embodiments of the steps can be referred to in fig. 1 to 5. The difference from the above embodiment is that the method further comprises the following steps:
405. and when the closing instruction is determined not to be responded according to the comparison result, the closing instruction is not responded within the preset time.
The preset time is a value set manually, and can be 1 hour, 1 day and the like, and the specific value can be set according to the actual situation.
For example, if the preset time duration is set to 1 day, the closing instruction is not responded again within 1 day after determining not to respond to the closing instruction according to the comparison result.
In some embodiments, after determining not to respond to the closing instruction according to a comparison result obtained by comparing the time length of the operation interval period with a preset reference time length, it may be determined that the application belongs to an application with a high frequency of use.
Therefore, the closing instruction is not responded within the preset time length, the operation interval time period within the preset time period can be avoided being obtained for multiple times, the judgment step is repeatedly executed on whether the closing instruction is executed or not by utilizing the operation interval time period, and the power consumption of the electronic equipment can be further reduced.
Referring to fig. 7, a structure of an application management apparatus provided in the embodiment of the present application is shown in the drawing, and the application management apparatus includes a duration obtaining module, a comparing module, a monitoring module, and a response determining module, where:
a duration obtaining module 501, configured to obtain an operation interval period of an application within a preset time period.
The preset time period may be a time period set manually, for example, a time period of 1 day, 1 week, or 1 month, and the specific value of the preset time period may be determined according to actual conditions. The running interval period is the interval period between the two actions of turning on again after the application is turned off.
Referring to fig. 2, in some embodiments, first, after the system is automatically triggered to close an application, the time point at this time is recorded as a closing time point. The reason for the automatic triggering may be an artificially preset event, for example, the screen is turned off for a preset duration, and the memory occupancy reaches a preset value. Then, when the application is turned on again by a user or the system after being turned off by the system, the time point at the moment is recorded as a starting time point as a second time point. The operation interval period is an interval period between the first time point and the second time point.
A comparison module 502, configured to compare the duration of the operation interval period with a preset reference duration, so as to obtain a comparison result.
The reference time period may be a time period set by a person, for example, a time period of 10 minutes, 30 minutes, or 1 hour, and a specific value of the reference time period may be determined according to an actual situation. The comparison result may be that the operation interval period is greater than, equal to, or less than the reference duration, and when the operation interval period is greater than, equal to, or less than the reference duration, the system may react differently according to different comparison results.
For example, when the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison indicates that 10 minutes >5 minutes, and the system may execute the instruction corresponding to the operation interval period greater than the reference time period.
When the system automatically triggers the application to be closed in order to reduce the power consumption of the electronic device, some applications with high use frequency may be closed sometimes. Thus, the problem of reducing the power consumption of the electronic device can be achieved, but the normal use of these applications by the user can be affected. By comparing the operation interval period with the reference time length, the use frequency condition of the application can be determined, and the comparison result is used as a reference basis for judging whether the system closes the application.
The monitoring module 503 is configured to monitor a closing instruction, where the closing instruction is used to instruct to close the application.
The closing instruction is used for indicating that the application is closed, and when the system is automatically triggered to close one application, the closing instruction for closing the application is sent to the system at the moment.
In some embodiments, whether to perform a shutdown operation for an application may be determined by listening for a shutdown instruction for the application. For example, when an application is running in the background, the application may then initiate a listening operation for the close instruction. If the display screen of the electronic equipment is turned off and an application is not in the screen-off keep-alive list of the electronic equipment, the electronic equipment triggers generation and sends a closing instruction of the application to the system. After the application monitors the closing instruction, the application triggers the closing operation of the application. If the application does not monitor the closing instruction, the application is in a running state all the time, and the application does not respond until the closing instruction is monitored.
A response determining module 504, configured to determine whether to respond to the closing instruction according to the comparison result if the closing instruction is monitored.
Whether the closing instruction is responded is determined according to the comparison result, and it can be understood that when the comparison result meets a certain preset condition, a response corresponding to the preset condition is executed on the application.
In some embodiments, when the system monitors a close command for an application, the system checks the comparison result in step 102, matches the comparison result with a preset condition, and executes an operation corresponding to the preset condition according to the comparison result when the preset condition is matched with the comparison result.
For example, if the preset condition a is set to turn off the application when the operation interval period is longer than the reference period. If the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison shows that 10 minutes is more than 5 minutes, and at this time, the system determines that the comparison result matches the preset condition a, and executes the operation in the condition, that is, performs the closing operation on the application.
Therefore, in this embodiment, the operation interval period during which the application is turned on again after being turned off is acquired within the preset time period, and whether to turn off the application is determined when the turn-off instruction is acquired based on the operation interval period. According to the embodiment of the application, the closing action of the system to the application can be managed more intelligently, and further the power consumption of the electronic equipment is reduced.
In some embodiments, the response determining module 504 is further configured to not respond to the closing instruction within a preset time period after determining not to respond to the closing instruction according to the comparison result.
The preset time is a value set manually, and can be 1 hour, 1 day and the like, and the specific value can be set according to the actual situation.
For example, if the preset time duration is set to 1 day, the closing instruction is not responded again within 1 day after determining not to respond to the closing instruction according to the comparison result.
In some embodiments, after determining not to respond to the closing instruction according to a comparison result obtained by comparing the time length of the operation interval period with a preset reference time length, it may be determined that the application belongs to an application with a high frequency of use.
The embodiment does not respond to the closing instruction within the preset time length, can avoid the situation that the operation interval time period within the preset time period is obtained for multiple times, and the judgment step is repeatedly executed to judge whether the closing instruction is executed or not by utilizing the operation interval time period, and can further reduce the power consumption of the electronic equipment.
Referring to fig. 8, another structure of the application management apparatus according to the embodiment of the present application is shown, and for convenience of description, only the content related to the present application is shown in the drawing.
As shown in fig. 8, an application management apparatus includes a duration obtaining module 501, a comparing module 502, a monitoring module 503, and a response determining module 504, where:
a duration obtaining module 501, configured to obtain an operation interval period of an application within a preset time period.
The preset time period may be a time period set manually, for example, a time period of 1 day, 1 week, or 1 month, and the specific value of the preset time period may be determined according to actual conditions. The running interval period is the interval period between the two actions of turning on again after the application is turned off.
Referring to fig. 2, in some embodiments, first, after the system is automatically triggered to close an application, the time point at this time is recorded as a closing time point. The reason for the automatic triggering may be an artificially preset event, for example, the screen is turned off for a preset duration, and the memory occupancy reaches a preset value. Then, when the application is turned on again by a user or the system after being turned off by the system, the time point at the moment is recorded as a starting time point as a second time point. The operation interval period is an interval period between the first time point and the second time point.
A comparison module 502, configured to compare the duration of the operation interval period with a preset reference duration to obtain a comparison result, where the comparison module 502 includes a duration determination submodule 5021 and a quantity statistics submodule 5021.
The duration determination submodule 5021 is configured to determine that the operation interval period is the target interval period when the operation interval period is less than or equal to the reference duration.
The reference time period may be a time period set by a person, for example, a time period of 10 minutes, 30 minutes, or 1 hour, and a specific value of the reference time period may be determined according to an actual situation.
When the system automatically triggers the application to be closed in order to reduce the power consumption of the electronic device, some applications with high use frequency may be closed sometimes. Thus, the problem of reducing the power consumption of the electronic device can be achieved, but the normal use of these applications by the user can be affected.
In some embodiments, to determine the frequency of use of an application, a reference time period may be set, and the interval period may be compared with the reference time period. In the comparison process, an application having an operation interval period less than or equal to the reference time period may be used as an application having a higher frequency of use, and the operation interval period less than or equal to the reference time period may be used as the target interval period.
For example, when the operation interval period is 10 minutes and the reference time period is 5 minutes, the comparison indicates that 10 minutes >5 minutes, and the system may use the operation interval period as the target interval period.
The number counting submodule 5021 is configured to count the number of target interval periods within a preset time period.
The number of the target interval periods in the preset time period is counted, so that the use condition of the application can be better known, and the system can judge whether the application is closed more accurately.
For example, if the preset time period is 1 day, the number of target interval periods in 1 day is counted.
The monitoring module 503 is configured to monitor a closing instruction, where the closing instruction is used to instruct to close the application.
The closing instruction is used for indicating that the application is closed, and when the system is automatically triggered to close one application, the closing instruction for closing the application is sent to the system at the moment.
In some embodiments, whether to perform a shutdown operation for an application may be determined by listening for a shutdown instruction for the application. For example, when an application is running in the background, the application may then initiate a listening operation for the close instruction. If the display screen of the electronic equipment is turned off and an application is not in the screen-off keep-alive list of the electronic equipment, the electronic equipment triggers generation and sends a closing instruction of the application to the system. After the application monitors the closing instruction, the application triggers the closing operation of the application. If the application does not monitor the closing instruction, the application is in a running state all the time, and the application does not respond until the closing instruction is monitored.
A response determining module 504, configured to determine whether to respond to the closing instruction according to the comparison result if the closing instruction is monitored. Wherein the response determination module 504 includes a first response sub-module 5041.
Specifically, the first response sub-module 5041 is configured to determine whether to respond to the close command according to the number of the target interval periods.
And if the closing instruction is monitored, determining whether to respond to the closing instruction according to the number of the target interval time periods.
In some embodiments, determining whether to respond to the closing instruction according to the number of the target interval periods may be performed by setting a preset number for comparing with the number of the target interval periods to measure the frequency of use of the application, and specifically, the method may include the following steps:
when the number of the target interval periods is greater than or equal to the preset number, not responding to the closing instruction;
and responding to the closing instruction when the number of the target interval periods is less than the preset number.
The preset number can be an artificial preset number value, and the specific number value can be determined according to the actual situation. For example, if the preset time period is 1 day, the preset number is 5, and the result of counting the number of target intervals in 1 day is 6, it may be determined that the number of target intervals is greater than the preset number, and the system does not respond to the shutdown command.
By comparing the number of target interval periods within a preset time period with the preset number value, the use frequency of the application can be better determined.
Therefore, in the embodiment, by determining the number of the target interval periods and taking the number of the target interval periods as a basis for judging whether to close the application, the system can determine whether to close the application according to the use frequency of the application, and on the premise that the power consumption of the electronic device can be reduced, the influence on the normal use of the applications by a user due to the fact that the application with the higher use frequency is closed is avoided.
In some embodiments, first response submodule 5041 is further operable to:
acquiring the total number of operation interval periods in a preset time period;
determining the ratio of the number of the target interval periods to the total number of the operation interval periods according to the total number of the operation interval periods;
when the ratio is greater than or equal to a preset ratio, the closing instruction is not responded;
and responding to the closing instruction when the ratio is smaller than the preset ratio.
For example, if the preset time period is 1 day, the number of the target interval periods acquired in 1 day is 5, and the total number of the operation interval periods is 8, the ratio of the number of the target interval periods to the total number of the operation interval periods is 5/8 or 62.5%.
The preset ratio is a value set manually, for example, 50%, and when the ratio is greater than or equal to the preset ratio, the closing instruction is not responded. The application with the ratio of the target interval period being greater than or equal to the preset ratio can be determined to belong to the application with the higher use frequency, so that the application with the higher use frequency can be kept alive, and the normal use of the user is ensured.
And when the ratio is smaller than the preset ratio, responding to a closing instruction. The application with the ratio of the target interval period smaller than the preset ratio can be determined to belong to the application with the lower use frequency, so that the application with the lower use frequency can be closed to reduce the power consumption of the electronic device.
Therefore, the embodiment can better determine the application use frequency by acquiring the ratio of the number of the target interval periods in the total number of the operation interval periods and comparing the ratio with the preset ratio, so that the judgment on whether the system responds to the closing instruction and then closes the application is more intelligent and accurate.
In this embodiment of the application, the application management apparatus and the application management method in the above embodiments belong to the same concept, and any method provided in the embodiment of the application management method may be run on the application management apparatus, and a specific implementation process of the method is described in detail in the embodiment of the application management method, and any combination of the method and the embodiment may be adopted to form an optional embodiment of the application, which is not described herein again.
The embodiment of the application also provides electronic equipment which can be equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer and a palm computer. Referring to fig. 9, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.
The processor 600 is a control center of the electronic device 600, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by running or loading an application program stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device 600.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
In this embodiment of the application, the processor 601 in the electronic device 600 loads instructions corresponding to processes of one or more application programs into the memory 602, and the processor 601 runs the application programs stored in the memory 602, so as to implement various functions as follows:
acquiring an operation interval period of an application in a preset time period, wherein the operation interval period is an interval period in which the application is turned on again after being turned off; comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result; monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application; and if the closing instruction is monitored, determining whether to respond to the closing instruction according to the comparison result.
In some embodiments, the processor 601 may be further configured to:
when the duration of the operation interval period is less than or equal to the reference duration, determining the operation interval period as a target interval period; counting the number of the target interval periods in the preset time period; and determining whether to respond to the closing instruction according to the number of the target interval time periods.
In some embodiments, the processor 601 may be further configured to:
acquiring the total number of the operation interval periods in the preset time period; determining the ratio of the number of the target interval periods to the total number of the operation interval periods according to the total number of the operation interval periods; when the ratio is larger than or equal to a preset ratio, the closing instruction is not responded; and responding to the closing instruction when the ratio is smaller than a preset ratio.
In some embodiments, the processor 601 may be further configured to:
when the number of the target interval periods is greater than or equal to a preset number, not responding to the closing instruction; and responding to the closing instruction when the number of the target interval time periods is less than the preset number.
In some embodiments, the processor 601 may be further configured to:
and after determining not to respond to the closing instruction according to the comparison result, not responding to the closing instruction within a preset time length.
The electronic device provided by the embodiment of the application acquires the operation interval period within the preset time period, wherein the operation interval period is started again after the application is closed, and judges whether to close the application or not when acquiring the closing instruction based on the operation interval period. According to the embodiment of the application, the closing action of the system to the application can be managed more intelligently, and further the power consumption of the electronic equipment is reduced.
Referring also to fig. 10, in some embodiments, the electronic device 600 may further include: a display 603, a radio frequency circuit 604, an audio circuit 605, a wireless fidelity module 606, and a power supply 607. The display 603, the rf circuit 604, the audio circuit 605, the wireless fidelity module 606 and the power supply 607 are electrically connected to the processor 601, respectively.
The display 603 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 603 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 604 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 605 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The wi-fi module 606 may be used for short-range wireless transmission, may assist a user in sending and receiving e-mail, browsing websites, accessing streaming media, etc., and provides wireless broadband internet access for the user.
The power supply 607 may be used to power various components of the electronic device 600. In some embodiments, the power supply 607 may be logically coupled to the processor 601 through a power management system, such that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown in fig. 10, the electronic device 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Embodiments of the present application further provide a storage medium, where the storage medium stores a plurality of instructions, where the plurality of instructions are suitable for being loaded by a processor to perform the application management method in the foregoing embodiments, for example: acquiring an operation interval period of an application in a preset time period, wherein the operation interval period is an interval period in which the application is turned on again after being turned off; comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result; monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application; and if the closing instruction is monitored, determining whether to respond to the closing instruction according to the comparison result.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable medium, which may include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The application management method, the application management apparatus, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and implementations of the present application, and the description of the embodiments above is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An application management method applied to an electronic device, the method comprising:
acquiring an operation interval period of an application in a preset time period, wherein the operation interval period is an interval period in which an application process is turned on again after being turned off by a system;
acquiring a preset reference time length, and determining the operation interval time period as a target interval time period when the time length of the operation interval time period is less than or equal to the reference time length;
counting the number of the target interval periods in the preset time period;
monitoring a closing instruction, wherein the closing instruction is used for indicating to close the application process;
and if the closing instruction is monitored, determining whether to respond to the closing instruction according to the number of the target interval time periods.
2. The application management method of claim 1, wherein said determining whether to respond to the shutdown instruction based on the number of the target interval periods comprises:
acquiring the total number of the operation interval periods in the preset time period;
determining the ratio of the number of the target interval periods to the total number of the operation interval periods according to the total number of the operation interval periods;
when the ratio is larger than or equal to a preset ratio, the closing instruction is not responded;
and responding to the closing instruction when the ratio is smaller than a preset ratio.
3. The application management method of claim 1, wherein said determining whether to respond to the shutdown instruction based on the number of the target interval periods comprises:
when the number of the target interval periods is greater than or equal to a preset number, not responding to the closing instruction;
and responding to the closing instruction when the number of the target interval time periods is less than the preset number.
4. The application management method according to any one of claims 1 to 3, wherein after determining whether to respond to the shutdown instruction according to the number of the target interval periods, further comprising:
and after determining that the closing instruction is not responded according to the number of the target interval time periods, not responding to the closing instruction within a preset time length.
5. An application management apparatus, comprising:
the system comprises a duration acquisition module, a time duration acquisition module and a time duration calculation module, wherein the duration acquisition module is used for acquiring an operation interval period of an application in a preset time period, and the operation interval period is an interval period in which an application process is turned on again after being turned off by a system;
the comparison module is used for comparing the time length of the operation interval period with a preset reference time length to obtain a comparison result;
the comparison module comprises:
a time length determining submodule, configured to determine that the operation interval period is a target interval period when a time length of the operation interval period is less than or equal to the reference time length; and
the quantity counting submodule is used for counting the quantity of the target interval time periods in the preset time period;
the monitoring module is used for monitoring a closing instruction, and the closing instruction is used for indicating that the application process is closed; and
a response determining module, configured to determine whether to respond to the closing instruction according to the comparison result if the closing instruction is monitored;
the response determination module includes:
and the first response submodule is used for determining whether to respond to the closing instruction according to the number of the target interval time periods.
6. The application management device of claim 5, wherein the first response submodule is specifically configured to:
acquiring the total number of the operation interval periods in the preset time period;
determining the ratio of the number of the target interval periods to the total number of the operation interval periods according to the total number of the operation interval periods;
when the ratio is larger than or equal to a preset ratio, the closing instruction is not responded;
and responding to the closing instruction when the ratio is smaller than a preset ratio.
7. The application management device of claim 5, wherein the first response submodule is specifically configured to:
when the number of the target interval periods is greater than or equal to a preset number, not responding to the closing instruction;
and responding to the closing instruction when the number of the target interval time periods is less than the preset number.
8. The application management apparatus of any of claims 5-7, wherein the response determination module is further to:
and after determining not to respond to the closing instruction according to the comparison result, not responding to the closing instruction within a preset time length.
9. A storage medium storing a plurality of instructions adapted to cause a computer, when run on the computer, to perform the application management method of any one of claims 1 to 4.
10. An electronic device comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to execute the application management method according to any one of claims 1 to 4 by loading the instructions in the memory.
CN201711124586.2A 2017-11-14 2017-11-14 Application management method and device, storage medium and electronic equipment Active CN107908273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711124586.2A CN107908273B (en) 2017-11-14 2017-11-14 Application management method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711124586.2A CN107908273B (en) 2017-11-14 2017-11-14 Application management method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107908273A CN107908273A (en) 2018-04-13
CN107908273B true CN107908273B (en) 2020-07-07

Family

ID=61844160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711124586.2A Active CN107908273B (en) 2017-11-14 2017-11-14 Application management method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107908273B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112867119B (en) * 2021-02-04 2024-03-19 北京字节跳动网络技术有限公司 Terminal control method, device, terminal and storage medium
CN112988282B (en) * 2021-04-27 2021-08-20 荣耀终端有限公司 Application keep-alive method and terminal equipment
CN113407300B (en) * 2021-05-21 2022-08-12 荣耀终端有限公司 Application false killing evaluation method and related equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495761A (en) * 2011-11-11 2012-06-13 中兴通讯股份有限公司 Method and device for closing applications

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7634668B2 (en) * 2002-08-22 2009-12-15 Nvidia Corporation Method and apparatus for adaptive power consumption
CN102521041B (en) * 2011-12-14 2014-10-08 华为终端有限公司 Method for processing application program and wireless handheld device
CN106557146B (en) * 2015-09-28 2019-08-27 北京金山安全软件有限公司 Power saving method, device and terminal
CN106201572A (en) * 2016-06-23 2016-12-07 努比亚技术有限公司 Mobile terminal and internal memory releasing control method
CN106201686A (en) * 2016-06-30 2016-12-07 北京小米移动软件有限公司 Management method, device and the terminal of application
CN107045443A (en) * 2017-04-14 2017-08-15 北京安云世纪科技有限公司 background process control method, device and intelligent terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495761A (en) * 2011-11-11 2012-06-13 中兴通讯股份有限公司 Method and device for closing applications

Also Published As

Publication number Publication date
CN107908273A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN110633151B (en) Method, device and storage medium for balancing distributed message issuing cluster partitions
RU2691640C2 (en) Method and apparatus for reducing energy consumption in mobile electronic device
US10591981B2 (en) Terminal control method and apparatus, and terminal
US8738094B2 (en) Automatically enabling wireless communication
CN107463435B (en) Application process priority management method and device, storage medium and electronic equipment
US11157315B2 (en) Method for process management and electronic device
CN107908273B (en) Application management method and device, storage medium and electronic equipment
CN107450711B (en) Application processing method and device, storage medium and terminal
US20230403354A1 (en) Method for Adjusting Parameter of Audio Service and Terminal
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
US10728718B2 (en) Incoming call processing method, user equipment, and storage medium
WO2019024646A1 (en) Application management and control method, apparatus, and electronic device
WO2017206901A1 (en) Process control method and related device
CN110442310A (en) Application data processing method, device, storage medium and terminal device
CN110225106B (en) Data transmission method, device and storage medium
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN107402626A (en) Using cycle synchronisation management method, device, storage medium and electronic equipment
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN108377162B (en) Antenna control method, antenna control device, storage medium and electronic equipment
WO2021254266A1 (en) Method and apparatus for voice calls, and electronic device
CN114265495A (en) Application program processing method, intelligent terminal and storage medium
CN107943533B (en) Image acquisition method and device, storage medium and electronic equipment
CN110007968B (en) Information processing method, information processing device, computer equipment and computer readable storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant