*> 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-orientation-change.html

I know there are other links that talk about this in the Dev Guide but I
couldn't find them quickly for some reason and, as I am at work, can't
devote to much time into looking into this right now.  If I have time and
find them later, I'll be sure to post them as well.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Mon, Jul 12, 2010 at 4:25 PM, Bret Foreman <bret.fore...@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
> means that the service unbind, bind, and unbind are called rapidly
> too. And that seems to cause a null pointer exception inside the bind/
> unbind logic somewhere. I believe this happens because I'm calling
> bind before the unbind is finished and that's happening because I
> can't tell when unbind is finished. Just a theory at this point, but
> it's looking suspicious.
>
> --
> 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<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
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

Reply via email to