Code example for DialogFragment

Methods: getActivity, onCancel

0
		return dialog;
	} 
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        super.onCancel(dialog);
        ((DeterminateProgressDialogListener) getActivity()).onDeterminateDialogCancel();
    } 
}