i know how to cancel back keypress, so that the activity / main window stays visible:
public void onBackPressed() {
return;
}
my aim is to hide the activity, however, without finishing it, how do you do that in the onBackPressed event?
i.e. I would like to get as far as onPause(), but not evoke the onBackPressed() default behaviour that essentially calls finish(). another way to put it is that i would like to mimic onUserLeaveHint() ?
any help appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…