When is onAttach called during the Fragment LifeCycle? [duplicate]

In activity the first method is onCreate.
onCreate of activity add the fragment and in this moment onAttach is called. like in the picture

enter image description here

Ref: https://github.com/xxv/android-lifecycle

Leave a Comment