0

I want to remove fragment from backstack in the following situations

  1. activity1-->fragment 1-->fragment
  2. activity1-->fragment 1-->activity2

in both cases on back should return to activity1 skipping fragment1. how can i achieve this.code sample would be helpful

Chaitanya
  • 41
  • 10
  • Possible duplicate of [Removing a Fragment from the back stack](http://stackoverflow.com/questions/9033019/removing-a-fragment-from-the-back-stack) – mdtuyen Nov 26 '15 at 15:26
  • Possible duplicate of [How to get a Fragment to remove itself, i.e. its equivalent of finish()?](http://stackoverflow.com/questions/5901298/how-to-get-a-fragment-to-remove-itself-i-e-its-equivalent-of-finish) – NOT_A_PROGRAMMER Jan 05 '16 at 19:58

0 Answers0