Fragment methods: attach(), detach(), remove(), replace(), popBackStack()

Now when we call remove() on the fragment from our activity, which functions of the fragment are called and in which order? Look at http://developer.android.com/reference/android/app/Fragment.html . The order is: onPause(), onStop(), onDestroyView(), onDestroy(), onDetach() What does attach() and detach() do? Does detach() remove the fragment? And when these two attach() and detach() are used, which … Read more