I am using this flag in manifest.xml to have only one instance of the activity.
android:launchMode="singleInstance"
But if this activity say A launches a new activity say B and then pressing back button on B not showing activity A. It is showing activity from where we launched A.
Basically i want to create a activity if it is not in stack and if in stack bring on the top. But back button should also work properly.
What flag i should use for this.