SharedPreferences is for persisting state to storage. If you just want to shared data between activities, it may not be the best choice. If you don't need to persist stuff to storage, you shouldn't be doing that.
On Mon, Jun 25, 2012 at 3:15 AM, djedjica <jelenka1...@gmail.com> wrote: > Hello, quick question, Im begginer so don't mock if is stupid one.I > understand that using shared preferences I save state of some variables > inside app, So if I understand right, I can save some variable type lets > say boolean inside one activity to be true, and call it by name in other > activity and use it for condition or something, it will give me most up to > date value??? Just asking to see if I understod it right? > > -- > 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 -- 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