Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for preventing abnormality of activity life cycle, electronic device and computer readable storage medium

A life cycle, electronic device technology, applied in the direction of calculation, generation of response errors, electrical digital data processing, etc., can solve problems such as abnormal activity life cycle

Active Publication Date: 2018-12-07
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a method, an electronic device, and a computer-readable storage medium for preventing an Activity life cycle exception, so as to solve the Activity life cycle exception caused by the existing Android system when the AMS has not had time to clean up the relevant data of the killed process.

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
  • Method for preventing abnormality of activity life cycle, electronic device and computer readable storage medium
  • Method for preventing abnormality of activity life cycle, electronic device and computer readable storage medium
  • Method for preventing abnormality of activity life cycle, electronic device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] The embodiment of the present application provides a method for preventing abnormal activity life cycle. The method for preventing abnormal activity life cycle is applied to an electronic device. The electronic device may be a smart phone, a tablet computer, a wearable device, etc., which is capable of preventing abnormal activity life cycle For functional equipment, the operating system of the above electronic device may be ios, android, windows or other operating systems, which is not limited here.

[0026] See figure 1 , The method for preventing abnormal activity life cycle mainly includes the following steps 101 to 103:

[0027] Step 101: Monitor the status of the process.

[0028] Generally, a process includes five states: created, ready, executed, blocked, and terminated (or terminated). The state of the process can be obtained by calling the monitoring function by the process manager. When the monitoring function is called, the return value of the parameters obtained ...

Embodiment 2

[0035] Attached figure 2 It is a method for preventing Activity life cycle abnormality described in another embodiment of this application, which specifically includes steps 201 to 204, which are described in detail as follows:

[0036] Step 201: Monitor the status of the process.

[0037] The terms, concepts, etc. involved in step 201 figure 1 The terms and concepts involved in step 101 of the example are the same, and the implementation process is also completely the same. You can refer to the description of the foregoing embodiment, which is not repeated here.

[0038] Step 202: If the monitored process has been terminated, it is detected whether the terminated process is rebuilt.

[0039] The terms, concepts, etc. involved in step 202 figure 1 The terms, concepts, etc. involved in step 102 of the example are the same, and the implementation process is also completely the same. You can refer to the description of the foregoing embodiment, which is not repeated here.

[0040] Step 20...

Embodiment 3

[0047] Attached image 3 It is a method for preventing Activity life cycle abnormality described in another embodiment of this application, which specifically includes steps 301 to 305, which are described in detail as follows:

[0048] Step 301: Monitor the status of the process.

[0049] The terms and concepts involved in step 301 figure 1 Example step 101 or attached figure 2 The terms, concepts, etc. involved in step 201 of the example are the same, and the implementation process is also completely the same. You can refer to the description of the foregoing embodiment, which will not be repeated here.

[0050] Step 302: If the monitored process has been terminated, it is detected whether the terminated process is rebuilt.

[0051] The terms, concepts, etc. involved in step 302 figure 1 Step 102 of the example or attached figure 2 The terms and concepts involved in step 202 in the example are the same, and the implementation process is also completely the same. You can refer to th...

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

A for preventing abnormality of an activity life cycle, an electronic device, and a computer readable storage medium are provided, wherein the method for preventing abnormality of an activity life cycle comprises the following steps: monitoring a state of a process; detecting whether the terminated process is rebuilt if the monitored process is terminated; if the terminated process is rebuilt, forcing the Activity returned to the top of the stack to be restored to display the restored Activity corresponding user interface in the foreground of the terminal. The present application provides a solution for resolving user interface anomalies caused by conventional Android systems before AMS has time to clean up data related to terminated processes.

Description

Technical field [0001] This application relates to the field of smart terminals, and in particular to a method, an electronic device, and a computer-readable storage medium for preventing abnormality in the activity life cycle. Background technique [0002] Activity originally means activity and is one of the four major components of the Android system. It is a component that can contain a user interface. It is mainly used to display the user interface and human-computer interaction, such as making a call, taking a picture, sending an email, or displaying a map, etc. , The user interacts with the user interface displayed by the Activity to complete related operations; an App (or process) allows multiple activities. [0003] Under normal circumstances, after the process is killed, the interface manager service (Activity Manager Service, AMS) will clean up the data related to the process. However, the native defect of the existing Android system is that the AMS has not had time to c...

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): G06F11/14
CPCG06F11/1438
Inventor 吴庆
Owner OPPO CHONGQING INTELLIGENT TECH CO LTD