43

I fully appreciate dumping lots of data into the preferences is totally inappropriate, but my requirement is not that great, but large enough (potentially 500-5000 bytes) where I've no idea whether it's appropriate or not. The docs do not help. http://developer.android.com/reference/android/content/SharedPreferences.Editor.html

I've searched the net and Stackoverflow and can't find a definitive answer on: a) what the actual limit is, based on the underlying architecture b) what the practical limit is, based on performance (I find writing even short pref values can take a few seconds, but I suspect that's just a flash write delay)

Would appreciate clarification.

Ollie C
  • 28,313
  • 34
  • 134
  • 217
  • possible duplicate of [Android SharedPreferences limitations?](http://stackoverflow.com/questions/3199910/android-sharedpreferences-limitations) – richq Jun 15 '11 at 21:18
  • Check out this thread. http://stackoverflow.com/questions/3199910/android-sharedpreferences-limitations – Jonas Törnqvist Jun 15 '11 at 18:19

1 Answers1

66

All shared prefs are stored in /data/data/[package name]/shared_prefs/[app name].xml, so i think there's no limit based on architecture.

I don't know practical limit but I think it's enough for you.

AADProgramming
  • 6,077
  • 11
  • 38
  • 58
merrymenvn
  • 878
  • 7
  • 12