Code example for DialogFragment

Methods: onDismiss

0
    return(dlg);
  } 
 
  @Override 
  public void onDismiss(DialogInterface unused) {
    super.onDismiss(unused);
 
    Log.d(getClass().getSimpleName(), "Goodbye!");
  } 
 
  @Override 
  public void onCancel(DialogInterface unused) {
    super.onCancel(unused);
 
    Toast.makeText(getActivity(), R.string.back, Toast.LENGTH_LONG)
         .show(); 
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java