androidfragment-lifecycle

When does onActivityCreated get called in a Fragment's Lifecycle?


I am looking at the Fragment's Lifecycle here but cannot see where onActivityCreated gets called?


Solution

  • From the docs docs:

    Called when the fragment's activity has been created and this fragment's view hierarchy instantiated

    So basically onActivityCreated is called after the host activity onCreate has returned.