
The Activity base class defines a series of events that governs the life cycle of an activity. The Activity
class defines the following events:
➤➤ onCreate() — Called when the activity is first created
➤➤ onStart() — Called when the activity becomes visible to the user
➤➤ onResume() — Called when the activity starts interacting with the user
➤➤ onPause() — Called when the current activity is being paused and the previous activity is
being resumed
➤➤ onStop() — Called when the activity is no longer visible to the user
➤➤ onDestroy() — Called before the activity is destroyed by the system (either manually or by
the system to conserve memory)
➤➤ onRestart() — Called when the activity has been stopped and is restarting again
No comments:
Post a Comment