I had a problem calling my fragment onActivityCreated()method after calling the activity method onStart(). Does this mean that my method onCreate()ends after onStart()? It cannot be so. Really? When is my fragment called in my activity life cycle onActivityCreated()? Also, if I have multiple fragments, how can I control the order of the onActivityCreated()fragment calls ?
In my activity:
@Override
protected void onStart() {
super.onStart();
methodA();
}
In my snippet:
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
methodB();
}
source
share