Keep-alive method and device for mobile terminal application program

An application program and mobile terminal technology, applied in the field of communication applications, can solve problems such as application program functions can no longer continue to work

Pending Publication Date: 2020-03-13
SHENZHEN SHUWEI MEDIA TECH CO LTD
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a mobile terminal application program keeping alive method and device to solve the following problems in the prior art: when the system running memory is insufficient and the process to which the SDK of the application program is attached is killed, it will cause The functionality of the application can no longer continue to work

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Keep-alive method and device for mobile terminal application program
  • Keep-alive method and device for mobile terminal application program
  • Keep-alive method and device for mobile terminal application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] see figure 1 , figure 1 It is an implementation flowchart of the keep-alive method of the mobile terminal application program in the embodiment of the present invention, combined with figure 1 It can be obtained that a method for keeping alive a mobile terminal application program of the present invention includes:

[0026] Step S101: When it is detected that the mobile terminal is unlocked, wake up the application program of the mobile terminal.

[0027] Step S102: After the application program is woken up, establish a multi-threaded code execution mode for the SDK of each application program. Thread (thread) is the smallest unit that the operating system can perform operation scheduling. It is included in the process and is the actual operation unit in the process. A thread refers to a single sequential flow of control in a process. Multiple threads can run concurrently in a process, and each thread performs different tasks in parallel.

[0028] Step S103: Put all...

Embodiment 2

[0047] see figure 2 , figure 2 It is a partial structural frame diagram of the keep-alive device of the mobile terminal application program in the embodiment of the present invention, combined with figure 2 It can be obtained that a mobile terminal application keep-alive device 100 of the present invention includes:

[0048] The program wake-up module 110 is configured to wake up the application program of the mobile terminal when it is detected that the mobile terminal is unlocked.

[0049] The thread establishment module 120 is used for establishing a multi-threaded code execution mode for the SDK of each application program after the application program is awakened.

[0050] The resource processing module 130 is configured to put all the resource consumption codes corresponding to the SDK of the application into a single thread of the multi-thread.

[0051] In the embodiment of the present invention, after detecting that the mobile terminal is unlocked, the applicatio...

Embodiment 3

[0053] see image 3 ,refer to image 3 It can be seen that a computer-readable storage medium 10 in the embodiment of the present invention, the computer-readable storage medium 10, such as: ROM / RAM, magnetic disk, optical disk, etc., has a computer program 11 stored thereon, the described When the computer program 11 is executed, the method for keeping alive the application program of the mobile terminal as described in the first embodiment is implemented. Since the keep-alive method of the mobile terminal application program has been described in detail in Embodiment 1, the description will not be repeated here.

[0054] The method for keeping alive the application program of the mobile terminal implemented in the embodiment of the present invention wakes up the application program of the mobile terminal after detecting that the mobile terminal is unlocked, and when the application program is woken up, for each The SDK of the application program establishes a multi-thread ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a keep-alive method and a device for an application program of a mobile terminal, and the method comprises the steps: awakening the application program of the mobile terminal after monitoring that the mobile terminal is unlocked; after the application programs are awakened, establishing a multi-thread code execution mode for the SDK of each application program; and puttingall the consumed resource codes corresponding to the SDK of the application program into one single thread of the multiple threads. Compared with the prior art, the SDK of the application program is optimized under the system mechanism, the behavior of cheating the system is not involved, the keep-alive capacity of the SDK is improved, and the keep-alive method does not depend on the third-party SDK, so that the SDK is not influenced by the third-party SDK, and the compatibility of the SDK is improved.

Description

technical field [0001] The present invention relates to the technical field of communication applications, in particular to a method and device for keeping alive mobile terminal application programs. Background technique [0002] The system of the mobile terminal has its own task manager. When the system runs out of memory, the system needs to kill some processes (applications) to reclaim some resources to ensure that the system can still maintain normal operation. When the process attached to the SDK (software development kit, software development kit) is killed, the functions of the SDK will no longer be able to continue to work. At present, the methods for keeping alive applications mainly include the following: 1. Increase process priority: In order to ensure that the system can keep the application process for a long time, when the system memory is insufficient and reaches a threshold, the process with lower priority will be given priority Recycle. Therefore, providin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/4401
CPCG06F9/4418
Inventor 黄兴鲁
Owner SHENZHEN SHUWEI MEDIA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products