SharedPreferences is private data per activity. I tried to store persist data from activity A but can't read it from activity B. Missed I something?
On Fri, Jan 9, 2009 at 9:42 PM, Mark Murphy <mmur...@commonsware.com> wrote: > > Evgeny V wrote: > > Something really simple like initial settings of the application which > > stored in one module but read from other module(s). For example number > > of last active tab, some selected index from spinner etc. > > If they are things that should also persist across application runs, you > might as well use SharedPreferences. > > If they are things that do not need to be persisted, and your > application is all in one process (the default), you could just use > static methods to access shared values. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Published! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---