How do I retrieve the previous fragment upon opening an app from background? (app that wasn't killed)
I have a pretty unique issue where I am trying to retrieve previous fragment that was there before I went to the homescreen via the current fragment( last visible fragment) Not to confuse any further, here's the steps to repro my issue 1 ) launch the mainactivity, from there open fragment A via a button click (say button A) 2) from fragment A , press another button ,say B, which will open fragment B. 3) Fragment B has a close and save button , pressing which leads me back to the previous backstack fragment A ( activity.backpressed()) 4) Now, I have a scenario where I am calling fragment B, by