Translations:Android Training/Managing the Activity Lifecycle/1/en

From Android Wiki
Revision as of 21:13, 9 February 2016 by FuzzyBot (talk | contribs) (Neue Version von externer Quelle importiert)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

As a user navigates through, out of, and back to your app, the Activity instances in your app transition between different states in their lifecycle. For instance, when your activity starts for the first time, it comes to the foreground of the system and receives user focus. During this process, the Android system calls a series of lifecycle methods on the activity in which you set up the user interface and other components. If the user performs an action that starts another activity or switches to another app, the system calls another set of lifecycle methods on your activity as it moves into the background (where the activity is no longer visible, but the instance and its state remains intact).