Method, electronic device and computer-readable storage medium for preventing abnormal activity life cycle
A life cycle, computer program technology, applied in computing, electrical digital data processing, generation of response errors, 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] An embodiment of the present application provides a method for preventing an abnormality in the life cycle of an Activity. The method for preventing an abnormality in the life cycle of an Activity is applied to an electronic device, and the electronic device may be a smart phone, a tablet computer, a wearable device, etc. function, the operating system of the above-mentioned electronic device may be ios, android, windows system or other operating systems, which are not limited here.
[0026] see figure 1 , the method for preventing an Activity life cycle exception mainly includes the following steps 101 to 103:
[0027] Step 101, monitor the state of the process.
[0028] Generally, a process includes five states of creation, ready, execution, blocking and termination (or finalization). The status of the process can be obtained by calling the monitoring function through the process manager. When the monitoring function is called, the return value of the obtained param...
Embodiment 2
[0035] attached figure 2 It is a method for preventing an Activity life cycle exception described in another embodiment of the present application, specifically including steps 201 to 204, and the details are as follows:
[0036] Step 201, monitor the state of the process.
[0037] The terms, concepts, etc. involved in step 201 and the accompanying figure 1 The terms, concepts, etc. involved in step 101 of the example are the same, and the implementation process is also completely the same. Reference may be made to the description of the foregoing embodiments, and details are not repeated here.
[0038] Step 202, if the monitored process has terminated, check whether to rebuild the terminated process.
[0039] The terms, concepts, etc. involved in step 202 and the accompanying 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, and reference may be made to the description of the fo...
Embodiment 3
[0047] attached image 3 It is a method for preventing an Activity life cycle exception described in another embodiment of the present application, specifically including steps 301 to 305, and the details are as follows:
[0048] Step 301, monitor the state of the process.
[0049] The terms, concepts, etc. involved in step 301 and the accompanying figure 1 Example of 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, and reference may be made to the description of the foregoing embodiments, and details are not repeated here.
[0050] Step 302, if the monitored process has terminated, check whether to rebuild the terminated process.
[0051] The terms, concepts, etc. involved in step 302 and the accompanying figure 1 Example of step 102 or attached figure 2 The terms, concepts, etc. involved in step 202 of the example are the same, and the implementation pr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



