TrevorEdwards / bigredapp-android

Informational Android app for Cornell University.
https://play.google.com/store/apps/details?id=is.genki.bigredapp.android&hl=en
MIT License
14 stars 8 forks source link

Storage method #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

According to http://developer.android.com/guide/topics/data/data-storage.html#pref,

Shared preferences are not strictly for saving "user preferences," such as what ringtone a user has chosen.

Shared Preferences seems to be perfect for the amount of storage we'll be doing (very little, it's just a JSON Array of dining halls, their ~3 calendar events, and their ~15 menu items (tops)). It will nicely keep the items in memory, and we won't have to deal with either (A) building a SQL database - which seems like total overkill or (B) having to do writes and reads from a file.

I'm gonna move forward with this for now, just thought I'd open discussion about it just for good measure.

ghost commented 9 years ago

Closing for now. We are going to worry about caching later.