Does anyone know if it is possible that an action is removed from the action stack if there is no memory on the device? I have activity A, which calls a web browser and a webpage, then calls activity B, which does something, and then should return to activity A. I use this intent with flags.
Intent intent = new Intent(this, acticityToReturnTo.getClass()); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(intent);
.. to remove the activity of the web browser and activity B from the action stack and return to activity A, but this will not work. Its always a new instance of activity A, which is created instead of resuming an existing activity by an instance. I don't want to use the single instance flag for activity A, but this is the only solution that currently works for me .. (Im for Android 1.6)
Maybe there is another solution to do what I want?
source share