Hello. My problem is that i don't understand something about Fragments' lifecycle. Fragments start by getting attached to Activities correct? But NewInstance() method is used to hit the window after Fragment's creation and before Fragment's attachment. Anyone care to enlighten me about this conflict?
Thanks in advance.
My question seems too vague in second reading. To clarify; on the various sources, it is advised to use NewInstance() method for a fragment to set arguments. NewInstance() provides the window between fragment's creation and attachment. My question is how fragment's creation comes before its attachment since it is supposed to be the exact opposite.