Bearbeiten von „Android Training/Managing the Activity Lifecycle

    Du bearbeitest die Quelle einer übersetzbaren Seite. Bitte stelle sicher, dass du mit der folgenden Dokumentation vertraut bist:

    Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden. Ein eigenes Benutzerkonto hat eine ganze Reihe von Vorteilen.

    Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.

    Aktuelle Version Dein Text
    Zeile 1: Zeile 1:
    <languages />
    <languages />
    <translate>
    <translate>
    <!--T:1-->
    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).


    <!--T:2-->
    Within the lifecycle callback methods, you can declare how your activity behaves when the user leaves and re-enters the activity. 
    Within the lifecycle callback methods, you can declare how your activity behaves when the user leaves and re-enters the activity. 


    <!--T:3-->
    For example, if you're building a streaming video player, you might pause the video and terminate the network connection when the user switches to another app. When the user returns, you can reconnect to the network and allow the user to resume the video from the same spot.
    For example, if you're building a streaming video player, you might pause the video and terminate the network connection when the user switches to another app. When the user returns, you can reconnect to the network and allow the user to resume the video from the same spot.


    <!--T:4-->
    This class explains important lifecycle callback methods that each <code>Activity</code> instance receives and how you can use them so your activity does what the user expects and does not consume system resources when your activity doesn't need them.
    This class explains important lifecycle callback methods that each <code>Activity</code> instance receives and how you can use them so your activity does what the user expects and does not consume system resources when your activity doesn't need them.


    == Lessons == <!--T:5-->
    == Lessons ==
    </translate>
    </translate>
    ; '''[[Spezial:Meine Sprache/Android Training/Starting an Activity|<translate><!--T:6-->
    ; '''[[Spezial:Meine Sprache/Android Training/Starting an Activity|<translate>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>
    : <translate><!--T:7-->
    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|<translate><!--T:8-->
    ; '''[[Spezial:Meine Sprache/Android Training/Pausing and Resuming an Activity|<translate>Pausing and Resuming an Activity</translate>]]'''
    Pausing and Resuming an Activity</translate>]]'''
    : <translate>Learn what happens when your activity is paused (partially obscured) and resumed and what you should do during these state changes.</translate>
    : <translate><!--T:9-->
    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|<translate><!--T:10-->
    ; '''[[Spezial:Meine Sprache/Android Training/Stopping and Restarting an Activity|<translate>Stopping and Restarting an Activity</translate>]]'''
    Stopping and Restarting an Activity</translate>]]'''
    : <translate>Learn what happens when the user completely leaves your activity and returns to it.</translate>
    : <translate><!--T:11-->
    Learn what happens when the user completely leaves your activity and returns to it.</translate>


    ; '''[[Spezial:Meine Sprache/Android Training/Recreating an Activity|<translate><!--T:12-->
    ; '''[[Spezial:Meine Sprache/Android Training/Recreating an Activity|<translate>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>
    : <translate><!--T:13-->
    Learn what happens when your activity is destroyed and how you can rebuild the activity state when necessary.</translate>


    {{TNT|Android Training/Attribution}}
    {{TNT|Android Training/Attribution}}
    [[Kategorie:Android Training]]
    [[Kategorie:Android Training]]
    Bitte kopiere keine Webseiten, die nicht deine eigenen sind, benutze keine urheberrechtlich geschützten Werke ohne Erlaubnis des Urhebers!
    Du gibst uns hiermit deine Zusage, dass du den Text selbst verfasst hast, dass der Text Allgemeingut (public domain) ist, oder dass der Urheber seine Zustimmung gegeben hat. Falls dieser Text bereits woanders veröffentlicht wurde, weise bitte auf der Diskussionsseite darauf hin. Bitte beachte, dass alle Android Wiki-Beiträge automatisch unter der „Creative Commons Attribution/Share-Alike Lizenz 3.0“ stehen. Falls du nicht möchtest, dass deine Arbeit hier von anderen verändert und verbreitet wird, dann klicke nicht auf „Seite speichern“.

    Um das Wiki vor automatisiertem Bearbeitungsspam zu schützen, bitten wir dich, das folgende CAPTCHA zu lösen:

    Abbrechen Bearbeitungshilfe (wird in einem neuen Fenster geöffnet)

    Folgende Vorlagen werden auf dieser Seite verwendet: