What is the difference between onStart and onResume in Android?

What is the difference between onStart and onResume in Android?
Answer
onStart() -> called when the activity becomes visible, but might not be in the foreground (e.g. an AlertFragment is on top or any other possible use case). onResume() -> called when the activity is in the foreground, or the user can interact with the Activity.
 

Tìm kiếm

Back
Top