WO2017206871A1 - Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique - Google Patents

Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique Download PDF

Info

Publication number
WO2017206871A1
WO2017206871A1 PCT/CN2017/086468 CN2017086468W WO2017206871A1 WO 2017206871 A1 WO2017206871 A1 WO 2017206871A1 CN 2017086468 W CN2017086468 W CN 2017086468W WO 2017206871 A1 WO2017206871 A1 WO 2017206871A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
application
function level
level
wake
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.)
Ceased
Application number
PCT/CN2017/086468
Other languages
English (en)
Chinese (zh)
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
Publication of WO2017206871A1 publication Critical patent/WO2017206871A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for closing an application.
  • a smart terminal In order to implement various functions to meet various needs of users, a smart terminal usually installs various kinds of applications (which may be simply referred to as applications), for example, social applications, video applications, game applications, and the like. Different applications run differently, and the operating requirements of the smart terminals are different. For example, social applications (for example, WeChat) are running at runtime via CPU (Central Processing Unit, Central) Processing Unit) wakes up the lock to keep the CPU of the smart terminal running; when the video application (for example, Youku) runs, the CPU and screen of the smart terminal are kept running by the CPU wake lock and the screen wake lock. Therefore, when the application installed on the smart terminal is running, it consumes a large amount of power and reduces the endurance of the smart terminal.
  • applications for example, WeChat
  • CPU Central Processing Unit, Central
  • Youku Video application
  • the application installed on the smart terminal it consumes a large amount of power and reduces the endurance of the smart terminal.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for closing an application, which can improve the speed of restarting the application while reducing the power consumption of the terminal.
  • an embodiment of the present invention provides a method for shutting down an application, including:
  • the corresponding function in the application is closed according to the first target function level.
  • a second aspect of the present invention provides an apparatus for shutting down an application, including:
  • a first acquiring module configured to receive a shutdown instruction of the application, and acquire, according to the shutdown instruction, a wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period;
  • a second acquiring module configured to acquire a corresponding first target function level according to the wakeup feature
  • a first processing module configured to close a corresponding function in the application according to the first target function level.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute a shutdown method of the application.
  • an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
  • the corresponding function in the application is closed according to the first target function level.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for closing an application, which can improve the speed of restarting the application while reducing the power consumption of the terminal.
  • FIG. 1 is a schematic flowchart of a method for shutting down an application according to an embodiment of the present invention.
  • FIG. 2 is a second schematic flowchart of a method for shutting down an application according to an embodiment of the present invention.
  • FIG. 3 is a third schematic flowchart of a method for shutting down an application according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for shutting down an application program according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a second structure of an apparatus for shutting down an application according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a third structure of an apparatus for shutting down an application according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a fourth structure of an apparatus for shutting down an application according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram showing a fifth structure of an apparatus for shutting down an application according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the application runs a main function and multiple sub-functions called by the main function.
  • the smart terminal closes all functions (including main functions, sub-functions, etc.) in the application when the application is closed.
  • the current application shutdown scheme can reduce the terminal power consumption, since the scheme is to close all the functions in the application, if the smart terminal needs to restart the application after the application is closed, then at this time, the smart terminal Recalling all of the application's functions will cause the application to restart slowly.
  • An embodiment of the present invention provides a method for shutting down an application, including:
  • the corresponding function in the application is closed according to the first target function level.
  • the step of setting a function level to a function in an application specifically includes:
  • a function level is set for a function in the application according to the calling relationship.
  • the step of waking up includes the number of waking times
  • the step of acquiring the corresponding first target function level according to the waking feature comprises:
  • the awakening feature includes a wake-up frequency
  • the step of acquiring the corresponding first target function level according to the wake-up feature specifically includes:
  • the step of the first target function is lower than the highest function level, and the step of closing the corresponding function in the application according to the first target function level comprises:
  • the function corresponding to the first objective function level in the application is closed, and the function level is lower than the function of the first target function level.
  • the shutdown method further includes:
  • the corresponding function in the application is closed according to the second objective function level.
  • the step of setting a function level to a function in an application specifically includes:
  • the step of closing the corresponding function in the application according to the first target function level specifically includes:
  • the corresponding call function in the set is closed according to the first target function level.
  • the method for shutting down the application may include:
  • any application that can run on an operating system needs to have a main function (or a first-level function), and the main function is an entry to the application for other
  • the various functions (sub-functions) are called, and the functions are executed by the called sub-functions. Since the main function needs to give the running result of the application, the main function is also the exit of the application.
  • the main function is relatively simple, the specific details of the functions that the application needs to implement are encapsulated into the sub-function for the main function to call.
  • the sub-function can also call other sub-functions.
  • a function level may be set according to a call relationship between functions. For example, the level of the main function is set to level 1, and the level 1 function is called. The level of the function is set to level 2, the level of the function called by the level 2 function is set to level 3, the level of the function called by the level 3 function is set to level 4, and so on.
  • a larger value at the function level indicates that the function is in the lower level of the calling relationship, ie the lower the level of the function.
  • setting the function level to the function in the application can specifically include the following steps:
  • the implementation of the calling relationship between functions in the application may be implemented in various manners.
  • the calling relationship between the functions may be obtained according to a calling command in the function code.
  • the code of function A includes a call command to function B
  • the code of function B includes a call command for function C
  • the code of function C includes a call command for function D
  • a call between functions can be obtained.
  • the relationship is: function A calls function B, function B calls function C, and function C calls function D.
  • the function level of the function can be set according to the call relationship. For example, the level of the function A is set to level 1, the level of the function B is level 2, and the level of the function C is level 3. The level of function D is level 4.
  • S102 Receive a shutdown instruction of the application, and acquire, according to the shutdown instruction, a wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period.
  • the manner of receiving the closing instruction of the application may be various.
  • the closing instruction sent by the user's touch operation may be received through the screen, or the closing instruction sent by the user through the remote operation may be received, or the receiving terminal may be internal.
  • the acquisition application wakes up the wakeup feature of the system through the wakeup lock for a preset period of time.
  • the preset time period may be a time value stored in advance in the built-in storage area of the terminal, or may be a time value set by the user and stored in the built-in storage area of the terminal, for example, 1 minute.
  • the wake-up feature may be a feature such as the number of wake-ups or the wake-up frequency within a preset time period, for example, the application wakes up the terminal system 5 times by a wake-up lock within 1 minute.
  • a mapping relationship between the wake-up feature and the target function level may be pre-stored in the built-in storage area of the terminal, and the mapping relationship may also be set by the user and stored in the built-in storage area of the terminal.
  • the mapping relationship stored in the built-in storage area of the terminal is invoked, and the target function level is obtained according to the mapping relationship. For example, if the target function level corresponding to the number of wakeups in the mapping relationship is 5, the level of the target function is 3, and when the number of wakeups is 5, the corresponding target function level can be obtained according to the mapping relationship.
  • obtaining the corresponding first target function level according to the wakeup feature may specifically include the following steps:
  • a corresponding first objective function level is obtained according to the wake-up time interval.
  • the mapping relationship between the wake-up time interval and the target function level may be pre-stored in the built-in storage area of the terminal.
  • the target function level corresponding to the wake-up time interval (5, 10) is level 3
  • the corresponding objective function level is level 2.
  • the wake-up time interval in which the wake-up number is located is determined. For example, when the number of awake times is 5, it can be determined that the awake time interval is (5, 10), and then the pre-stored mapping relationship is called to obtain the corresponding target function level of 3.
  • the corresponding function in the application is closed, for example, when the target function level is obtained to level 3, all the level 3 functions in the application are closed.
  • the first objective function level should be lower than the highest function level (the highest function level is The level of the main function).
  • closing the corresponding function in the application according to the first target function level may specifically include the following steps:
  • the first target function level is the lowest function level, for example, querying whether all functions of the application running in the system have children called by the function corresponding to the target function level. function. For example, if the target function level is level 3, it is determined whether there is a level 4 function called by the level 3 function.
  • the function corresponding to the first target function level is turned off, for example, all level 3 functions are closed; when it is determined that the first target function level is not the lowest function level, the function is closed A function whose level is less than or equal to the target function level, for example, close all level 3 functions, level 4 functions, and level 5 functions (if there are called level 5 functions).
  • the method of closing the application may further include the following steps:
  • the corresponding function in the application is closed according to the second objective function level.
  • the method for obtaining the current power information of the terminal is implemented by using a power management program that is provided by the terminal, and the power information may be a percentage of the total battery capacity.
  • the power information is 30% means that the terminal currently has 30% of the remaining power.
  • the mapping relationship between the power information and the second target function level may be pre-stored in the built-in storage area of the terminal, for example, the target function level corresponding to 30% power is 3, and the target function level corresponding to 20% power is 2, etc. After obtaining the power information of the terminal, the mapping relationship stored in the terminal is invoked to obtain the corresponding second target function level; or the mapping relationship between the power information interval and the second target function level may be pre-stored in the built-in storage area of the terminal.
  • the power function information (30%, 40%) corresponds to the level of the objective function level is 3, (20%, 30%) corresponds to the target function level is level 2, etc., after obtaining the power information of the terminal, first determine the The power information interval in which the power information is located, and then acquiring the second target function level according to the power information interval and the mapping relationship.
  • the functions corresponding to the first objective function level have all been closed, and the function level of the remaining unclosed functions should be higher than the first target function level, therefore, the second objective function level should be higher than the first The target function level.
  • Closing the corresponding function in the application according to the second target function level Specifically, after acquiring the second target function level, for example, acquiring the second target function level according to the power information 20%, the application is closed. All of the level 2 functions, or close all level 2 functions in the application and functions with level 2 or lower level (level 3 functions, level 4 functions, etc.).
  • the method for closing an application sets a function level to a function in an application, receives a shutdown instruction of the application, and acquires the application according to the shutdown instruction within a preset time period.
  • the wake-up feature of the wake-up lock system is obtained, the corresponding first target function level is obtained according to the wake-up feature, and the corresponding function in the application is closed according to the first target function level; the solution first sets a function on the function in the application.
  • the closing device of the application is specifically integrated into the smart phone, and the method for closing the application in the smart phone is taken as an example for detailed description.
  • the application shutdown method can be as follows:
  • the implementation of the calling relationship between functions in the application may be implemented in various manners.
  • the calling relationship between the functions may be obtained according to a calling command in the function code.
  • the code of function A includes a call command to function B
  • the code of function B includes a call command for function C
  • the code of function C includes a call command for function D
  • a call between functions can be obtained.
  • the relationship is: function A calls function B, function B calls function C, and function C calls function D.
  • the function level of the function may be set according to the calling relationship.
  • the level of the function A is set to level 1
  • the level of the function B is level 2
  • the level of the function C is Level 3
  • the level of function D is level 4.
  • a larger value at the function level indicates that the function is in the lower level of the calling relationship, ie the lower the level of the function.
  • S203 Receive a shutdown instruction of the application, and obtain, according to the shutdown instruction, a wake-up time of the application to wake up the system by using a wake-up lock within a preset time period.
  • the smart phone can receive a closing instruction sent by the user's touch operation through the screen.
  • the user clicks the close button (virtual button) of the application on the touch screen, and the smart phone sends a closing instruction to the application in response to the user's touch operation.
  • the preset time period may be a pre-stored time value in the smart phone.
  • the preset time period is 1 minute, and within 1 minute, the number of times the application wakes up the system by the wake lock is counted by a counting function, the application
  • a wake-up lock for example, a CPU wake-up lock, a screen wake-up lock, etc.
  • the count value of the count function is incremented by one.
  • the smart phone receives the closing command of the application, it acquires the count value of the counting function within 1 minute as the wake-up time of the application to wake up the system by the wake-up lock within the preset time period.
  • the number of wakeups may be divided into multiple intervals in advance.
  • the number of wakeups may be divided into multiple intervals such as (5, 10), (10, 15), (15, 20), etc., when the application is acquired.
  • the number of wake-up times in which the wake-up number is located is determined. For example, when the number of wakeups is 5, it can be determined that the wakeup interval is (5, 10).
  • the mapping relationship between the wake-up time interval and the target function level may be pre-stored in the built-in storage area of the terminal.
  • the target function level corresponding to the wake-up time interval (5, 10) is level 3, and the wake-up time interval (10) 15)
  • the corresponding target function level is level 2; after determining the number of wake-up times in which the number of wake-ups is located, for example, the determined number of wake-up times is (5, 10), the pre-stored mapping relationship may be called to obtain the corresponding
  • the objective function level is level 3.
  • the first target function level is the lowest function level, for example, querying whether all functions of the application running in the system have children called by the function corresponding to the target function level. function. For example, if the target function level is level 3, it is determined whether there is a level 4 function called by the level 3 function; if not, it is determined that the first object function level is the lowest function level, and then step S207 is performed, if any, Then, it is determined that the first target function level is not the lowest function level, and then step S208 is performed.
  • the function corresponding to the first target function level is turned off. For example, if the first target function level is level 3, all the level 3 functions are closed.
  • the function whose function level is less than or equal to the target function level is turned off. For example, if the first target function level is level 3, all level 3 functions are closed, 4 Level function and level 5 function (if there is a level 5 function called).
  • the method for obtaining the current power information of the terminal is implemented by using a power management program that is provided by the terminal, and the power information may be a percentage of the total battery capacity.
  • the power information is 30% means that the terminal currently has 30% of the remaining power.
  • the mapping relationship between the power information interval and the second target function level may be pre-stored in the built-in storage area of the terminal.
  • the power function information (30%, 40%) corresponds to the target function level of 3
  • the power information (20%, 30%) corresponding to the target function level is level 2, etc.
  • after obtaining the power information of the terminal first determine the power information interval in which the power information is located, and then according to the power information interval and the pre-stored mapping relationship Get the second objective function level.
  • the level 2 function is closed, and all the level 2 functions in the application are closed, or all levels 2 in the application are closed.
  • Functions and functions whose function level is lower than level 2 level 3 function, level 4 function, etc.).
  • the method for closing an application takes a calling relationship between functions in an application, and then sets a function level according to the calling relationship to the function in the application, and receives the closing of the application. And acquiring, according to the shutdown instruction, the wake-up times of the wake-up lock wake-up system in the preset time period, determining the wake-up time interval in which the wake-up times are located, and acquiring the corresponding first objective function according to the wake-up times interval Level, determining whether the first target function level is the lowest function level, if yes, closing the function corresponding to the first target function level in the application, if otherwise closing the function corresponding to the first target function level in the application, and The function level is lower than the function of the first target function level, and then the current power information of the terminal is obtained, the corresponding second target function level is obtained according to the power information, and the corresponding function in the application is closed according to the second target function level.
  • the program passes the preset time period according to the application Wake-up wakes up the system to wake up the corresponding function, and further closes the corresponding function according to the power information of the terminal. Since the solution does not directly close the application, but only closes the corresponding function in the application, therefore, When the application needs to be restarted, only the function to be closed needs to be recalled. Compared with the prior art, the speed of the application restart can be improved while reducing the power consumption of the terminal.
  • smart terminals are equipped with many sensors, for example, GPS (Global Positioning) System, Global Positioning System) sensors, gravity sensors, fingerprint sensors, image sensors, audio sensors, etc.
  • sensors for example, GPS (Global Positioning) System, Global Positioning System) sensors, gravity sensors, fingerprint sensors, image sensors, audio sensors, etc.
  • applications call these sensors through sensor call functions in the application, each sensor can be called by multiple applications, each application
  • the program can also call multiple sensors.
  • the calling function of the calling sensor in the application When the application is closed, usually the calling function of the calling sensor in the application is not closed.
  • the calling function remains running after the application is closed, which increases the power consumption of the terminal, thereby increasing the power consumption of the terminal and reducing the endurance of the terminal.
  • the device may be integrated into the terminal, and the terminal may be a device such as a smart phone or a tablet computer.
  • the application shutdown method can be as follows:
  • the calling function E is used to call the fingerprint sensor
  • the calling function F is used to call the image sensor
  • the calling function G is used to call the audio sensor, and then the function can be obtained.
  • the collection includes calling function E, calling function F, and calling function G.
  • the function when the function level is set, the function may be set according to the function importance of the sensor called by the multiple calling functions.
  • the fingerprint sensor is an authentication mode when entering the application, and the fingerprint sensor has the highest importance.
  • the fingerprint sensor can be set to the level of level 2 of the function E.
  • the image sensor is used to implement the basic functions of the application.
  • the importance of the image sensor is second.
  • the level of the image sensor calling function F can be set to level 3, and the audio sensor It is an additional function for implementing the application, and the audio sensor is of the least importance, and the level of the audio sensor calling function G can be set to level 4.
  • the identification bits may be set to the calling function in the collection, for example, the identification bits of all calling functions in the collection are set to 1, and the identification bits may also include colors, for example, in the collection.
  • the flag for all calling functions is set to green.
  • S303 Receive a shutdown instruction of the application, and obtain, according to the shutdown instruction, a wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period.
  • the manner of receiving the closing instruction of the application may be various.
  • the closing instruction sent by the user's touch operation may be received through the screen, or the closing instruction sent by the user through the remote operation may be received, or the receiving terminal may be internal.
  • the acquisition application wakes up the wakeup feature of the system through the wakeup lock for a preset period of time.
  • the preset time period may be a time value stored in advance in the built-in storage area of the terminal, or may be a time value set by the user and stored in the built-in storage area of the terminal, for example, 1 minute.
  • the wake-up feature may be a feature such as the number of wake-ups or the wake-up frequency within a preset time period, for example, the application wakes up the terminal system 5 times by a wake-up lock within 1 minute.
  • a mapping relationship between the wake-up feature and the target function level may be pre-stored in the built-in storage area of the terminal, and the mapping relationship may also be set by the user and stored in the built-in storage area of the terminal.
  • the mapping relationship stored in the built-in storage area of the terminal is invoked, and the target function level is obtained according to the mapping relationship. For example, if the target function level corresponding to the number of wakeups in the mapping relationship is 5, the level of the target function is 3, and when the number of wakeups is 5, the corresponding target function level can be obtained according to the mapping relationship.
  • the corresponding calling function in the set is closed.
  • the target function level is 3
  • all the level 3 calling functions in the set are closed, and all the level 3 in the set can be closed. Call the function and the level 4 call function.
  • the identification bit of the closed calling function may also be changed, for example, the flag of all calling functions that are closed in the collection is changed from 1 to 1. 2.
  • the flag can also include a color, for example, changing the flag of all calling functions that are turned off in the collection from green to red.
  • the method for closing an application uses a set of calling functions for calling a sensor in an application, sets a function level for the calling function in the set, receives a closing instruction of the application, and according to The shutdown instruction acquires a wake-up feature of the application to wake up the system through the wake-up lock within a preset time period, obtains a corresponding first target function level according to the wake-up feature, and closes the corresponding call in the set according to the first target function level.
  • the function first sets the function level to the calling function in the collection, and then obtains the corresponding first objective function level by the wake-up feature of the wake-up lock wake-up system according to the application within the preset time period, and closes the set with the target function.
  • the corresponding calling function of the level because the program does not directly close the application, but closes the corresponding calling function in the application, therefore, when the application needs to be restarted, only the called calling function needs to be called again. Relative to the prior art, the terminal can be lowered At the same time the amount of consumption, increase speed application restart.
  • the embodiment of the present invention further provides a device for shutting down an application, and the device for closing the application may be integrated in the terminal, and the terminal may specifically be a device such as a smart phone or a tablet computer.
  • An embodiment of the present invention provides an apparatus for shutting down an application, including:
  • a first acquiring module configured to receive a shutdown instruction of the application, and acquire, according to the shutdown instruction, a wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period;
  • a second acquiring module configured to acquire a corresponding first target function level according to the wakeup feature
  • a first processing module configured to close a corresponding function in the application according to the first target function level.
  • the setting module specifically includes:
  • a first obtaining submodule configured to acquire a calling relationship between functions in an application
  • the wake-up feature includes a wake-up number
  • the second acquiring module specifically includes:
  • Determining a sub-module configured to determine an interval of wake-up times in which the number of wake-ups is located
  • a second acquiring submodule configured to acquire a corresponding first target function level according to the wakeup time interval.
  • the first target function level is lower than a highest function level
  • the first processing module specifically includes:
  • a determining submodule configured to determine whether the first target function level is the lowest function level
  • a processing submodule configured to: when the determining submodule determines to be YES, close a function corresponding to the first target function level in the application; when the determining submodule determines to be no, close the application The function corresponding to the first objective function level and the function level lower than the first objective function level.
  • the closing device further includes a second processing module, the second processing module is configured to:
  • the corresponding function in the application is closed according to the second objective function level.
  • the device may be integrated into the terminal, and the terminal may be a device such as a smart phone or a tablet computer.
  • the shutdown device of the application may include: a setting module 401, a first obtaining module 402, a second obtaining module 403, and a first processing module 404, which are specifically described as follows:
  • the setting module 401 is configured to set a function level for a function in the application
  • the first obtaining module 402 is configured to receive a shutdown instruction of the application, and acquire, according to the shutdown instruction, an wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period;
  • the second obtaining module 403 is configured to obtain a corresponding first target function level according to the wakeup feature.
  • the first processing module 404 is configured to close a corresponding function in the application according to the first target function level.
  • the setting module 401 may include: a first obtaining submodule 4011 and a setting submodule 4012, as follows:
  • the first obtaining submodule 4011 is configured to acquire a calling relationship between functions in an application.
  • the setting sub-module 4012 is configured to set a function level for the function in the application according to the calling relationship.
  • the wake-up feature includes the number of wake-ups.
  • the second obtaining module 403 may include: a determining sub-module 4031 and a second obtaining sub-module 4032, as follows:
  • the determining sub-module 4031 is configured to determine a wake-up time interval in which the wake-up number is located;
  • the second obtaining sub-module 4032 is configured to obtain a corresponding first target function level according to the wake-up time interval.
  • the first target function level is lower than the highest function level.
  • the first processing module 404 may include: a determining submodule 4041 and a processing submodule 4042, as follows:
  • the determining sub-module 4041 is configured to determine whether the first target function level is the lowest function level
  • the processing sub-module 4042 is configured to: when the determining sub-module 4041 determines YES, close a function corresponding to the first target function level in the application; when the determining sub-module 4041 determines to be no, close the application.
  • the function corresponding to the first objective function level and the function level lower than the function of the first objective function level.
  • the shutdown device of the application may further include: a second processing module 405; the second processing module 405 is configured to:
  • the corresponding function in the application is closed according to the second objective function level.
  • the closing device of the application program sets the function level to the function in the application program by the setting module 401, the first obtaining module 402 receives the closing instruction of the application program, and acquires the closing instruction according to the closing instruction.
  • the application wakes up the wakeup feature of the system by the wakeup lock in the preset time period, the second obtaining module 403 obtains the corresponding first target function level according to the wakeup feature, and the first processing module 404 closes the application according to the first target function level.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • the embodiment of the invention further provides an electronic device, which may be a device such as a smart phone or a tablet computer.
  • the electronic device 500 includes a processor 501, a memory 502, a display screen 503, and a control circuit 504.
  • the processor 501 is electrically connected to the memory 502, the display screen 503, and the control circuit 504, respectively.
  • the processor 501 is a control center of the electronic device 500, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 502, and calling data stored in the memory 502.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more applications into the memory 502 according to the following steps, and is stored and stored in the memory 502 by the processor 501.
  • the application thus implementing various functions:
  • the corresponding function in the application is closed according to the first target function level.
  • the processor 501 when a function level is set for a function in an application, the processor 501 is configured to perform the following steps:
  • a function level is set for a function in the application according to the calling relationship.
  • the wake-up feature includes a wake-up number
  • the processor 501 is configured to perform the following steps:
  • the wake-up feature includes a wake-up frequency
  • the processor 501 when the corresponding first target function level is obtained according to the wake-up feature, the processor 501 is configured to perform the following steps:
  • the first target function level is lower than the highest function level, and when the corresponding function in the application is closed according to the first target function level, the processor 501 is configured to perform the following steps:
  • the function corresponding to the first objective function level in the application is closed, and the function level is lower than the function of the first target function level.
  • the processor 501 is further configured to perform the following steps:
  • the corresponding function in the application is closed according to the second objective function level.
  • the processor 501 when a function level is set for a function in an application, the processor 501 is configured to perform the following steps:
  • the step of closing the corresponding function in the application according to the first target function level specifically includes:
  • the corresponding call function in the set is closed according to the first target function level.
  • Memory 502 can be used to store applications and data.
  • the application stored in the memory 502 contains instructions executable in the processor.
  • Applications can form various functional modules.
  • the processor 501 executes various functional applications and data processing by running an application stored in the memory 502.
  • the display screen 503 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 504 is electrically connected to the display screen 503 for controlling the display screen 503 to display information.
  • the electronic device 500 further includes a radio frequency circuit 505, an input unit 506, an audio circuit 507, a sensor 508, and a power source 509.
  • the processor 501 is electrically connected to the radio frequency circuit 505, the input unit 506, the audio circuit 507, the sensor 508, and the power source 509, respectively.
  • the radio frequency circuit 505 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the input unit 506 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 506 can include a fingerprint identification module.
  • the audio circuit 507 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Sensor 508 is used to collect external environmental information.
  • Sensor 508 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
  • Power source 509 is used to power various components of electronic device 500.
  • the power supply 509 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the electronic device sets a function level to a function in an application, receives a shutdown instruction of the application, and acquires, according to the instruction, an wake-up feature of the application to wake up the system by using a wake-up lock within a preset time period.
  • the function can reduce the power consumption of the electronic device, thereby improving the battery life of the electronic device.
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by the processor in the steps in any of the foregoing embodiments.
  • the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or optical disk.

Landscapes

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

Abstract

L'invention a trait à un procédé d'arrêt de programme d'application, qui comprend : la définition de niveaux de fonctions pour des fonctions dans un programme d'application (S101), la réception d'une instruction d'arrêt du programme d'application, et, conformément à l'instruction, l'obtention d'une caractéristique de réveil du programme d'application réveillant un système par l'intermédiaire d'un verrou de réveil au cours d'une période prédéfinie (S102), selon la caractéristique de réveil, l'obtention d'un premier niveau de fonction cible (S103), et, selon le premier niveau de fonction cible, l'arrêt de fonctions correspondantes dans le programme d'application (S104). L'invention concerne également un appareil d'arrêt de programme d'application, un support d'informations et un dispositif électronique.
PCT/CN2017/086468 2016-05-31 2017-05-29 Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique Ceased WO2017206871A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379851.0 2016-05-31
CN201610379851.0A CN106095412B (zh) 2016-05-31 2016-05-31 一种应用程序的关闭方法和装置

Publications (1)

Publication Number Publication Date
WO2017206871A1 true WO2017206871A1 (fr) 2017-12-07

Family

ID=57230637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086468 Ceased WO2017206871A1 (fr) 2016-05-31 2017-05-29 Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique

Country Status (2)

Country Link
CN (1) CN106095412B (fr)
WO (1) WO2017206871A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099404A (zh) * 2018-01-30 2019-08-06 中国移动通信有限公司研究院 一种续航时长测试方法及装置
CN111723016A (zh) * 2020-06-24 2020-09-29 湖南国科微电子股份有限公司 文件关闭方法、装置、电子设备和存储介质
CN112997150A (zh) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 应用程序的管理方法、装置、存储介质及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095412B (zh) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 一种应用程序的关闭方法和装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040100457A1 (en) * 2002-11-21 2004-05-27 Mandle Thomas C. Method and system for switching power and loading and closing applications in a portable computing device using a removable pointing device
CN104199669A (zh) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 对应用程序的进程进行管理的方法及装置
CN104866069A (zh) * 2015-06-12 2015-08-26 广东小天才科技有限公司 一种自动清理后台应用程序的方法及装置
CN106020907A (zh) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置
CN106095412A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置
CN106095054A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176842B (zh) * 2013-03-15 2016-04-27 广东欧珀移动通信有限公司 后台进程管理方法及其移动终端
CN104298336B (zh) * 2013-07-19 2018-09-14 贝壳网际(北京)安全技术有限公司 移动终端及其应用程序的控制方法和装置
US9547363B2 (en) * 2014-07-16 2017-01-17 Mediatek Inc. Power-saving method and associated electronic device
CN105100429B (zh) * 2015-06-08 2018-03-06 北京金山安全软件有限公司 确定移动终端剩余电量使用时间的方法和装置
CN105260117B (zh) * 2015-09-30 2020-11-10 北京小米移动软件有限公司 应用程序控制方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040100457A1 (en) * 2002-11-21 2004-05-27 Mandle Thomas C. Method and system for switching power and loading and closing applications in a portable computing device using a removable pointing device
CN104199669A (zh) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 对应用程序的进程进行管理的方法及装置
CN104866069A (zh) * 2015-06-12 2015-08-26 广东小天才科技有限公司 一种自动清理后台应用程序的方法及装置
CN106020907A (zh) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置
CN106095412A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置
CN106095054A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种应用程序的关闭方法和装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099404A (zh) * 2018-01-30 2019-08-06 中国移动通信有限公司研究院 一种续航时长测试方法及装置
CN110099404B (zh) * 2018-01-30 2022-07-15 中国移动通信有限公司研究院 一种续航时长测试方法及装置
CN112997150A (zh) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 应用程序的管理方法、装置、存储介质及电子设备
CN112997150B (zh) * 2018-12-29 2023-12-08 深圳市欢太科技有限公司 应用程序的管理方法、装置、存储介质及电子设备
CN111723016A (zh) * 2020-06-24 2020-09-29 湖南国科微电子股份有限公司 文件关闭方法、装置、电子设备和存储介质
CN111723016B (zh) * 2020-06-24 2024-06-04 湖南国科微电子股份有限公司 文件关闭方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN106095412B (zh) 2019-07-16
CN106095412A (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017206878A1 (fr) Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique
WO2021066293A1 (fr) Dispositif électronique pour synchroniser une modification entre des écrans et procédé de fonctionnement de celui-ci
WO2018161571A1 (fr) Procédé, dispositif, support et appareil électronique permettant de régler dynamiquement le niveau d'économie d'énergie d'un terminal
WO2017206862A1 (fr) Procédé et appareil de traitement basés sur un verrouillage d'écran lumineux, support de stockage, et dispositif électronique
WO2018076866A1 (fr) Procédé de traitement de données, dispositif, support de stockage, dispositif électronique, et serveur
WO2018161585A1 (fr) Procédé et appareil de commande de fréquence de trames d'un dispositif électronique, support de stockage et dispositif électronique
WO2018161578A1 (fr) Procédé, dispositif, support de stockage et appareil électronique permettant de régler dynamiquement la fréquence de rafraîchissement d'écran
WO2017206865A1 (fr) Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique
WO2017206883A1 (fr) Procédé et appareil de traitement d'applications, support de stockage, et dispositif électronique
WO2019164323A1 (fr) Dispositif électronique et procédé de commande de stockage de contenu affiché sur un écran d'affichage
WO2017206875A1 (fr) Procédé et appareil de traitement basés sur un paquet de données, support de stockage et dispositif électronique
WO2018076818A1 (fr) Procédé de sauvegarde de données, appareil, dispositif électronique, support de stockage et système
WO2017206870A1 (fr) Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique
WO2018166199A1 (fr) Procédé de réglage de niveau de précision de positionnement, dispositif, support de stockage et dispositif électronique
WO2018090822A1 (fr) Procédé et système de commande d'appareil photo de terminal mobile basée sur une montre intelligente
WO2020032636A1 (fr) Dispositif électronique pour fournir un message de notification et procédé associé
WO2017206890A1 (fr) Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique
WO2018076864A1 (fr) Procédé, appareil, support de stockage et dispositif électronique de synchronisation de données
WO2017206879A1 (fr) Procédé et appareil de traitement de programme d'application de terminal mobile, support de stockage, et dispositif électronique
WO2018161586A1 (fr) Procédé et appareil permettant de reconnaître un scénario d'affichage d'un terminal mobile, support de stockage et dispositif électronique
WO2017206867A1 (fr) Procédé et appareil d'arrêt de capteurs, support d'informations, et dispositif électronique
WO2018161602A1 (fr) Procédé et appareil de commande de fréquence d'image d'un dispositif électronique, support d'informations et dispositif électronique
WO2019221562A1 (fr) Dispositif électronique et procédé de commande de dispositif électronique
WO2019039707A1 (fr) Procédé de configuration d'action d'un dispositif externe et dispositif électronique prenant en charge celui-ci
WO2017206871A1 (fr) Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805816

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805816

Country of ref document: EP

Kind code of ref document: A1