Книга: Beginning Android

onStart(), onRestart(), and onStop()

onStart(), onRestart(), and onStop()

An activity can come to the foreground either because it is first being launched, or because it is being brought back to the foreground after having been hidden (e.g., by another activity or by an incoming phone call).

The onStart() method is called in either of those cases. The onRestart() method is called in the case where the activity had been stopped and is now restarting.

Conversely, onStop() is called when the activity is about to be stopped.

Оглавление книги

Генерация: 0.389. Запросов К БД/Cache: 3 / 1
Вверх Вниз