CN106095492A - Method and device for closing an application program - Google Patents
Method and device for closing an application program Download PDFInfo
- Publication number
- CN106095492A CN106095492A CN201610383705.5A CN201610383705A CN106095492A CN 106095492 A CN106095492 A CN 106095492A CN 201610383705 A CN201610383705 A CN 201610383705A CN 106095492 A CN106095492 A CN 106095492A
- Authority
- CN
- China
- Prior art keywords
- function
- level
- closing
- functions
- function level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种应用程序的关闭方法和装置,该方法包括:对应用程序中的函数设置函数级别;接收用户针对终端的第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带第一操作对应的第一操作信息;根据第一函数关闭请求获取相应的第一目标函数级别;根据第一目标函数级别关闭应用程序中相应的函数;该方案可以基于用户对终端的操作关闭应用程序中相应的函数,而非直接关闭应用程序,相对现有技术而言,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。
An embodiment of the present invention discloses a method and device for closing an application, the method comprising: setting a function level for a function in the application; receiving a first function closing request triggered by a first operation of a user on a terminal, the first function closing request carrying first operation information corresponding to the first operation; obtaining a corresponding first target function level according to the first function closing request; closing the corresponding function in the application according to the first target function level; this scheme can close the corresponding function in the application based on the user's operation on the terminal, rather than directly closing the application. Compared with the prior art, it can reduce the power consumption of the terminal while increasing the speed of restarting the application.
Description
技术领域technical field
本发明涉及终端技术领域,具体涉及一种应用程序的关闭方法和装置。The present invention relates to the field of terminal technology, in particular to a method and device for closing an application program.
背景技术Background technique
随着智能终端的发展,智能终端能够兼容的功能越来越多,不仅丰富用户生活,还给用户带来便利。随着移动终端设备已日益融入人们生活、应用功能日趋完善,给用户带来了极大便利以及提高用户体验。With the development of smart terminals, more and more functions are compatible with smart terminals, which not only enriches users' lives, but also brings convenience to users. As mobile terminal devices are increasingly integrated into people's lives and application functions are becoming more and more perfect, it brings great convenience to users and improves user experience.
为了实现各种功能以满足用户的各种需求,通常智能终端会安装各种各样的应用程序(可以简称为应用)。但是,智能终端上安装的应用程序会消耗大量的电量,降低智能终端的续航能力。In order to implement various functions to meet various needs of users, generally, various application programs (which may be referred to as applications for short) are installed on the smart terminal. However, the application programs installed on the smart terminal will consume a large amount of power, reducing the battery life of the smart terminal.
目前,为了减低智能终端电量的消耗,进而提升智能终端的续航能力,智能终端会关闭应用程序,即关闭应用程序中所有的函数(包括主函数、子函数等等);比如智能终端可以自动关闭应用程序,或者根据用户的操作来关闭应用程序;具体地,智能终端可以监测用户对智能终端的操作,然后,基于该操作关闭相应的应用程序。At present, in order to reduce the power consumption of the smart terminal and improve the battery life of the smart terminal, the smart terminal will close the application program, that is, close all functions in the application program (including main functions, sub-functions, etc.); for example, the smart terminal can automatically close the application program, or close the application program according to the user's operation; specifically, the smart terminal can monitor the user's operation on the smart terminal, and then close the corresponding application program based on the operation.
然而,目前应用程序关闭方案虽然可以降低终端电量消耗,但是由于该方案是关闭应用程序中所有的函数,如果在关闭应用程序之后,智能终端需要重新启动该应用程序,那么此时,智能终端需要重新调用该应用程序的所有函数,会导致应用程序重新启动的速度比较慢。However, although the current application closing solution can reduce the power consumption of the terminal, since the solution is to close all the functions in the application, if the smart terminal needs to restart the application after closing the application, then at this time, the smart terminal needs to Recalling all of the application's functions will cause the application to restart more slowly.
发明内容Contents of the invention
本发明实施例提供一种应用程序的关闭方法和装置,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。Embodiments of the present invention provide a method and device for closing an application, which can increase the speed of restarting the application while reducing power consumption of the terminal.
本发明实施例提供一种应用程序的关闭方法,包括:An embodiment of the present invention provides a method for closing an application, including:
对应用程序中的函数设置函数级别;Set the function level on functions in the application;
接收用户针对终端的第一操作所触发的第一函数关闭请求,所述第一函数关闭请求携带所述第一操作对应的第一操作信息;receiving a first function closing request triggered by a user's first operation on the terminal, where the first function closing request carries first operation information corresponding to the first operation;
根据所述第一函数关闭请求获取相应的第一目标函数级别;Obtaining a corresponding first objective function level according to the first function closing request;
根据所述第一目标函数级别关闭所述应用程序中相应的函数。Closing corresponding functions in the application program according to the first target function level.
进一步地,所述对应用程序中的函数设置函数级别的步骤具体包括:Further, the step of setting the function level of the function in the application specifically includes:
获取应用程序中函数之间的调用关系;Obtain the call relationship between functions in the application;
根据所述调用关系对应用程序中的函数设置函数级别。Set the function level for the functions in the application program according to the calling relationship.
进一步地,所述第一目标函数级别低于最高函数级别;所述根据所述第一目标函数级别关闭所述应用程序中相应的函数的步骤具体包括:Further, the first objective function level is lower than the highest function level; the step of closing the corresponding function in the application according to the first objective function level specifically includes:
判断所述第一目标函数级别是否为最低函数级别;judging whether the first objective function level is the lowest function level;
若是,则关闭所述应用程序中所述第一目标函数级别对应的函数;If so, then close the function corresponding to the first objective function level in the application program;
若否,则关闭所述应用程序中所述第一目标函数级别对应的函数,以及函数级别低于所述第一目标函数级别的函数。If not, close the functions corresponding to the first objective function level in the application program, and the functions whose function levels are lower than the first objective function level.
进一步地,在根据所述第一目标函数级别关闭所述应用程序中相应的函数之后,所述关闭方法还包括:Further, after closing the corresponding function in the application according to the first target function level, the closing method further includes:
接收用户针对终端的第二操作所触发的第二函数关闭请求,所述第二函数关闭请求携带所述第二操作对应的第二操作信息;receiving a second function closing request triggered by a user's second operation on the terminal, where the second function closing request carries second operation information corresponding to the second operation;
根据所述第二操作信息获取相应的第二目标函数级别,所述第二目标函数级别高于所述第一目标函数级别;Acquiring a corresponding second objective function level according to the second operation information, the second objective function level being higher than the first objective function level;
根据所述第二目标函数级别关闭所述应用程序中相应的剩余未关闭函数。Closing corresponding remaining unclosed functions in the application program according to the second target function level.
进一步地,所述根据所述第二目标函数级别关闭所述应用程序中相应的剩余未关闭函数的步骤具体包括:Further, the step of closing corresponding remaining unclosed functions in the application according to the second target function level specifically includes:
判断所述第二目标函数级别是否为最高函数级别;judging whether the second objective function level is the highest function level;
若是,则关闭所述应用程序中所有的剩余未关闭函数;If so, then close all remaining unclosed functions in the application program;
若否,则关闭所述剩余未关闭函数中所述第二目标函数级别对应的函数,以及函数级别低于所述第二目标函数级别的函数。If not, close the functions corresponding to the second objective function level among the remaining unclosed functions, and the functions whose function levels are lower than the second objective function level.
进一步地,在判断所述第二目标函数不为最高函数级别,以及关闭所述应用程序中相应的剩余未关闭函数之后,所述关闭方法还包括:Further, after judging that the second objective function is not at the highest function level and closing the corresponding remaining unclosed functions in the application program, the closing method further includes:
接收用户针对终端的第三操作所触发的第三函数关闭请求,所述第三函数关闭请求携带所述第三操作对应的第三操作信息;receiving a third function closing request triggered by a user's third operation on the terminal, where the third function closing request carries third operation information corresponding to the third operation;
根据所述第三函数关闭请求获取相应的第三目标函数级别,所述第三目标函数级别高于所述第二目标函数级别;Obtaining a corresponding third objective function level according to the third function closing request, where the third objective function level is higher than the second objective function level;
关闭所述应用程序中所有的剩余未关闭函数。Closes all remaining open functions in the application.
相应地,本发明实施例还提供了一种应用程序的关闭装置,包括:设置模块、第一接收模块、第一获取模块和第一关闭模块;Correspondingly, an embodiment of the present invention also provides a device for closing an application program, including: a setting module, a first receiving module, a first acquiring module, and a first closing module;
所述设置模块,用于对应用程序中的函数设置函数级别;The setting module is used to set the function level of the function in the application program;
所述第一接收模块,用于接收用户针对终端的第一操作所触发的第一函数关闭请求,所述第一函数关闭请求携带所述第一操作对应的第一操作信息;The first receiving module is configured to receive a first function closing request triggered by a user's first operation on the terminal, where the first function closing request carries first operation information corresponding to the first operation;
所述第一获取模块,用于根据所述第一函数关闭请求获取相应的第一目标函数级别;The first acquiring module is configured to acquire a corresponding first objective function level according to the first function closing request;
所述第一关闭模块,用于根据所述第一目标函数级别关闭所述应用程序中相应的函数。The first closing module is configured to close corresponding functions in the application program according to the first target function level.
进一步地,所述设置模块具体用于获取应用程序中函数之间的调用关系;根据所述调用关系对应用程序中的函数设置函数级别。Further, the setting module is specifically configured to acquire the calling relationship between functions in the application program; and set the function level for the functions in the application program according to the calling relationship.
进一步地,所述第一目标函数级别低于最高函数级别;Further, the first objective function level is lower than the highest function level;
所述第一关闭模块,具体用于判断所述第一目标函数级别是否为最低函数级别;若是,则关闭所述应用程序中所述第一目标函数级别对应的函数;若否,则关闭所述应用程序中所述第一目标函数级别对应的函数,以及函数级别低于所述第一目标函数级别的函数。The first closing module is specifically used to judge whether the first objective function level is the lowest function level; if so, close the function corresponding to the first objective function level in the application; if not, close all A function corresponding to the first objective function level in the application program, and a function whose function level is lower than the first objective function level.
进一步地,所述装置还包括:第二接收模块、第二获取模块和第二关闭模块;Further, the device further includes: a second receiving module, a second acquiring module, and a second closing module;
所述第二接收模块,用于在第一关闭模块根据所述第一目标函数级别关闭所述应用程序中相应的函数之后,接收用户针对终端的第二操作所触发的第二函数关闭请求,所述第二函数关闭请求携带所述第二操作对应的第二操作信息;The second receiving module is configured to, after the first closing module closes the corresponding function in the application program according to the first target function level, receive a second function closing request triggered by the user's second operation on the terminal, The second function shutdown request carries second operation information corresponding to the second operation;
所述第二获取模块,用于根据所述第二操作信息获取相应的第二目标函数级别,所述第二目标函数级别高于所述第一目标函数级别;The second acquiring module is configured to acquire a corresponding second objective function level according to the second operation information, and the second objective function level is higher than the first objective function level;
所述第二关闭模块,用于根据所述第二目标函数级别关闭所述应用程序中相应的剩余未关闭函数。The second closing module is configured to close corresponding remaining unclosed functions in the application program according to the second target function level.
本发明实施例采用对应用程序中的函数设置函数级别,然后,接收用户通过对终端进行第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带用户对该终端进行第一操作的第一操作信息,根据该第一函数关闭请求获取相应的第一目标函数级别,根据该第一目标函数级别关闭该应用程序中相应的函数;该方案可以基于用户对终端的操作关闭应用程序中相应的函数,可以降低终端的电量消耗,且由于该方案并没有直接关闭应用程序,而是关闭应用程序中相应的函数,因此,在需要重新启动该应用程序时,需要重新调用并且执行关闭的函数即可,相对现有技术而言,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。In the embodiment of the present invention, the function level is set for the functions in the application program, and then the first function closing request triggered by the user performing the first operation on the terminal is received, and the first function closing request carries the user's first operation on the terminal According to the first operation information of the first function closing request, the corresponding first target function level is obtained, and the corresponding function in the application is closed according to the first target function level; the solution can close the application based on the user's operation on the terminal The corresponding function in the application can reduce the power consumption of the terminal, and because this solution does not directly close the application program, but closes the corresponding function in the application program, so when the application program needs to be restarted, it needs to be called again and execute the shutdown The function only needs to be used. Compared with the prior art, the restart speed of the application program can be increased while reducing the power consumption of the terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例一提供的应用程序关闭方法的流程示意图;FIG. 1 is a schematic flowchart of a method for closing an application provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的应用程序关闭方法的流程示意图;FIG. 2 is a schematic flowchart of a method for closing an application provided in Embodiment 2 of the present invention;
图3a是本发明实施例三提供的第一种应用程序关闭装置的结构示意图;Fig. 3a is a schematic structural diagram of the first application program closing device provided by Embodiment 3 of the present invention;
图3b是本发明实施例三提供的第二种应用程序关闭装置的结构示意图。Fig. 3b is a schematic structural diagram of a second application program closing device provided by Embodiment 3 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供一种应用程序的关闭方法和装置。以下将分别进行详细说明。Embodiments of the present invention provide a method and device for closing an application program. The details will be described respectively below.
实施例一、Embodiment one,
本实施例将从应用程序关闭的角度进行描述,该应用程序关闭具体可以集成在终端中,该终端可以为智能手机、平板电脑等设备。This embodiment will be described from the perspective of closing an application program. Specifically, the closing of an application program may be integrated in a terminal, and the terminal may be a device such as a smart phone or a tablet computer.
一种应用程序关闭方法,包括:对应用程序中的函数设置函数级别;接收用户针对终端的第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带第一操作对应的第一操作信息;根据第一函数关闭请求获取相应的第一目标函数级别;根据第一目标函数级别关闭应用程序中相应的函数。A method for closing an application program, comprising: setting a function level for a function in an application program; receiving a first function closing request triggered by a user's first operation on a terminal, the first function closing request carrying a first function corresponding to the first operation Operation information: obtain the corresponding first objective function level according to the first function closing request; close the corresponding function in the application program according to the first objective function level.
如图1所示,应用程序关闭方法,具体流程可以如下:As shown in Figure 1, the application closing method, the specific process can be as follows:
101、对应用程序中的函数设置函数级别。101. Set the function level for the functions in the application program.
具体地,该应用程序可以是后台运行的应用程序,如后台运行的微信、QQ等;一般地,在编写一个能运行在操作系统上的程序时,都需要一个主函数。主函数意味着建立一个独立进程,且该进程成为了程序的入口,对其它各子函数(在某些OOP语言里称作方法,比如Java)进行调用,当然,其它被调用的子函数也可以再去调用更多函数,这样整个程序的运行轨迹就像一种栈,可以称之为调用栈。主函数既是程序的入口,又是程序的出口,通常还可以指定一个exit code再退出,以表明程序最后的结果。Specifically, the application program may be an application program running in the background, such as WeChat, QQ, etc. running in the background; generally, when writing a program that can run on an operating system, a main function is required. The main function means to establish an independent process, and this process becomes the entry point of the program, and calls other sub-functions (called methods in some OOP languages, such as Java). Of course, other called sub-functions can also be Then call more functions, so that the running track of the entire program is like a kind of stack, which can be called the call stack. The main function is both the entry and the exit of the program. Usually, an exit code can be specified before exiting to indicate the final result of the program.
由于主函数肩负着入口和出口的重任,为了维护和扩展,主函数应该尽量简洁,具体的实现细节可以封装到被调用的子函数里面去。因此,在对应用程序中的函数设置函数级别时,可以基于应用程序中各函数之间的调用关系对函数级别进行设置;也即步骤“对应用程序中的函数设置函数级别”具体可以包括:Since the main function shoulders the heavy responsibility of entry and exit, in order to maintain and expand, the main function should be as concise as possible, and the specific implementation details can be encapsulated in the called sub-function. Therefore, when setting the function level for the functions in the application program, the function level can be set based on the calling relationship between the functions in the application program; that is, the step "setting the function level for the functions in the application program" can specifically include:
获取应用程序中函数之间的调用关系;Obtain the call relationship between functions in the application;
根据该调用关系对应用程序中的函数设置函数级别。Sets the function level for functions in the application according to this call relationship.
比如,可以将主函数设置为一级(最高级)函数,可以将该主函数直接调用的子函数设置为二级函数,可以将该二级函数直接调用的子函数设置为三级函数,可以将该三级函数直接调用的子函数设置为四级函数,以此类推;又或者,可以进行逆序排列,假设有三个层次的函数,则可以将主函数设置为三级(最高级)函数,将主函数直接调用的子函数设置为二级函数,将该第二级别的函数调用的子函数设置为一级函数。For example, the main function can be set as a first-level (highest-level) function, the sub-function directly called by the main function can be set as a second-level function, and the sub-function directly called by the second-level function can be set as a third-level function. Set the sub-function directly called by the third-level function as a fourth-level function, and so on; or, it can be arranged in reverse order, assuming there are three levels of functions, then the main function can be set as a third-level (highest level) function, Set the sub-function directly called by the main function as the second-level function, and set the sub-function called by the second-level function as the first-level function.
在具体实施过程中,该应用程序中函数级别的表现形式可以有多种,比如,可以用数字形式、字母形式等指示函数级别;以数字形式为例,如以1代表一级函数,2代表二级函数,3代表三级函数,其中,数字越大代表的级别越高,或者数字越小代表的级别越高以此类推。In the specific implementation process, the function level in the application can be expressed in many ways, for example, the function level can be indicated in the form of numbers, letters, etc.; taking the number form as an example, for example, 1 represents the first-level function, and 2 represents the function level. The second-level function, 3 represents the third-level function, where the larger the number, the higher the level, or the smaller the number, the higher the level, and so on.
102、接收用户针对终端的第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带第一操作对应的第一操作信息。102. Receive a first function closing request triggered by a user's first operation on the terminal, where the first function closing request carries first operation information corresponding to the first operation.
具体地,第一操作可以是用户针对终端设备的按压、敲击等触控操作,对应地,该第一操作信息可以是按压力度、按压频率等信息,或者敲击次数、敲击部位等信息;而触控的位置可以不仅限于终端显示屏,还可以是终端背部、侧面等部位,本发明对此不作具体限定。Specifically, the first operation may be a user's touch operation such as pressing or tapping on the terminal device. Correspondingly, the first operation information may be information such as pressing force and pressing frequency, or information such as the number of times of tapping and the location of tapping. The location of the touch may not be limited to the display screen of the terminal, but may also be the back, side and other parts of the terminal, which is not specifically limited in the present invention.
比如,以在终端显示屏进行按压操作为例,为了避免误操作,可以对该按压操作对应的按压压力值进行评估,判断是否满足条件,若满足条件则可以触发的第一函数关闭请求,也即,步骤“接收用户针对终端的第一操作所触发的第一函数关闭请求”具体流程可以如下:For example, taking the pressing operation on the terminal display screen as an example, in order to avoid misuse, the pressing pressure value corresponding to the pressing operation can be evaluated to determine whether the condition is met. If the condition is met, the first function can be triggered to close the request, or That is, the specific process of the step "receiving the first function shutdown request triggered by the user's first operation on the terminal" may be as follows:
接收用户针对终端的按压操作;Receive the user's pressing operation on the terminal;
获取该按压操作对应的按压压力值;Obtain the pressing pressure value corresponding to the pressing operation;
判断所述按压压力值是否大于预设阈值;judging whether the pressing pressure value is greater than a preset threshold;
若大于,则触发第一函数关闭请求。If greater than, trigger the first function to close the request.
103、根据第一函数关闭请求获取相应的第一目标函数级别。103. Acquire a corresponding first objective function level according to the first function closing request.
具体地,可以对该第一预设函数级别进行预先设置,比如,可以为用户提供一个可编辑的选择界面,可以在该界面设一个滑动控件,用于滑动显示函数级别,用户可以在该界面设定第一目标函数级别,如可以设定为二级,然后保存。在函数关闭请求被触发后,终端可以发送获取请求,调用相关进程,从相应的存储区域中获取设定的第一目标函数级别的相关数据,并将该数据返回给终端,得到第一目标函数级别为二级。Specifically, the first preset function level can be preset. For example, an editable selection interface can be provided for the user, and a sliding control can be set on the interface for slidingly displaying the function level. Set the level of the first objective function, such as can be set to level two, and then save. After the function closing request is triggered, the terminal can send an acquisition request, call the relevant process, obtain the relevant data of the set first objective function level from the corresponding storage area, and return the data to the terminal to obtain the first objective function The level is secondary.
优选地,可以基于上述操作信息获取相应的第一目标函数级别,比如,以第一操作为敲击操作、第一操作信息为敲击次数为例,可以预先将敲击次数与函数级别建立映射关系,不同敲击次数对应不同的函数级别,以得到映射关系集合,根据该映射关系集合获取相应的第一目标函数级别。Preferably, the corresponding first objective function level can be obtained based on the above operation information. For example, taking the first operation as a tap operation and the first operation information as the number of taps as an example, a mapping between the number of taps and the function level can be established in advance. Different tap times correspond to different function levels to obtain a mapping relationship set, and the corresponding first objective function level is obtained according to the mapping relationship set.
104、根据第一目标函数级别关闭应用程序中相应的函数。104. Close a corresponding function in the application program according to the first target function level.
在实际应用中,该应用程序可以是由用户预先设定的,可以进行自动处理的应用程序,以作为预设应用程序,比如,可以根据该应用程序的应用标识和预设应用标识集合判断该应用程序是否为预设应用程序;也即在根据第一目标函数级别关闭应用程序中相应的函数之前,还可以包括:In practical applications, the application program may be preset by the user and can be automatically processed as a preset application program. Whether the application program is a preset application program; that is, before closing the corresponding functions in the application program according to the first objective function level, it may also include:
获取该应用程序的应用标识;Obtain the application ID of the application;
判断在预设标识集合中是否存在与该应用标识相同的样本应用标识;Judging whether there is a sample application identifier identical to the application identifier in the preset identifier set;
若是,则执行根据第一目标函数级别关闭应用程序中相应的函数。If yes, execute the corresponding function in the application program according to the level of the first objective function.
为了可以减少终端功耗,同时又可以让应用程序保持正常运行,可以将该第一目标函数级别设置低于最高函数级别,以保持应用程序主函数不被关闭;而在关闭相应的函数时,可以在关闭第一目标级别的函数的同时,还可以关闭其他较低级别的函数,也即步骤“根据第一目标函数级别关闭应用程序中相应的函数”的具体流程可以如下:In order to reduce the power consumption of the terminal while keeping the application running normally, the first objective function level can be set lower than the highest function level, so as to keep the main function of the application from being closed; and when closing the corresponding function, While shutting down the functions at the first target level, other lower-level functions can also be shut down, that is, the specific process of the step "closing the corresponding functions in the application according to the first target function level" can be as follows:
判断第一目标函数级别是否为最低函数级别;judging whether the first objective function level is the lowest function level;
若是,则关闭应用程序中第一目标函数级别对应的函数;If so, then close the function corresponding to the first objective function level in the application program;
若否,则关闭应用程序中第一目标函数级别对应的函数,以及函数级别低于第一目标函数级别的函数。If not, close the functions corresponding to the first objective function level in the application program, and the functions whose function levels are lower than the first objective function level.
比如,以最高级别为一级为例,应用程序对应有一级函数、二级函数、三级函数、四级函数、五级函数(最低级),假设该第一目标函数级别为五级,容易得到该目标函数级别为最低函数级别,此时执行关闭五级函数;假设该第一目标函数级别为四级,则可以将四级函数、五级函数一同关闭。For example, taking the highest level as an example, the application program corresponds to a level-1 function, a level-2 function, a level-3 function, a level-4 function, and a level-5 function (the lowest level). Assuming that the level of the first objective function is level-5, it is easy It is obtained that the objective function level is the lowest function level, and at this time, the fifth-level function is closed; assuming that the first objective function level is four-level, the fourth-level function and the fifth-level function can be closed together.
为了进一步减少终端功耗,可以对终端进一步地操作,以关闭剩余函数;也即在根据第一目标函数级别关闭应用程序中相应的函数之后,还可以包括以下步骤:In order to further reduce the power consumption of the terminal, the terminal may be further operated to close the remaining functions; that is, after closing the corresponding functions in the application program according to the first objective function level, the following steps may also be included:
接收用户针对终端的第二操作所触发的第二函数关闭请求,第二函数关闭请求携带第二操作对应的第二操作信息;receiving a second function closing request triggered by a user's second operation on the terminal, where the second function closing request carries second operation information corresponding to the second operation;
根据第二操作信息获取相应的第二目标函数级别,第二目标函数级别高于第一目标函数级别;Acquiring a corresponding second objective function level according to the second operation information, where the second objective function level is higher than the first objective function level;
根据第二目标函数级别关闭应用程序中相应的剩余未关闭函数。The corresponding remaining unclosed functions in the application program are closed according to the second objective function level.
比如,以最高级别为一级为例,应用程序对应有一级函数、二级函数、三级函数、四级函数、五级函数(最低级),若第一目标函数级别为五级,此时五级函数已被关闭,假设该第二目标函数级别为一级,则可以关闭该一级函数(即主函数),同时还可以关闭所有剩余的函数。For example, taking the highest level as an example, the application program corresponds to a level-1 function, a level-2 function, a level-3 function, a level-4 function, and a level-5 function (the lowest level). If the level of the first objective function is level-5, then The fifth-level function has been closed. Assuming that the second objective function level is the first-level function, the first-level function (ie, the main function) can be closed, and all remaining functions can also be closed at the same time.
可选地,步骤“根据第二目标函数级别关闭应用程序中相应的剩余未关闭函数”具体流程可以如下:Optionally, the specific flow of the step "closing the corresponding remaining unclosed functions in the application according to the level of the second objective function" may be as follows:
判断第二目标函数级别是否为最高函数级别;judging whether the second objective function level is the highest function level;
若是,则关闭应用程序中所有的剩余未关闭函数;If so, close all remaining unclosed functions in the application;
若否,则关闭剩余未关闭函数中第二目标函数级别对应的函数,以及函数级别低于第二目标函数级别的函数。If not, close the functions corresponding to the second objective function level among the remaining unclosed functions, and the functions whose function levels are lower than the second objective function level.
在实际应用中,为了可以让应用程序保持正常运行,同时减少终端功耗,可以关闭剩余函数中函数级别高于第一目标函数级别,同时又低于最高函数级别的函数,比如,仍以最高级别为一级为例,应用程序对应有一级函数、二级函数、三级函数、四级函数、五级函数(最低级),若第一目标函数级别为五级,此时五级函数已被关闭,假设该第二目标函数级别为三级,则可以关闭三级函数和四级函数。In practical applications, in order to keep the application running normally and reduce the power consumption of the terminal, it is possible to close the functions whose function level is higher than the first objective function level and lower than the highest function level in the remaining functions, for example, still use the highest Take level one as an example, the application program corresponds to functions of level one, level two, level three, level four, and level five (the lowest level). If the level of the first objective function is level five, the level five functions are already is closed, assuming that the level of the second objective function is three, then the third-level function and the fourth-level function can be closed.
优选地,为了更进一步地减少终端功耗,可以将剩余的所有函数关闭,以关闭对应的应用程序;也即在判断第二目标函数不为最高函数级别,以及关闭应用程序中相应的剩余未关闭函数之后,还可以包括以下步骤:Preferably, in order to further reduce the power consumption of the terminal, all the remaining functions can be closed to close the corresponding application; that is, when judging that the second target function is not at the highest function level, and closing the corresponding remaining unused functions in the application After closing the function, you can also include the following steps:
接收用户针对终端的第三操作所触发的第三函数关闭请求,第三函数关闭请求携带第三操作对应的第三操作信息;receiving a third function closing request triggered by a user's third operation on the terminal, where the third function closing request carries third operation information corresponding to the third operation;
根据第三函数关闭请求获取相应的第三目标函数级别,第三目标函数级别高于第二目标函数级别;Obtaining a corresponding third objective function level according to the third function closing request, where the third objective function level is higher than the second objective function level;
关闭应用程序中所有的剩余未关闭函数。Closes all remaining unclosed functions in the application.
比如,以最高级别为一级为例,应用程序对应有一级函数、二级函数、三级函数、四级函数、五级函数(最低级),若第二目标函数级别为四级,第一目标函数级别为五级,此时,四级函数、五级函数已被关闭,假设第三目标函数级别为一级,则可以关闭应用程序中所有的剩余未关闭函,包括一级函数、二级函数、三级函数;假设第三目标函数级别为三级,还是可以关闭应用程序中所有的剩余未关闭函,包括一级函数、二级函数、三级函数。For example, taking the highest level as an example, the application program corresponds to a level-1 function, a level-2 function, a third-level function, a fourth-level function, and a fifth-level function (the lowest level). If the second objective function level is level-4, the first level The objective function level is level 5. At this time, the level 4 and level 5 functions have been closed. Assuming that the level 3 objective function is level 1, all remaining unclosed functions in the application can be closed, including level 1 functions, level 2 First-level function, third-level function; assuming that the third target function level is third-level, it is still possible to close all remaining unclosed functions in the application program, including first-level functions, second-level functions, and third-level functions.
由上可知,本发明实施例提供的应用程序的关闭方法,采用对应用程序中的函数设置函数级别,然后,接收用户通过对终端进行第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带用户对该终端进行第一操作的第一操作信息,根据该第一函数关闭请求获取相应的第一目标函数级别,根据该第一目标函数级别关闭该应用程序中相应的函数;该方案可以基于用户对终端的操作关闭应用程序中相应的函数,可以降低终端的电量消耗,且由于该方案并没有直接关闭应用程序,而是关闭应用程序中相应的函数,因此,在需要重新启动该应用程序时,需要重新调用并且执行关闭的函数即可,相对现有技术而言,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。As can be seen from the above, the method for closing an application program provided by the embodiment of the present invention adopts setting a function level for a function in the application program, and then receiving a first function closing request triggered by the user through a first operation on the terminal. The function closing request carries first operation information that the user performs a first operation on the terminal, obtains a corresponding first target function level according to the first function closing request, and closes a corresponding function in the application program according to the first target function level; This solution can close the corresponding functions in the application program based on the user's operation on the terminal, which can reduce the power consumption of the terminal, and because the solution does not directly close the application program, but closes the corresponding function in the application program, therefore, when it is necessary to restart When starting the application program, it is only necessary to call and execute the closed function again. Compared with the prior art, the restart speed of the application program can be improved while reducing the power consumption of the terminal.
实施例二、Embodiment two,
根据实施例一所描述的方法,以下将举例作进一步详细说明。According to the method described in Embodiment 1, an example will be given below for further detailed description.
在本实施例中,将以该应用程序关闭装置具体集成在移动终端,在后台运行的应用程序为微信,最高函数级别为一级为例进行详细描述。In this embodiment, it will be described in detail by taking the application program closing device integrated in the mobile terminal, the application program running in the background as WeChat, and the highest function level as Level 1 as an example.
需要说明的是,在本实施例中,微信对应的函数包括有一级(最高级)函数、二级函数、三级函数、四级函数、五级(最低级)函数。It should be noted that, in this embodiment, the functions corresponding to WeChat include first-level (highest level) functions, second-level functions, third-level functions, fourth-level functions, and fifth-level (lowest level) functions.
如图2所示,一种应用程序关闭方法,具体流程可以如下:As shown in Figure 2, a method for closing an application program, the specific process may be as follows:
201、移动终端对应用程序中的函数设置函数级别。201. The mobile terminal sets a function level for a function in an application program.
具体地,在对应用程序中的函数设置函数级别时,可以基于应用程序中各函数之间的调用关系对函数级别进行设置;也即步骤“对应用程序中的函数设置函数级别”具体可以包括:Specifically, when setting the function level for the functions in the application program, the function level can be set based on the call relationship between the functions in the application program; that is, the step "setting the function level for the functions in the application program" can specifically include :
获取应用程序中函数之间的调用关系;Obtain the call relationship between functions in the application;
根据该调用关系对应用程序中的函数设置函数级别。Sets the function level for functions in the application according to this call relationship.
比如,可以将主函数设置为一级函数,可以将该主函数直接调用的子函数设置为二级函数,可以将该二级函数直接调用的子函数设置为三级函数,可以将该三级函数直接调用的子函数设置为四级函数,以此类推。For example, the main function can be set as a first-level function, the sub-function directly called by the main function can be set as a second-level function, the sub-function directly called by the second-level function can be set as a third-level function, and the third-level function can be set as a function. The sub-function directly called by the function is set as a fourth-level function, and so on.
在具体实施过程中,该应用程序中函数级别的表现形式可以有多种,比如,可以用数字形式指示函数级别,如以1代表一级函数,2代表二级函数,3代表三级函数,或者,可以用字母形式指示函数级别,如以A代表一级函数,B代表二级函数,C代表三级函数等。In the specific implementation process, the function level in the application can be represented in various forms. For example, the function level can be indicated in digital form, such as 1 for a first-level function, 2 for a second-level function, and 3 for a third-level function. Alternatively, the function level can be indicated in the form of letters, such as A for the first-level function, B for the second-level function, C for the third-level function, and so on.
202、移动终端接收用户的第一操作所触发的第一函数关闭请求,根据第一函数关闭请求关闭应用程序中最低函数级别的函数。202. The mobile terminal receives a first function closing request triggered by a first user operation, and closes a function of the lowest function level in the application program according to the first function closing request.
具体地,第一操作可以是用户针对终端设备的按压、敲击等触控操作,为了避免误操作,其中,该第一函数关闭请求可以携带第一操作对应的第一操作信息,比如按压力度、敲击次数等。Specifically, the first operation may be a user's touch operation such as pressing or tapping on the terminal device. In order to avoid misoperation, the first function closing request may carry the first operation information corresponding to the first operation, such as pressing pressure , number of taps, etc.
为了避免误操作而触发第一函数关闭请求,可以对该操作信息进行判断,以敲击次数为例,可以判断敲击次数是否满足预设条件,比如,判断该敲击是否为连续两次的敲击,具体地,可以判断敲击次数是否为连续的两次敲击,若是,进而判断两次敲击的时间间隔是否小于预设时间间隔,若小于,则判断为连续两次的敲击,此时可以触发第一函数关闭请求。In order to avoid misoperation and trigger the first function closing request, the operation information can be judged. Taking the number of taps as an example, it can be judged whether the number of taps meets the preset conditions, for example, whether the taps are two consecutive taps Tapping, specifically, it can be judged whether the number of taps is two consecutive taps, and if so, then judge whether the time interval between the two taps is less than the preset time interval, and if it is less, it is judged as two consecutive taps , at this time, the first function may be triggered to close the request.
在具体实施过程中,接收到第一函数关闭请求,可以发送获取指令,终端可以根据该获取指令获取该与该第一函数获取请求相应的函数级别的函数进行关闭,在本实施例中设为最低函数级别的函数,即一级函数。In the specific implementation process, after receiving the first function closing request, an acquisition instruction can be sent, and the terminal can acquire the function at the function level corresponding to the first function acquisition request according to the acquisition instruction to close it. In this embodiment, it is set to Functions at the lowest function level, the first-class functions.
优选地,在关闭该一级函数之前,还可以对该一级函数对应的应用程序(即微信)进行判断,以确定是否为可以自动进行处理的预设应用程序;比如,可以获取该应用程序(即微信)的应用标识,判断在预设标识集合中是否存在与该应用标识相同的样本应用标识,若存在,则判定为微信为预设应用程序,此时可以对微信对应的一级函数进行关闭。Preferably, before closing the first-level function, the application (ie WeChat) corresponding to the first-level function can also be judged to determine whether it is a preset application that can be automatically processed; for example, the application can be obtained (i.e. WeChat) application ID, judge whether there is a sample application ID identical to the application ID in the preset ID set, and if it exists, it is determined that WeChat is the default application program. At this time, the first-level function corresponding to WeChat can be to close.
203、移动终端接收用户的第二操作所触发的第二函数关闭请求,根据第二函数关闭请求关闭应用程序中函数级别高于最低函数级别,同时低于最高函数级别的函数,及其以下级别的函数。203. The mobile terminal receives the second function closing request triggered by the user's second operation, and closes the functions whose function level is higher than the lowest function level and lower than the highest function level in the application program according to the second function closing request, and the following levels The function.
具体地,该第二函数关闭请求对应的函数等级可以由用户预先进行设定,可以是二级、三级、四级中任意一种,在执行函数关闭时,根据用户设置的函数等级,关闭的函数可以有多种,比如,可以关闭三级函数、四级函数,或者二级函数、三级函数、四级函数,而不可以是二级函数、四级函数。Specifically, the function level corresponding to the second function closing request can be preset by the user, and can be any one of level two, level three, and level four. There can be many kinds of functions, for example, you can close the third-level function, the fourth-level function, or the second-level function, the third-level function, and the fourth-level function, but not the second-level function and the fourth-level function.
204、移动终端接收用户的第三操作所触发的第三函数关闭请求,根据第三函数关闭请求关闭应用程序中所有剩余的函数。204. The mobile terminal receives a third function closing request triggered by a third operation of the user, and closes all remaining functions in the application according to the third function closing request.
比如,移动终端根据第二函数关闭请求对应关闭了二级函数和三级函数,则在接收到第三函数关闭请求后,可以关闭微信对应的所有剩余的函数,即一级函数和二级函数。For example, if the mobile terminal closes the second-level function and the third-level function correspondingly according to the second function closing request, then after receiving the third function closing request, it can close all the remaining functions corresponding to WeChat, that is, the first-level function and the second-level function .
由上可知,本发明实施例提供的应用程序的关闭方法,采用移动终端对应用程序中的函数设置函数级别,然后,接收用户的第一操作所触发的第一函数关闭请求,根据第一函数关闭请求关闭应用程序中最低函数级别的函数,再接收用户的第二操作所触发的第二函数关闭请求,根据第二函数关闭请求关闭应用程序中函数级别高于最低函数级别,同时低于最高函数级别的函数,及其以下级别的函数,最后接收用户的第三操作所触发的第三函数关闭请求,根据第三函数关闭请求关闭应用程序中所有剩余的函数;该方案可以基于用户对终端的操作关闭应用程序中相应的函数,而非直接关闭应用程序,相对现有技术而言,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。As can be seen from the above, the method for closing the application program provided by the embodiment of the present invention uses the mobile terminal to set the function level of the function in the application program, and then receives the first function closing request triggered by the first operation of the user, and then according to the first function The closing request closes the function at the lowest function level in the application, and then receives the second function closing request triggered by the user's second operation, and closes the function level in the application according to the second function closing request. Functions at the function level, and functions at the lower level, finally receive the third function closing request triggered by the user's third operation, and close all remaining functions in the application according to the third function closing request; The operation closes the corresponding function in the application program instead of directly closing the application program. Compared with the prior art, it can increase the speed of restarting the application program while reducing the power consumption of the terminal.
实施例三、Embodiment three,
为了更好地实施以上方法,本发明实施例还提供一种应用程序关闭装置,该闭装置可以集成在终端中,该终端具体可以包括手机、平板电脑、笔记本电脑等设备。如图3a所示,该应用程序关闭装置可以包括设置模块301、第一接收模块302、第一获取模块303和第一关闭模块304;如下:In order to better implement the above method, an embodiment of the present invention further provides an application closing device, which can be integrated into a terminal, and the terminal can specifically include a mobile phone, a tablet computer, a notebook computer, and the like. As shown in Figure 3a, the device for closing an application may include a setting module 301, a first receiving module 302, a first obtaining module 303 and a first closing module 304; as follows:
该设置模块301,用于对应用程序中的函数设置函数级别;The setting module 301 is used to set the function level of the function in the application program;
该第一接收模块302,用于接收用户针对终端的第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带该第一操作对应的第一操作信息;The first receiving module 302 is configured to receive a first function closing request triggered by a user's first operation on the terminal, where the first function closing request carries first operation information corresponding to the first operation;
该第一获取模块303,用于根据该第一函数关闭请求获取相应的第一目标函数级别;The first acquiring module 303 is configured to acquire the corresponding first objective function level according to the first function closing request;
该第一关闭模块304,用于根据该第一目标函数级别关闭该应用程序中相应的函数。The first closing module 304 is configured to close corresponding functions in the application program according to the first target function level.
优选地,该设置模块301具体用于获取应用程序中函数之间的调用关系;根据该调用关系对应用程序中的函数设置函数级别。Preferably, the setting module 301 is specifically configured to obtain the calling relationship between functions in the application program; and set the function level for the functions in the application program according to the calling relationship.
优选地,该第一目标函数级别低于最高函数级别;Preferably, the first objective function level is lower than the highest function level;
该第一关闭模块304,具体可以用于判断该第一目标函数级别是否为最低函数级别;若是,则关闭该应用程序中该第一目标函数级别对应的函数;若否,则关闭该应用程序中该第一目标函数级别对应的函数,以及函数级别低于该第一目标函数级别的函数。The first closing module 304 can specifically be used to judge whether the first objective function level is the lowest function level; if so, close the function corresponding to the first objective function level in the application program; if not, close the application program Among the functions corresponding to the first objective function level, and the functions whose function level is lower than the first objective function level.
优选地,如图3b所示,该装置还可以包括:第二接收模块305、第二获取模块306和第二关闭模块307;Preferably, as shown in FIG. 3b, the device may further include: a second receiving module 305, a second obtaining module 306, and a second closing module 307;
该第二接收模块305,用于在第一关闭模块根据该第一目标函数级别关闭该应用程序中相应的函数之后,接收用户针对终端的第二操作所触发的第二函数关闭请求,该第二函数关闭请求携带该第二操作对应的第二操作信息;The second receiving module 305 is configured to receive a second function closing request triggered by a user's second operation on the terminal after the first closing module closes the corresponding function in the application program according to the first target function level. The second function closing request carries the second operation information corresponding to the second operation;
该第二获取模块306,用于根据该第二操作信息获取相应的第二目标函数级别,该第二目标函数级别高于该第一目标函数级别;The second acquiring module 306 is configured to acquire a corresponding second objective function level according to the second operation information, where the second objective function level is higher than the first objective function level;
该第二关闭模块307,用于根据该第二目标函数级别关闭该应用程序中相应的剩余未关闭函数。The second closing module 307 is configured to close corresponding remaining unclosed functions in the application program according to the second target function level.
由上可知,本发明实施例提供的应用程序的关闭装置,采用设置模块301对应用程序中的函数设置函数级别,第一接收模块302接收用户通过对终端进行第一操作所触发的第一函数关闭请求,该第一函数关闭请求携带用户对该终端进行第一操作的第一操作信息,第一获取模块303根据该第一函数关闭请求获取相应的第一目标函数级别,第一关闭模块304根据该第一目标函数级别关闭该应用程序中相应的函数;该方案可以基于用户对终端的操作关闭应用程序中相应的函数,可以降低终端的电量消耗,且由于该方案并没有直接关闭应用程序,而是关闭应用程序中相应的函数,因此,在需要重新启动该应用程序时,需要重新调用并且执行关闭的函数即可,相对现有技术而言,可以在降低终端电量消耗的同时,提升应用程序重新启动的速度。It can be seen from the above that the device for closing the application program provided by the embodiment of the present invention uses the setting module 301 to set the function level of the function in the application program, and the first receiving module 302 receives the first function triggered by the user through the first operation on the terminal. Close request, the first function close request carries the first operation information of the user performing the first operation on the terminal, the first acquisition module 303 acquires the corresponding first target function level according to the first function close request, the first close module 304 Close the corresponding function in the application program according to the first objective function level; this solution can close the corresponding function in the application program based on the user's operation on the terminal, which can reduce the power consumption of the terminal, and because the solution does not directly close the application program , but to close the corresponding function in the application program. Therefore, when the application program needs to be restarted, the closed function needs to be called again and executed. Compared with the existing technology, it can reduce the power consumption of the terminal while improving How fast the application restarts.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. For the specific implementation of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read OnlyMemory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor in the terminal, and the execution process may include the flow of the embodiment of the information publishing method. Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
以上对本发明实施例提供的一种应用程序的关闭方法和装置进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for closing an application program provided by the embodiment of the present invention have been described in detail above. Its functional modules can be integrated into one processing chip, or each module can exist separately physically, or there can be two or more than two Modules are integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; meanwhile, for those skilled in the art, according to the present invention Thoughts, specific implementation methods and scope of application all have changes. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383705.5A CN106095492B (en) | 2016-05-31 | 2016-05-31 | Application program closing method and device |
PCT/CN2017/086482 WO2017206885A1 (en) | 2016-05-31 | 2017-05-29 | Application program shutdown method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383705.5A CN106095492B (en) | 2016-05-31 | 2016-05-31 | Application program closing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095492A true CN106095492A (en) | 2016-11-09 |
CN106095492B CN106095492B (en) | 2017-11-07 |
Family
ID=57447964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610383705.5A Expired - Fee Related CN106095492B (en) | 2016-05-31 | 2016-05-31 | Application program closing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106095492B (en) |
WO (1) | WO2017206885A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850947A (en) * | 2016-12-15 | 2017-06-13 | 广州视源电子科技股份有限公司 | Control method and device for boot animation |
WO2017206885A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Application program shutdown method and apparatus, storage medium, and electronic device |
WO2017206866A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Application program shutdown method and apparatus, storage medium, and electronic device |
WO2017206868A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
WO2017206869A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
CN112135294A (en) * | 2020-09-21 | 2020-12-25 | Oppo广东移动通信有限公司 | Wireless encryption method and client terminal device thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
US20140325204A1 (en) * | 2013-04-25 | 2014-10-30 | Sky Socket, Llc | Device Management Macros |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866069A (en) * | 2015-06-12 | 2015-08-26 | 广东小天才科技有限公司 | Method and device for automatically cleaning background application program |
CN105278370B (en) * | 2015-09-30 | 2018-03-20 | 小米科技有限责任公司 | Energy-saving mode open method and device |
CN106020907B (en) * | 2016-05-31 | 2019-12-03 | Oppo广东移动通信有限公司 | Method and device for closing application program |
CN106095492B (en) * | 2016-05-31 | 2017-11-07 | 广东欧珀移动通信有限公司 | Application program closing method and device |
CN106020910B (en) * | 2016-05-31 | 2017-11-17 | 广东欧珀移动通信有限公司 | The method for closing and device of a kind of application program |
-
2016
- 2016-05-31 CN CN201610383705.5A patent/CN106095492B/en not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086482 patent/WO2017206885A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
US20140325204A1 (en) * | 2013-04-25 | 2014-10-30 | Sky Socket, Llc | Device Management Macros |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017206885A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Application program shutdown method and apparatus, storage medium, and electronic device |
WO2017206866A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Application program shutdown method and apparatus, storage medium, and electronic device |
WO2017206868A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
WO2017206869A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Function shutdown method and apparatus, storage medium, and electronic device |
CN106850947A (en) * | 2016-12-15 | 2017-06-13 | 广州视源电子科技股份有限公司 | Control method and device for boot animation |
CN112135294A (en) * | 2020-09-21 | 2020-12-25 | Oppo广东移动通信有限公司 | Wireless encryption method and client terminal device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106095492B (en) | 2017-11-07 |
WO2017206885A1 (en) | 2017-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095492B (en) | Application program closing method and device | |
CN108363593B (en) | Application program preloading method and device, storage medium and terminal | |
CN107220076B (en) | A memory recovery method and device | |
EP3160150A1 (en) | Electronic device and method for executing function using speech recognition thereof | |
CN107734616B (en) | Application program closing method and device, storage medium and electronic equipment | |
CN108108142A (en) | Voice information processing method and device, terminal equipment and storage medium | |
CN107809542A (en) | Application program control method and device, storage medium and electronic equipment | |
CN102479094A (en) | Operation method of portable communication device | |
CN104750520B (en) | A software installation method and terminal | |
CN107943534B (en) | Background application program closing method and device, storage medium and electronic equipment | |
CN111813492B (en) | Quick application display method, device, electronic device and storage medium | |
CN113574503B (en) | Actively caching transient helper action suggestions at a feature handset | |
CN108848264A (en) | Microphone control method and device, storage medium and electronic equipment | |
US20170161098A1 (en) | Method, device, and terminal for switching operating systems | |
CN110727473B (en) | Resource control method, device, system, storage medium and electronic equipment | |
CN106528335A (en) | A data backup method, device and terminal | |
CN107748697A (en) | Using method for closing, device, storage medium and electronic equipment | |
CN106020907A (en) | Application shut-down method and device | |
CN106095055B (en) | Application program closing method and device | |
CN111918386B (en) | Positioning method, positioning device, storage medium and electronic equipment | |
CN106055075A (en) | Method and device for closing sensors | |
CN108196664A (en) | Screen display method, device, storage medium and terminal | |
CN106125889B (en) | Awakening source processing method and device | |
CN107870809A (en) | Application closing method, device, storage medium and electronic equipment | |
CN107832131A (en) | Closing application program method, apparatus, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171107 |
|
CF01 | Termination of patent right due to non-payment of annual fee |