Re: [android-developers] onBackPressed to hide Not destroy activity

2011-05-06 Thread Mark Murphy
On Fri, May 6, 2011 at 12:07 PM, Cel wrote: > 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 Why not let it finish? And what doe

[android-developers] onBackPressed to hide Not destroy activity

2011-05-06 Thread Cel
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()