I am confused about usage of
Here is description o these methods from Google Developer website:
It gets called when the activity is starting.
This is where most initialization should go:
It is not a lifecycle method for activity. It's just a member method which will be used for specified tasks as said in doc.
Standard implementation of android.view.LayoutInflater.Factory.onCreateView used when inflating with the LayoutInflater returned by getSystemService. This implementation does nothing and is for pre-android.os.Build.VERSION_CODES.HONEYCOMB apps. Newer apps should use onCreateView(View, String, Context, AttributeSet). To rely of call of onCreateView() in Activity is bad programming.
If you are using this method for
It will be Called to have the fragment instantiate its user interface view.
This method is available for
It gets the root view for the fragment's layout (the one returned by onCreateView(LayoutInflater, ViewGroup, Bundle)), if provided.