CN112612589A - Keep-alive method and device for application program - Google Patents

Keep-alive method and device for application program Download PDF

Info

Publication number
CN112612589A
CN112612589A CN202011570096.7A CN202011570096A CN112612589A CN 112612589 A CN112612589 A CN 112612589A CN 202011570096 A CN202011570096 A CN 202011570096A CN 112612589 A CN112612589 A CN 112612589A
Authority
CN
China
Prior art keywords
application program
background
mode
operating system
terminal operating
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.)
Pending
Application number
CN202011570096.7A
Other languages
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.)
Jilin Yillion Bank Co ltd
Original Assignee
Jilin Yillion Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jilin Yillion Bank Co ltd filed Critical Jilin Yillion Bank Co ltd
Priority to CN202011570096.7A priority Critical patent/CN112612589A/en
Publication of CN112612589A publication Critical patent/CN112612589A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Abstract

The application provides a keep-alive method and a keep-alive device for an application program, wherein a terminal operating system jumps to a setting page when receiving a request for changing a background running mode of the process sent by the application program, so that a user can set the background running mode of the process on the setting page.

Description

Keep-alive method and device for application program
Technical Field
The present application relates to the field of computer technologies, and in particular, to a keep-alive method and apparatus for an application program.
Background
Keep-alive means that when an app (Application program) is not in the foreground, necessary functions can be kept working continuously, for example, when an IM instant messaging Application, an information Application and the like are not in the foreground, a background is required to push messages timely, or a sports Application is required to monitor motion data of a user in real time in the background.
However, how to implement keep-alive of applications becomes a problem.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present application provide a keep-alive method and apparatus for an application program, so as to achieve the purpose of keeping the application program alive, and the technical scheme is as follows:
a keep-alive method for an application, comprising:
when receiving a request for changing the background running mode of a process, sent by an application program, a terminal operating system jumps to a setting page, wherein the setting page comprises a first option for representing the background running mode of the process;
when the terminal operating system receives the selection request for the first option from the setting page, changing the background running mode of the process of the application program into the target mode, wherein the target mode at least comprises the following steps: the operation mode is maintained.
When a request for changing the background running mode of the process, which is sent by the application program, is received, jumping to a setting page comprises the following steps:
when a request for changing the background running mode of the process, which is sent by an application program, is received, a sub-interface is output on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed;
and the terminal operating system jumps to a setting interface when receiving a selection request aiming at the sub-option in the sub-interface.
After the background running mode of the process of the application program is changed into the target mode, the method further comprises the following steps:
the terminal operating system jumps to the page of the application program to enable the terminal operating system to jump to the page of the application program, so that when the application program judges that the terminal operating system triggers the jump to the page of the application program, whether a background running mode of a process of the application program is the target mode is judged, and if the application program is the target mode, a request for starting background service is sent to the terminal operating system;
and when receiving the request for starting the background service, the terminal operating system starts the background service of the application program and enables the background to run the process of the application program according to the target mode.
A keep-alive method for an application, comprising:
the application program judges whether a background running mode of a process of the application program is a target mode, wherein the target mode at least comprises a keeping running mode;
if not, sending a request for changing the background running mode of the process to a terminal operating system, so that the terminal operating system jumps to a setting page containing a first option for representing the background running mode of the process when receiving the request for changing the background running mode of the process sent by the application program, and changes the background running mode of the process of the application program into the target mode when receiving a selection request aiming at the first option from the setting page;
if so, sending a request for starting background service to the terminal operating system, so that the terminal operating system starts the background service of the application program when receiving the request for starting the background service, and enabling the background to run the process of the application program according to the target mode.
The method further comprises the following steps:
the application program judges whether the terminal operating system triggers to jump to a page of the application program or not;
if yes, returning to the step of judging whether the background running mode of the process is the target mode.
A keep-alive device for an application, comprising:
the system comprises a first skipping module, a second skipping module and a third skipping module, wherein the first skipping module is used for skipping to a setting page when a request for changing the background running mode of a process, which is sent by an application program, is received, and the setting page comprises a first option for representing the background running mode of the process;
a changing module, configured to change a background running mode of a process of the application to the target mode when the first option selection request is received from the setting page, where the target mode at least includes: the operation mode is maintained.
The first skip module is specifically configured to:
when a request for changing the background running mode of the process, which is sent by an application program, is received, a sub-interface is output on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed;
and the terminal operating system jumps to a setting interface when receiving a selection request aiming at the sub-option in the sub-interface.
The device further comprises:
the second skip module is used for skipping to the page of the application program so that the terminal operating system skips to the page of the application program, so that when the application program judges that the page of the application program is skipped by the triggering of the terminal operating system, whether a background running mode of the process is the target mode or not is judged, and if the background running mode is the target mode, a request for starting background service is sent to the terminal operating system;
and the running module is used for starting the background service of the application program when receiving the request for starting the background service, and enabling the background to run the process of the application program according to the target mode.
A keep-alive device for an application, comprising:
the first judging module is used for judging whether a background running mode of a process is a target mode, and the target mode at least comprises a keeping running mode;
the first sending module is used for sending a request for changing the background running mode of the process to a terminal operating system if the process is in a non-target mode, so that the terminal operating system jumps to a setting page containing a first option for representing the background running mode of the process when receiving the request for changing the background running mode of the process sent by an application program, and changes the background running mode of the process of the application program into the target mode when receiving a selection request aiming at the first option from the setting page;
and the second sending module is used for sending a request for starting the background service to the terminal operating system if the terminal operating system is in the target mode, so that the terminal operating system starts the background service of the application program when receiving the request for starting the background service, and the background runs the progress of the application program according to the target mode.
The device further comprises:
and the second judgment module is used for judging whether the terminal operating system triggers to jump to the page of the application program, and if so, the first judgment module is returned to execute to judge whether the background running mode of the process is the target mode.
Compared with the prior art, the beneficial effect of this application is:
in the application, when the terminal operating system receives a request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to the setting page, so that a user can set the background running mode of the process on the setting page.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of a keep-alive method for an application program provided in embodiment 1 of the present application;
fig. 2 is a flowchart of a keep-alive method for an application provided in embodiment 2 of the present application;
fig. 3 is a flowchart of a keep-alive method for an application program according to embodiment 3 of the present application;
FIG. 4 is a flowchart of a keep-alive method for an application provided in embodiment 4 of the present application;
FIG. 5 is a flowchart of a keep-alive method for an application program according to embodiment 5 of the present application;
FIG. 6 is a schematic diagram of a logic structure of a keep-alive device of an application provided by the present application;
fig. 7 is a schematic diagram of a logic structure of a keep-alive device of another application program provided by the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, there is provided a flowchart of a keep-alive method for an application program according to embodiment 1 of the present application, where the method may be applied to a terminal operating system, as shown in fig. 1, and the method may include, but is not limited to, the following steps:
and step S11, when receiving a request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to a setting page, wherein the setting page comprises a first option for representing the background running mode of the process.
In this embodiment, the application program may be configured so that the application program has a right to apply for changing the background running mode of the process. After configuring the application, the application may initiate a request to change the background operating mode of the process when the background operating mode of the process needs to be changed.
Accordingly, the terminal operating system can jump to the setting page when receiving a request for changing the background running mode of the process sent by the application program. The setting page at least comprises a first option for setting a background running mode of the process.
After jumping to the setting page, the user can operate the first option in the setting page and set the background running mode of the process.
In this embodiment, when the terminal operating system is provided with a white list function (which may be understood as a function that allows the application program to consume power, and the running of the application program is not limited) the application program initiates a request for changing a background running mode of the process, where the request may include: the application initiates a request for adding to the white list.
Correspondingly, the terminal operating system jumps to a setting page when receiving a request for applying to add the white list initiated by the application program.
Step S12, when receiving the selection request for the first option from the setting page, the terminal operating system changes the background running mode of the process of the application program to the target mode, where the target mode at least includes: the operation mode is maintained.
When the terminal operating system changes the background running mode of the process of the application program into the keeping running mode, the process of the application program can keep running in the background, the application program can be ensured to keep necessary functions to continuously work in the background, and the keep-alive of the application program is realized.
In the application, when the terminal operating system receives a request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to the setting page, so that a user can set the background running mode of the process on the setting page.
As another alternative embodiment of the present application, referring to fig. 2, a flowchart of an embodiment 2 of a keep-alive method for an application program provided by the present application is provided, where this embodiment is mainly an extension scheme of the keep-alive method for an application program described in the above embodiment 1, as shown in fig. 2, the method may include, but is not limited to, the following steps:
and step S21, when receiving a request for changing the background running mode of the process sent by the application program, the terminal operating system outputs a sub-interface on the page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed.
When receiving a request for changing the background running mode of the process sent by an application program, a terminal operating system outputs a sub-interface on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed, so that a user can determine whether the background running mode allowing the process to be changed or not by selecting the sub-option in the sub-interface.
And step S22, when the terminal operating system receives a selection request aiming at the sub-option in the sub-interface, jumping to a setting interface, wherein the setting page comprises a first option for representing a background running mode of a process.
Step S23, when receiving the selection request for the first option from the setting page, the terminal operating system changes the background running mode of the process of the application program to the target mode, where the target mode at least includes: the operation mode is maintained.
The detailed process of step S23 can be referred to the related description of step S12 in embodiment 1, and is not repeated here.
When receiving a request for changing the background running mode of the process sent by an application program, a terminal operating system outputs a sub-interface on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed, so that a user can determine whether the background running mode allowing the process to be changed or not by selecting the sub-option in the sub-interface, the background running mode allowing the process to be changed is realized, and the user experience is improved.
As another alternative embodiment of the present application, referring to fig. 3, a flowchart of an embodiment 3 of a keep-alive method for an application program provided by the present application is provided, where this embodiment is mainly an extension scheme of the keep-alive method for an application program described in the above embodiment 1, as shown in fig. 3, the method may include, but is not limited to, the following steps:
and step S31, when receiving a request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to a setting page, wherein the setting page comprises a first option for representing the background running mode of the process.
Step S32, when receiving the selection request for the first option from the setting page, the terminal operating system changes the background running mode of the process of the application program to the target mode, where the target mode at least includes: the operation mode is maintained.
The detailed procedures of steps S31-S32 can be found in the related descriptions of steps S11-S12 in embodiment 1, and are not repeated herein.
And step S33, the terminal operating system jumps to the page of the application program, so that when the application program judges that the terminal operating system triggers the jump to the page of the application program, the application program judges whether the background running mode of the process is the target mode, and if the background running mode is the target mode, a request for starting background service is sent to the terminal operating system.
And step S34, when the terminal operating system receives the request for starting the background service, starting the background service of the application program, and enabling the background to run the process of the application program according to the target mode.
In this embodiment, after the background running mode of the process of the application program is changed to the target mode, the application program jumps to the page of the application program, so that the application program determines whether the background running mode of the process of the application program is the target mode, and confirms whether the background running mode of the process of the application program is changed successfully, if the background running mode of the process of the application program is the target mode, the application program can send a request for starting a background service to the terminal operating system, and then the terminal operating system enables the background to run the process of the application program according to the target mode, so as to ensure the reliability of the change of the background running program of the process of the application program.
Referring to fig. 4, there is provided a flowchart of a keep-alive method for an application program according to embodiment 4 of the present application, where the method may be applied to the application program, as shown in fig. 2, and the method may include, but is not limited to, the following steps:
step S41, the application program determines whether the background operation mode of the process is the target mode, where the target mode at least includes a keep operation mode.
If not, go to step S42; if yes, go to step S43.
Step S42, sending a request for changing the background running mode of the process to the terminal operating system, so that when receiving the request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to a setting page including a first option for characterizing the background running mode of the process, and when receiving a request for selecting the first option from the setting page, changes the background running mode of the process of the application program to the target mode.
The detailed procedures of steps S41-S42 can be referred to the related descriptions in the method described in any one of embodiments 1-3, and are not described herein again.
Step S43, sending a request for starting a background service to the terminal operating system, so that when the terminal operating system receives the request for starting the background service, the terminal operating system starts the background service of the application, and the background runs the process of the application according to the target mode.
As another alternative embodiment of the present application, referring to fig. 5, a flowchart of an embodiment 5 of a keep-alive method for an application program provided by the present application is provided, where this embodiment is mainly an extension scheme of the keep-alive method for an application program described in the above embodiment 4, as shown in fig. 5, the method may include, but is not limited to, the following steps:
step S51, the application program determines whether the background operation mode of the process is the target mode, where the target mode at least includes a keep operation mode.
If not, go to step S52; if yes, go to step S53.
Step S52, sending a request for changing the background running mode of the process to the terminal operating system, so that when receiving the request for changing the background running mode of the process sent by the application program, the terminal operating system jumps to a setting page including a first option for characterizing the background running mode of the process, and when receiving a request for selecting the first option from the setting page, changes the background running mode of the process of the application program to the target mode, where the target mode at least includes: the operation mode is maintained.
Step S53, sending a request for starting a background service to the terminal operating system, so that when the terminal operating system receives the request for starting the background service, the terminal operating system starts the background service of the application, and the background runs the process of the application according to the target mode.
And step S54, the application program judges whether the terminal operating system triggers to jump to the page of the application program.
If yes, the process returns to step S51.
In this embodiment, after the background running mode of the process of the application program is changed to the target mode, the application program jumps to the page of the application program, so that the application program determines whether the background running mode of the process of the application program is the target mode, and confirms whether the background running mode of the process of the application program is changed successfully, if the background running mode of the process of the application program is the target mode, the application program can send a request for starting a background service to the terminal operating system, and then the terminal operating system enables the background to run the process of the application program according to the target mode, so as to ensure the reliability of the change of the background running program of the process of the application program.
Next, a keep-alive device of an application provided by the present application is described, and the keep-alive device of an application described below and the keep-alive method of an application described above can be referred to each other.
Referring to fig. 6, the keep-alive device of the application program includes: a first skip module 100 and a change module 200.
The first skipping module 100 is configured to skip to a setting page when receiving a request for changing a background running mode of a process sent by an application, where the setting page includes a first option for characterizing the background running mode of the process;
a changing module 200, configured to, when the request for selecting the first option is received from the setting page, change a background running mode of a process of the application to the target mode, where the target mode at least includes: the operation mode is maintained.
In this embodiment, the first skip module 100 may be specifically configured to:
when a request for changing the background running mode of the process, which is sent by an application program, is received, a sub-interface is output on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed;
and the terminal operating system jumps to a setting interface when receiving a selection request aiming at the sub-option in the sub-interface.
In this embodiment, the keep-alive device of the application program may further include:
the second skip module is used for skipping to the page of the application program so that the terminal operating system skips to the page of the application program, so that when the application program judges that the page of the application program is skipped by the triggering of the terminal operating system, whether a background running mode of the process is the target mode or not is judged, and if the background running mode is the target mode, a request for starting background service is sent to the terminal operating system;
and the running module is used for starting the background service of the application program when receiving the request for starting the background service, and enabling the background to run the process of the application program according to the target mode.
In another embodiment of the present application, a keep-alive device for an application is provided, and referring to fig. 7, the keep-alive device for an application includes:
a first judging module 300, a first sending module 400 and a second sending module 500.
A first determining module 300, configured to determine whether a background running mode of a process of the first determining module is a target mode, where the target mode at least includes a keep running mode;
a first sending module 400, configured to send, if the application program is in the target mode, a request for changing a background running mode of the application program to a terminal operating system, so that the terminal operating system jumps to a setting page including a first option for characterizing the background running mode of the application program when receiving the request for changing the background running mode of the application program, and changes the background running mode of the application program to the target mode when receiving a request for selecting the first option from the setting page;
a second sending module 500, configured to send a request for starting a background service to the terminal operating system if the terminal operating system is in the target mode, so that the terminal operating system starts the background service of the application program when receiving the request for starting the background service, and the background runs the process of the application program according to the target mode.
The above apparatus may further include:
and a second determining module, configured to determine whether the terminal operating system triggers to jump to the page of the application program, and if so, return to execute the first determining module 300 to determine whether the background running mode of the process is the target mode.
It should be noted that each embodiment is mainly described as a difference from the other embodiments, and the same and similar parts between the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
The method and the device for protecting the file provided by the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A keep-alive method for an application program, comprising:
when receiving a request for changing the background running mode of a process, sent by an application program, a terminal operating system jumps to a setting page, wherein the setting page comprises a first option for representing the background running mode of the process;
when the terminal operating system receives the selection request for the first option from the setting page, changing the background running mode of the process of the application program into the target mode, wherein the target mode at least comprises the following steps: the operation mode is maintained.
2. The method of claim 1, wherein jumping to a setup page upon receiving a request sent by an application to change a background run mode of a process comprises:
when a request for changing the background running mode of the process, which is sent by an application program, is received, a sub-interface is output on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed;
and the terminal operating system jumps to a setting interface when receiving a selection request aiming at the sub-option in the sub-interface.
3. The method of claim 1, wherein after the changing the background running mode of the process of the application program to the target mode, further comprising:
the terminal operating system jumps to the page of the application program to enable the terminal operating system to jump to the page of the application program, so that when the application program judges that the terminal operating system triggers the jump to the page of the application program, whether a background running mode of a process of the application program is the target mode is judged, and if the application program is the target mode, a request for starting background service is sent to the terminal operating system;
and when receiving the request for starting the background service, the terminal operating system starts the background service of the application program and enables the background to run the process of the application program according to the target mode.
4. A keep-alive method for an application program, comprising:
the application program judges whether a background running mode of a process of the application program is a target mode, wherein the target mode at least comprises a keeping running mode;
if not, sending a request for changing the background running mode of the process to a terminal operating system, so that the terminal operating system jumps to a setting page containing a first option for representing the background running mode of the process when receiving the request for changing the background running mode of the process sent by the application program, and changes the background running mode of the process of the application program into the target mode when receiving a selection request aiming at the first option from the setting page;
if so, sending a request for starting background service to the terminal operating system, so that the terminal operating system starts the background service of the application program when receiving the request for starting the background service, and enabling the background to run the process of the application program according to the target mode.
5. The method of claim 4, further comprising:
the application program judges whether the terminal operating system triggers to jump to a page of the application program or not;
if yes, returning to the step of judging whether the background running mode of the process is the target mode.
6. A keep-alive device for an application, comprising:
the system comprises a first skipping module, a second skipping module and a third skipping module, wherein the first skipping module is used for skipping to a setting page when a request for changing the background running mode of a process, which is sent by an application program, is received, and the setting page comprises a first option for representing the background running mode of the process;
a changing module, configured to change a background running mode of a process of the application to the target mode when the first option selection request is received from the setting page, where the target mode at least includes: the operation mode is maintained.
7. The apparatus of claim 6, wherein the first hopping module is specifically configured to:
when a request for changing the background running mode of the process, which is sent by an application program, is received, a sub-interface is output on a page of the application program, wherein the sub-interface comprises a sub-option for representing the background running mode allowing the process to be changed;
and the terminal operating system jumps to a setting interface when receiving a selection request aiming at the sub-option in the sub-interface.
8. The apparatus of claim 6, further comprising:
the second skip module is used for skipping to the page of the application program so that the terminal operating system skips to the page of the application program, so that when the application program judges that the page of the application program is skipped by the triggering of the terminal operating system, whether a background running mode of the process is the target mode or not is judged, and if the background running mode is the target mode, a request for starting background service is sent to the terminal operating system;
and the running module is used for starting the background service of the application program when receiving the request for starting the background service, and enabling the background to run the process of the application program according to the target mode.
9. A keep-alive device for an application, comprising:
the first judging module is used for judging whether a background running mode of a process is a target mode, and the target mode at least comprises a keeping running mode;
the first sending module is used for sending a request for changing the background running mode of the process to a terminal operating system if the process is in a non-target mode, so that the terminal operating system jumps to a setting page containing a first option for representing the background running mode of the process when receiving the request for changing the background running mode of the process sent by an application program, and changes the background running mode of the process of the application program into the target mode when receiving a selection request aiming at the first option from the setting page;
and the second sending module is used for sending a request for starting the background service to the terminal operating system if the terminal operating system is in the target mode, so that the terminal operating system starts the background service of the application program when receiving the request for starting the background service, and the background runs the progress of the application program according to the target mode.
10. The apparatus of claim 9, further comprising:
and the second judgment module is used for judging whether the terminal operating system triggers to jump to the page of the application program, and if so, the first judgment module is returned to execute to judge whether the background running mode of the process is the target mode.
CN202011570096.7A 2020-12-26 2020-12-26 Keep-alive method and device for application program Pending CN112612589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011570096.7A CN112612589A (en) 2020-12-26 2020-12-26 Keep-alive method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011570096.7A CN112612589A (en) 2020-12-26 2020-12-26 Keep-alive method and device for application program

Publications (1)

Publication Number Publication Date
CN112612589A true CN112612589A (en) 2021-04-06

Family

ID=75247957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011570096.7A Pending CN112612589A (en) 2020-12-26 2020-12-26 Keep-alive method and device for application program

Country Status (1)

Country Link
CN (1) CN112612589A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196967A1 (en) * 2014-06-24 2015-12-30 北京奇虎科技有限公司 Method and apparatus for application to permanently reside in background of operating system
CN107748685A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Application program launching control method, device, terminal device and storage medium
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110032487A (en) * 2018-11-09 2019-07-19 阿里巴巴集团控股有限公司 Keep Alive supervision method, apparatus and electronic equipment
CN110647275A (en) * 2019-08-27 2020-01-03 努比亚技术有限公司 Method for setting battery optimization white list, terminal and computer storage medium
CN112084488A (en) * 2020-08-27 2020-12-15 广州新视展投资咨询有限公司 Application authority management method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196967A1 (en) * 2014-06-24 2015-12-30 北京奇虎科技有限公司 Method and apparatus for application to permanently reside in background of operating system
CN107748685A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Application program launching control method, device, terminal device and storage medium
CN110032487A (en) * 2018-11-09 2019-07-19 阿里巴巴集团控股有限公司 Keep Alive supervision method, apparatus and electronic equipment
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110647275A (en) * 2019-08-27 2020-01-03 努比亚技术有限公司 Method for setting battery optimization white list, terminal and computer storage medium
CN112084488A (en) * 2020-08-27 2020-12-15 广州新视展投资咨询有限公司 Application authority management method, device and system

Similar Documents

Publication Publication Date Title
CN109788020B (en) Agent distribution method and related equipment
CN112288404A (en) Conference management method and device, electronic equipment and storage medium
CN112019422A (en) Information sharing method, information processing method, related device and equipment
CN104811485A (en) Resource sharing method
CN112351350A (en) Content display method, device, system, equipment and storage medium
CN104077151A (en) Method for fast starting network application and electronic equipment
CN111346386B (en) Message processing method and device
CN104735482A (en) Video pushing implementation method, system and device
CN112612589A (en) Keep-alive method and device for application program
CN105279140B (en) Text display method, server, terminal and system
US10328336B1 (en) Concurrent game functionality and video content
CN103488745A (en) Information obtaining method and terminal
CN104809122A (en) Method and device for visiting web pages
CN111614676B (en) Login method, device, equipment and medium
CN112915550B (en) Comment information generation method and device, electronic equipment and storage medium
CN112948804B (en) Program control method, device and computer readable storage medium
CN114880018A (en) Request processing method and device, storage medium and electronic equipment
CN110515743B (en) Write event notification method and device
CN112423099A (en) Video loading method and device and electronic equipment
CN112036149A (en) File editing method and device, electronic equipment and storage medium
CN112242930A (en) Conversation processing method, device, server and storage medium
CN104901945A (en) Terminal
CN111078215A (en) Software product application method and device, storage medium and electronic equipment
CN115378896B (en) Message display method and device, electronic equipment and storage medium
CN104125253A (en) Network application realization method and system

Legal Events

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