I would claim it's a mistake for these to cause side effects. Create
followed by destroy should merely be an expensive null operation.

I don't know why it's happening for you; I agree it's strange. One
thing that occurs to me -- does your activity allow the background to
be seen? Perhaps the behavior relates to multiple configuration
changes, perhaps with the launcher or other activity behind your
activity.

On Jun 20, 2:30 pm, Ali Chousein <[email protected]> wrote:
> Hi,
>
> Thank you for the reply. The page gives useful information. However,
> it does not explain why the extra call to onCreate and onDestroy takes
> place when the orientation is changed from landscape to portrait. When
> the orientation is changed from portrait to landscape there is no
> extra call to onCreate and onDestroy. I find the observed behavior
> when changing from landscape to portrait very strange. The extra call
> to onCreate and onDestroy can cause side-effects, as it does in my
> case.

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