How would I override a Dialog
\'s onBackPressed
to close the dialog as well as calling finish()
on the Activity
it is loca
in my case i use DialogFragment, which is still a dialog..
so i overriden onCancel()
in my dialog, and it reacts like onBackPressed()
of the Activity everytime i click the back button when dialog is shown.
@Override
public void onCancel(DialogInterface dialog)
{
super.onCancel(dialog);
Log.i("RecDialog.onCancel()", "onCancel");
}
hope i helped.