Code example for DialogFragment

Methods: onDismiss

0
    Toast.makeText(getActivity(), msg, Toast.LENGTH_LONG).show();
  } 
   
  @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();
  } 
}