0

I have made 2 fragments A and B. B comes over A. After i rotate device ,activity is recreated and fragments are recreated but in reverse order i.e. B then A.

Any Idea what could be happening? How to save their order of creation.

Gaurav
  • 609
  • 1
  • 11
  • 24

1 Answers1

0

I think this link must help you to solve your problem with rotate device and restart activity:

This is some link about fragment lifecycle and restart activity:

Community
  • 1
  • 1
AliSh
  • 8,576
  • 5
  • 33
  • 65