I\'m finding that in my application, the user can get quite \'nested\' in the various activities that are opened while the user is using the application.
For example
Add intent Flags as
Intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP); StartActivity(srcActivity.java, DesiredActivity.class);
Intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP);
StartActivity(srcActivity.java, DesiredActivity.class);
Then at onPause() DesiredActivity
onPause()
Add finish(), This did the work for me.
finish()