Nguyễn Thị Thúy Quỳnh
Member
What is the lifecycle of foreground activity in Android?
Answer
The activity lifecycle: the foreground lifetime. The activity gets launched, and the onCreate() and onStart() methods run. The onResume() method runs after the onStart() method. It gets called when the activity is about to move into the foreground.
Answer
The activity lifecycle: the foreground lifetime. The activity gets launched, and the onCreate() and onStart() methods run. The onResume() method runs after the onStart() method. It gets called when the activity is about to move into the foreground.