Top "Back-stack" questions

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

Android deep linking - Back stack

I am trying to implement deep linking in my Android application. I have been following this guide. I have an …

android android-intent android-activity deep-linking back-stack
How to persist fragment data after backstack transactions?

I've got an activity, containing fragment 'list', which upon clicking on one of its items will replace itself to a …

android android-fragments back-stack
Use backstack with ViewPager

I am using a ViewPager to implement swiping in my android app. However, I would like the previous fragment to …

android android-viewpager back-stack
Fragment not calling onPause or onStop when using replace

I have this odd problem that my fragments are not calling any of the end lifecycle methods like onPause and …

android android-fragments back-stack fragmentmanager
onCreate always called if navigating back with intent

I have an activity called HomeActivity that has a SurfaceView and shows a camera preview picture. This activity is quiet …

android back-stack activity-stack
popBackStack causes calling oncreateView of fragment again and again

I have 3 fragment A, B,C.I wrote piece of code for replacing them and maintaining backstack: public void addFragment(…

android android-fragments fragment back-stack fragmentmanager
Going from 3rd to 1st fragment in the backstack: Android

I have a sequence of event via which i have added three fragments to the backstack, one by one. Each …

android android-fragments back-stack
WebView reloading when Fragment in ViewPager is retained form BackStack

Here is a code for a basic Fragment which contains a WebView. WebFragment.java public class WebFragment extends Fragment { String …

android android-fragments android-webview android-viewpager back-stack
Fragments are getting overlapped on back button

I have created 3 Fragments namely (FragmentA, FragmentB, FragmentC) and one MainActivity. There is a button in each fragment which replaces …

android android-fragments overlap overlapping back-stack
Backstack management : Restarter must be created only during owner's initialization stage

I am using a bottom navigation bar in my MainActivity to handle some fragments. This is the code used for …

android android-fragments kotlin back-stack fragmentmanager