What's the maximum size for an Android shared preference value?

前端 未结 1 715
别跟我提以往
别跟我提以往 2020-11-27 21:09

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) wh

相关标签:
1条回答
  • 2020-11-27 21:59

    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.

    0 讨论(0)
提交回复
热议问题