What is the life cycle of foreground activity in Android?

What is the life cycle of foreground activity in Android?
Answer
Activity Lifecycle

Lifecycle Method

Description

onCreate()

The activity is starting (but not visible to the user)

onStart()

The activity is now visible (but not ready for user interaction)

onResume()

The activity is now in the foreground and ready for user interaction
 

Tìm kiếm

Back
Top