The actual dialog objects get destroyed, and re-created around the time
of onRestoreInstanceState in the new activity instance (causing
onCreateDialog / onPrepareDialog to be called).
http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Activity.java&q=Activity%20package:android%20lang:%5Ejava$&type=cs&l=854
<http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Activity.java&q=Activity%20package:android%20lang:%5Ejava$&type=cs&l=854>
-- Kostya
20.08.2011 14:04, Snowak пишет:
Sorry for double posting, but there's one more thing that bothers me
regarding this problem. Dialog requires to pass Activity as a context,
but when changing screen orientation that activity is destroyed. How
can it use the cached dialog with invalid context? Is it setting it to
the new one?
--
Kostya Vasilyev
--
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