Does Android reuse intent bundle for rebuilding


I have a question about rebuilding of an fragment please : if a fragment is killed then reconstructed, have Android kept the bundle from the intent that created the fragment initially ? In order to rebuild it as is ?

I have not found any place talking about it (only about SavedStateBundle), so the answer is most likely "no". But if intent are not used to rebuild, why should we pass info to a fragment using intent instead of using activityViewModel and push everything there for the fragments to read what they need ?

Thank you in advance.

Source: Android Questions

Categorized as android, fragment, lifecycle


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us