On back button you need to save the instance state of activity . . .

On Fri, May 6, 2011 at 11:51 PM, Kevin TeslaCoil Software <
[email protected]> wrote:

> moveTaskToBack is what you're asking for, but check the rest of the
> documentation about the lifecycle too to make sure it's what you
> actually need.
> http://developer.android.com/reference/android/app/Activity.html
>
> On May 6, 11:07 am, Cel <[email protected]> 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, 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!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
-----------------------------------------------
*Regards :*
               *Muhammad Nasir Aftab*
-----------------------------------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to