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

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

Active Publication Date: 2021-07-09
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF3 Cites 0 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, electronic device and computer-readable storage medium for preventing abnormal activity life cycle
  • Method, electronic device and computer-readable storage medium for preventing abnormal activity life cycle
  • Method, electronic device and computer-readable storage medium for preventing abnormal activity life cycle

Examples

Experimental program
Comparison scheme
Effect test

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...

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 method, electronic device, and computer-readable storage medium for preventing an abnormality in the life cycle of an Activity, wherein the method for preventing an abnormality in the life cycle of an Activity includes: monitoring the state of a process; if the monitored process has terminated, then detecting whether the reconstruction has terminated process; if the reconstruction has terminated the process, the Activity at the top of the stack will be forced to be restored, so that the user interface corresponding to the restored Activity will be displayed on the foreground of the terminal. The solution provided by this application can solve the abnormal user interface caused by the existing Android system when the AMS has not had time to clean up the relevant data of the terminated process.

Description

technical field [0001] The present application relates to the field of smart terminals, and in particular to a method for preventing an Activity life cycle exception, an electronic device, and a computer-readable storage medium. Background technique [0002] Activity is intended to be an activity, and it is one of the four major components of the Android system. It is a component that can contain a user interface, and is mainly used to display the user interface and human-computer interaction, such as making a phone call, taking a photo, 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] Normally, after a process is killed, the interface manager service (Activity Manager Service, AMS) will clean up the data related to the process. However, the original defect of the existing Android system is that the process is restarted b...

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 Patents(China)
IPC IPC(8): G06F11/14
CPCG06F11/1438
Inventor 吴庆
Owner OPPO CHONGQING INTELLIGENT TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More