Ah, sorry, i didn't read your question well enough.
You're wondering about the extra onCreate-onDestroy (number 2. and
3.), and not about the expected calls 1. and 4.

This should happen (and that's what i see in my activities):

Start activity:
onCreate.

Hit Ctrl-F11:
onDestroy (current activity)
onCreate (new activity)

Hit Ctrl-F11 again:
onDestroy (current activity)
onCreate (new activity)

etc.



On Jun 20, 5: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