Ang.: Re: Ang.: Re: Ang.: Re: Ang.: Re: [android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-13 Thread Jump
Yes, that's what I was referring to. I also saw the Handling Runtime Changes post. Thx! (Regarding the header. If you mean the "Ang:". I am responding directly from google groups webgui which defaults to my local languag

Re: Ang.: Re: Ang.: Re: Ang.: Re: [android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-13 Thread Dianne Hackborn
It would be nice if you could set up your e-mail app to retain the same header. The correct way to do this is to use things like: http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() On Fri, May 13, 2011 at 5:31 PM, Jump wrote: > There's nothing wr

Ang.: Re: Ang.: Re: Ang.: Re: [android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-13 Thread Jump
There's nothing wrong with my app. I just want to prevent it from restarting unnecessarily since it loads textures n' stuff. If i need it, I will handle configuration changes at runtime. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

Re: Ang.: Re: Ang.: Re: [android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-13 Thread Dianne Hackborn
Um. You totally missed my point. Don't throw a bunch of stuff in to config changes. FIX YOUR APP. I said, throwing things into config changes does NOT fix the problem. You need to make sure your app correctly deals with config changes, because they CAN and WILL happen. Once you do that, then

Ang.: Re: Ang.: Re: [android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-13 Thread Jump
Wow, your assumption was correct! :D I am forcing landscape mode since it's a game. I just added android:configChanges="orientation" and this was the solution to my problem. I see the importance of configChanges. I will probably add keyboard and keyboardHidden as well. Locale is ok if it destro