Yeah, I've read this article before. But note this quote: "If the object you pass is for some reason tied to the Activity/ Context, you will leak all the views and resources of the activity. This means you should never pass a View, a Drawable, an Adapter, etc."
I believe a ServiceConnection object may be something that will leak if I store it with onRetainNonConfigurationInstance. After all, the ServiceConnection is certainly "tied" to the Activity. I sure wish onServiceDisconnected was working so I wouldn't have to complicate things like this. On Jul 12, 3:35 pm, Justin Anderson <janderson....@gmail.com> wrote: > *> An interesting related problem is that rotating the screen causes my > Activity to be destroyed and (re)created in quick succession.* > > This is done by design. You can find a few tips about how to program with > this in mind > here:http://developer.android.com/resources/articles/faster-screen-orienta... > ... -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en