Correct, it's not a technical limitation, it is explicitly done
because -any- resource (layouts, strings, etc) can change based on
both screen orientation and whether a keyboard is available, so
restarting the activity allows all of the resources to be reloaded
again with the correct values.

On Oct 8, 10:18 am, Xolotl Loki <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> > It seems there is some technical restriction internal to Android that
> > prevents it from just repainting screens after a rotation... unlike
> > the return from an external activity where the originating activity
> > remains intact.  What is the reasoning behind the design for screen
> > rotation forcing an activity recreate while a return from another
> > activity doesn't?
>
> I don't think it's a 'technical restriction' at all.  Your onCreate()
> method might have drawn itself differently, depending on the screen
> orientation.  Just because you have no use for this doesn't mean that no
> one else would.
>
> Just use onSaveInstanceState to persist your app state, then restore it
> in onCreate.  If you do this, users will be able to leave your app
> entirely, and come back to it without interruption.
>
> cheers,
> - --
> ᛏᚠᛖᚾᚱᛁᛊᚢᛚᚠᚱᛏ
> ᛏᚢᛚᚠᛊᛚᛖᛁᚠᚨᚱᛏ
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iEYEARECAAYFAkjs63UACgkQNig/07RbnEv3pgCeNJ0KjWRxlE7i7PNsHpC21ZaB
> qJwAn0hJNkfdK9yfvEu6J1lL14JZBLxJ
> =jJTC
> -----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
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