Keep-alive method of application process under Android platform

A technology of application process and Android platform, applied in the direction of boot program, program control design, program control device, etc., can solve the problems of unable to restart the process, unable to restart, huge data volume, etc., and achieve the effect of improving the survival rate of the process

Active Publication Date: 2019-02-22
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF10 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) Return STATR_STICK in the onstart method of the service. In this way, when the user actively kills the process, it cannot be awakened again;
[0005] (2) Simply setting the application Service as the foreground service will not be killed under normal circumstances, but some custom ROMs will be killed when the application is switched to the background, and will be killed by force stop and cannot be restarted;
[0007] (4) The Native process is started, but this method is only valid for some mobile phones with systems below 5.0, and it is completely invalid for systems above 5.0, and cannot be restarted;
[0008] (5) Use AIDL to realize inter-process communication. When processing in this way, the amount of data is huge, and the process cannot be restarted even if the user actively kills it or uses third-party software memory acceleration;

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 of application process under Android platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0034] Such as figure 1 As shown, a method for keeping alive an application process under an Android platform is based on a TCP long connection and auxiliary services to realize keeping alive a process, which specifically includes the following steps:

[0035] Step S1, respectively build the main application project as the socket server and the background monitoring application project as the socket client; specifically include the following steps:

[0036] Step S11, add meta-data in the Manifests file of the main application project, and the corresponding value includes the package name and startup name feature value of the monitoring application project, including a Service that integrates the startup method of the Socket server, and the Service is a foreground service. Raise the process priority level;

[0037] Step S12, adding meta-data in the monitoring application project Manifests file, the corresponding value includes the package name and startup name feature value of...

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 of an application process under an Android platform. Based on a TCP long connection and an auxiliary service, the keep-alive of the process is achieved, a main application project is started as a server, a background monitoring application project serves as a client connection, heartbeats are sent to each other through certain time frequency to monitor the connection states of each other, once one of them is killed, the other party is waken up, thereby greatly improving the survival probability of the process and helping the expansion of the application service.

Description

technical field [0001] The invention relates to the technical field of application program communication, in particular to a method for keeping alive an application process under an Android platform. Background technique [0002] At present, the Android system occupies a large part of the market share. The frequency of use of mobile phones and other products that rely on the Android system is increasing. A large number of user groups have enabled many companies to see business opportunities, so various forms of apps have emerged. , and basically all apps want to be able to run in the background all the time, so as to ensure the interaction with users, especially IM (instant messaging) applications; but limited by Google, the Android system has a certain operating memory limit, in When the memory is insufficient, some low-priority applications will be killed or the user actively kills the application, resulting in a loss of connection with the server. [0003] The current pr...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08G06F9/4401
CPCG06F9/4418H04L67/34H04L69/162
Inventor 何金辉宋佶聪瞿杏元
Owner SICHUAN CHANGHONG ELECTRIC 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