On Thu, Oct 11, 2012 at 10:13 AM, Mario Bat <batfudba...@gmail.com> wrote: > Hi, what is the difference betweent > PreferenceManager.getDefaultSharedPreferences and > getSahredPreferences(String name, int mode) ?
The first is the default (e.g., what PreferenceActivity will use). The second uses a name that you supply. > I thought that the defaultSharedPreferences are someting like global > preferences that every application can manipulate. No, all SharedPreferences are local to an app, by default. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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