I believe the latter enables you to have multiple preference files if you thusly desire.
In most cases, you will have one preference file, and the former will suffice. On Thursday, October 11, 2012 9:13:58 AM UTC-5, Mario Bat wrote: > > Hi, what is the difference betweent > PreferenceManager.getDefaultSharedPreferences and > getSahredPreferences(String name, int mode) ? > > I thought that the defaultSharedPreferences are someting like global > preferences that every application can manipulate. So lets say that I can > call a preference from another application in my own application, and even > change it. > And the getSharedPreferences are preferences that I can only use in my > application. > > Thats just what I thougt it is...but I'm not sure. > > > -- 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

