I have two different application called App A and App B.
Steps:
As you can see the activity stack, It creates new instance of the Activity A instead of returning to the same instance of the ActivityA by calling onNewIntent() method.
I am not sure, is this because of Activity started for result.? Please help to provide proper solution in this scenario. Thank you.
You cannot start a singleTask
Activity
using startActivityForResult()
. If you launch an Activity
and expect a result returned, then the target Activity
must be launched in the same task. Due to this, Android is ignoring the singleTask
launch mode when you call startActivityForResult()
.