Top "Back-stack" questions

"Back stack" is a stack in which activities within an Android task are arranged.

Fragments onResume from back stack

I'm using the compatibility package to use Fragments with Android 2.2. When using fragments, and adding transitions between them to the …

android android-fragments compatibility android-3.0-honeycomb back-stack
Android: Fragments backStack

Im trying to load an new fragment when a method is called. This method creates a new fragment and "replaces" …

android android-fragments back-stack
How to pop fragment off backstack

I have an activity A, which calls fragment Bf, which calls fragment Cf. I want Bf to be placed in …

android android-fragments back-stack
Android: open activity without save into the stack

I have 2 activities: Main and List. From Main you can open List; from List you can open Main. I'd like …

android back-stack
How to prevent multiple instances of an Activity when it is launched with different Intents

I've come across a bug in my application when it is launched using the "Open" button on the Google Play …

android google-play back-stack activity-stack
Fragment methods: attach(), detach(), remove(), replace(), popBackStack()

I am very confused between these functions and their purposes. What I have observed that using replace() replaces the existing …

android android-fragments fragment back-stack
How to clear the Android Stack of activities?

I have an application with several Activities in Android and I want the user to be able to log-out by …

android android-activity stack back-stack
savedInstanceState when restoring fragment from back stack

Can I use savedInstanceState() to save the state when removing a fragment, then restore the state when I pop the …

android android-fragments bundle back-stack
Fragment addToBackStack() and popBackStackImmediate() not working

I am currently building an application for Android (14 <= SDK <= 21) by using one ActionBarActivity and more Fragments, such as …

android android-fragments back-stack
Fragment PopBackStack

I am getting a strange problem, while using Fragments and popping back them out. I have one Fragment Activity: Step1: …

android android-fragments back-stack onbackpressed