Zum Inhalt springen

Android Training/Managing the Activity Lifecycle: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(Die Seite wurde neu angelegt: „As a user navigates through, out of, and back to your app, the <code>[http://developer.android.com/reference/android/app/Activity.html Activity]</code> insta…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<languages />
<translate>
As a user navigates through, out of, and back to your app, the <code>[http://developer.android.com/reference/android/app/Activity.html Activity]</code> 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).
As a user navigates through, out of, and back to your app, the <code>[http://developer.android.com/reference/android/app/Activity.html Activity]</code> 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).


Zeile 8: Zeile 10:


== Lessons ==
== Lessons ==
; '''[[Spezial:Meine Sprache/Android Training/Starting an Activity|Starting an Activity]]'''
</translate>
: Learn the basics about the activity lifecycle, how the user can launch your app, and how to perform basic activity creation.
; '''[[Spezial:Meine Sprache/Android Training/Starting an Activity|<translate>Starting an Activity</translate>]]'''
: <translate>Learn the basics about the activity lifecycle, how the user can launch your app, and how to perform basic activity creation.</translate>


; '''[[Spezial:Meine Sprache/Android Training/Pausing and Resuming an Activity|Pausing and Resuming an Activity]]'''
; '''[[Spezial:Meine Sprache/Android Training/Pausing and Resuming an Activity|<translate>Pausing and Resuming an Activity</translate>]]'''
: Learn what happens when your activity is paused (partially obscured) and resumed and what you should do during these state changes.
: <translate>Learn what happens when your activity is paused (partially obscured) and resumed and what you should do during these state changes.</translate>


; '''[[Spezial:Meine Sprache/Android Training/Stopping and Restarting an Activity|Stopping and Restarting an Activity]]'''
; '''[[Spezial:Meine Sprache/Android Training/Stopping and Restarting an Activity|<translate>Stopping and Restarting an Activity</translate>]]'''
: Learn what happens when the user completely leaves your activity and returns to it.
: <translate>Learn what happens when the user completely leaves your activity and returns to it.</translate>
 
; '''[[Spezial:Meine Sprache/Android Training/Recreating an Activity|<translate>Recreating an Activity</translate>]]'''
: <translate>Learn what happens when your activity is destroyed and how you can rebuild the activity state when necessary.</translate>


; '''[[Spezial:Meine Sprache/Android Training/Recreating an Activity|Recreating an Activity]]'''
: Learn what happens when your activity is destroyed and how you can rebuild the activity state when necessary.
{{TNT|Android Training/Attribution}}
{{TNT|Android Training/Attribution}}
[[Kategorie:Android Training]]
[[Kategorie:Android Training]]
11.008

Bearbeitungen

Cookies helfen uns bei der Bereitstellung von Android Wiki. Durch die Nutzung von Android Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.