Techniques county, in turn, relies on the state of the experience running in the process

Techniques county, in turn, relies on the state of the experience running in the process

Pastime condition and you can ejection out of memories

The system eliminates process if it should provide RAM; the likelihood of the device killing confirmed procedure depends on the condition of the method at that time. Dining table 1 shows the newest relationship among process state, interest county, and odds of the body’s eliminating the process.

The system never ever eliminates a job to provide recollections. Alternatively, it kills the method the spot where the pastime operates, damaging besides the activity however, all else powering on the processes, too. Understand how-to preserve and you will repair their activity’s UI county when system-started process dying happens, find Saving and restoring interest state.

To find out more from the techniques generally speaking, select Process and Threads. To learn more on how the lifecycle out of something is actually associated with brand new claims of facts in it, see the Process Lifecycle part of one to web page.

Preserving and you will fixing transient UI county

A user needs an enthusiastic activity’s UI condition to keep a comparable during a configuration alter, such as for instance rotation or altering toward multiple-windows setting. However, the computer ruins the experience by default when eg a setup alter occurs, wiping away one UI county kept in the experience for example. Similarly, a person needs UI condition to remain an identical once they briefly key away from your app to another software and you may next go back to their software afterwards. (tovább…)

Continue ReadingTechniques county, in turn, relies on the state of the experience running in the process