There is no need to subclass Application; I would highly recommend putting all of this stuff in a global static, that is just read once when needed. This way whatever current activity needs it can just get it without leading a copy itself. If the data really is specific to one activity, then onRetainNonConfigurationInstance is a good way to go.
On Thu, Jul 9, 2009 at 2:06 PM, Keith Wiley <kbwi...@gmail.com> wrote: > > Thanks. I also received a tip to subclass Application and use that > somehow (I'm still looking into it). > > Cheers! > > On Jul 9, 2:02 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > > These two links don't work well (the parenthesis mess it up). > > Look at the onRetainNonConfigurationInstance and > > getLastNonConfigurationInstance methods. > > > > On Jul 9, 5:00 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > > > > > Take a look at these two: > http://developer.android.com/reference/android/app/Activity.html#onRe...()<http://developer.android.com/reference/android/app/Activity.html#onRe...%28%29> > > > > > > http://developer.android.com/reference/android/app/Activity.html#getL...()<http://developer.android.com/reference/android/app/Activity.html#getL...%28%29> > > > > > On Jul 9, 4:30 pm, Keith Wiley <kbwi...@gmail.com> wrote: > > > > > > I have an app that might build some rather large data structures in > > > > RAM. Is there any way at all for my app to respond to orientation > > > > flips (either via keyboard flip or tilt-sensor rotation, I don't care > > > > which) without having to save and restore the state? It can take > > > > quite a while to save the data structures out to the SD card and can > > > > take quite a while again to read them back in. > > > > > > Thanks.- Hide quoted text - > > > > > - Show quoted text - > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---