How can I directly call onResume() without any other callbacks of an activity when the activity is coming back from onStop().

Suppose I have 3 activities. The activity flow goes this way, A -> B -> C -> A.

When I click on Activity C, Activity A should be opened and directly onResume() of Activity A should be opened without any callbacks.

1

There are 1 answers

1
UMESH0492 On

You can't directly go to onResume() that is simply against the activity lifecycle.

But you can start from on start() without recreating that activity. Checkout android activity launch modes, further at https://developer.android.com/guide/topics/manifest/activity-element.html#lmode