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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


