When I am in my activity onResume() & get a phone call what will be the lifecycle of the…
- User
When I am in my activity onResume() & get a phone call what will be the lifecycle of the fragment inside my activity
Assistant
When your Activity is in the onResume() state and receives a phone call, the Fragment inside the Activity will go through these lifecycle events:
- onPause() - Called when the Fragment becomes partially visible
- onStop() - Called when the Fragment is no longer visible (as the phone call UI takes over)
After the phone call ends and the user returns to your app:
- onStart() - Called when the Fragment becomes visible again
- onResume() - Called when the Fragment is fully active again
The Fragment follows its parent Activity's lifecycle transitions, so as the Activity moves from resumed → paused → stopped (during the call) and then back to started → resumed (after the call), the Fragment follows the same pattern.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.