0

just want to ask Android how many data is SharedPreferences able to store?

I'm asking because i'm developing an Alarm App using shared preferences.

Is it ideal to use shared preferences in alarm application to save time and other settings?

Or what's the best way to do it?

any input is greatly appreciated.

Thank you very much in advance. :)

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
JJJCR
  • 11
  • 8

2 Answers2

2

It really depends on how many Alarms do you want to store.

10 Alarms? SharedPreferences are OK.
100 Alarms? An XML file will do.
1000 Alarms? Better use a db.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
0

Take a look at this answer and this other one.

If you are not storing big amounts of data, the SharedPreferences are just fine, which I believe is your case.

Community
  • 1
  • 1
FMontano
  • 907
  • 8
  • 17