mihi-tr / actispy

BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Store activity index on sdcard not in local storage #18

Closed mihi-tr closed 10 years ago

mihi-tr commented 10 years ago

Currently activity data is stored in local storage. This removes the index if the app is removed or updated through the app manager. Storing information on the sdcard (in an index.json e.g.) makes the information persist.

mihi-tr commented 10 years ago

Does not work yet - updating the index doesn't work the way it's done.

mihi-tr commented 10 years ago

Alternative idea: Use deviceStorages enumerate to get all activity json files and load the data from all activities on the sdcard - only on startup though. This will take longer on updates. Since we only do this if no localStorage object is present (e.g. uninstall/reinstall) or update this is a neat solution.