Code example for DialogFragment

Methods: getDialog, getRetainInstance, onDestroyView

0
  } 
 
  // Hack for android issue 17423 in the compatibility library 
  @Override 
  public void onDestroyView() { 
    if ( getDialog() != null && getRetainInstance() )
      getDialog().setDismissMessage(null);
    super.onDestroyView(); 
  } 
}