Top "Activity-stack" questions

Activities can open other activities.

How to prevent going back to the previous activity?

When the BACK button is pressed on the phone, I want to prevent a specific activity from returning to its …

android back back-stack activity-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
how to finish all activities and close the application in android?

My application has the following flow: Home->screen 1->screen 2->screen 3->screen 4->…

android android-activity activity-stack
Android: bug in launchMode="singleTask"? -> activity stack not preserved

My main activity A has as set android:launchMode="singleTask" in the manifest. Now, whenever I start another activity from …

android activity-stack
How to Control Android back stack

Lets say I have A->B->C->D->E In android back stack. I want to …

android android-activity stack back activity-stack
How to find back stack activities in an android application?

I have an application with activities back stack A -> B -> C -> D -> …

android back-stack activity-stack
noHistory vs finish() - Which is preferred?

I don't want my application to show few Activity (say SplashScreenActivity) when pressing back button. So I've used noHistory=true …

android back-stack activity-stack
Activity restarts on Force Close

I have an Application with a single root Activity. I've recently had it brought to my attention that any kind …

android android-activity crash kill activity-stack
How avoid returning to login layout pressing the back button/key?

I want create an app for my institute. The problem is: my application will have two layouts (login and dashboard). …

android session login back-button activity-stack
Remove an activity from stack in android

I want to remove an activity from stack using code.Heres my case From page A I am going to …

java android android-activity activity-stack