Can anyone tell me what are the different of use of onAttach() and isAdded in Android Fragment?
When create a new fragment onAttach() method creating default.
I
This could be answered simply reading javadocs:
/**
* Called when a fragment is first attached to its context.
* {@link #onCreate(Bundle)} will be called after this.
*/
public void onAttach(Context context)
and
/**
* Return true if the fragment is currently added to its activity.
*/
final public boolean isAdded()