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

2011-05-10 Thread harsh chandel
override the back button and pass intent to the class you want to go to. and save the state of the current activity On May 10, 1:54 pm, Ali Chousein wrote: > I agree with Muhammad. Save your instance state and restore it when > necessary, instead of trying to do something against the framework. >

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

2011-05-10 Thread Ali Chousein
I agree with Muhammad. Save your instance state and restore it when necessary, instead of trying to do something against the framework. -Ali -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

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

2011-05-07 Thread Me
On back button you need to save the instance state of activity . . . On Fri, May 6, 2011 at 11:51 PM, Kevin TeslaCoil Software < ke...@teslacoilsw.com> 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

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

2011-05-06 Thread Kevin TeslaCoil Software
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 wrote: > i know how to cancel back keypress, so that the act