Junior — Middle
At what point in the Activity lifecycle is the onStop method called?
sobes.tech AI
Answer from AI
The onStop() method in the Activity lifecycle is called when the Activity is no longer visible to the user. This happens, for example, when:
- The user navigates to another Activity or app.
- The Activity is closed or minimized.
At this point, the Activity enters the "Stopped" state, and resources that are not needed while the Activity is not visible can be released, such as stopping animations or saving data.