Code example for DialogFragment

Methods: getDialog

0
  public Listener getListener() { 
    return listener;
  } 
 
  public boolean isShowing() { 
    final Dialog dialog = getDialog();
    return dialog != null && dialog.isShowing();
  } 
 
  @Override 
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setRetainInstance(true);
  } 
 
  protected boolean isListenerOptional() { 
    return true; 
  } 
 
  @SuppressWarnings("unchecked") 
  @Override