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.
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.
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: