Example usage for android.app Fragment onDestroy

List of usage examples for android.app Fragment onDestroy

Introduction

In this page you can find the example usage for android.app Fragment onDestroy.

Prototype

@CallSuper
public void onDestroy() 

Source Link

Document

Called when the fragment is no longer in use.

Usage

From source file:my.madet.uniteninfo.MainHome.java

@Override
public void onDestroy() {
    super.onDestroy();
    FragmentManager fragmentManager = getFragmentManager();
    Fragment fragment = fragmentManager.findFragmentById(R.id.frame_container);
    if (fragment != null) {
        fragment.onDestroy();
    }//from ww w .ja v  a 2s.  c om
}