Problems with Fragment lifecycle and onCreate being called on non existent fragment
问题 I am testing fragments in Android and I'm having some confusing behavior with Fragment life cycle. I have a activity that uses layouts in xml for both landscape and portrait modes. I have some code that accesses a EditText object that is defined in one of the fragment layouts. If I start the app in landscape mode things work. I access the component in the onResume() fragment method to update some text. According to the documentation the onResume() fragment method is called when the fragment