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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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: