PADListener icon indicating copy to clipboard operation
PADListener copied to clipboard

Move Data to SD

Open Llammissar opened this issue 10 years ago • 2 comments

It'd be handy to be able to store data somewhere other than internal storage. Low-end devices don't tend to have oodles of internal storage, and SD migration can really ease that.

Llammissar avatar Oct 16 '14 15:10 Llammissar

The current version stores each monster image twice.

One version is bundled in the APK. And that's why the APK is 15+ MB. Theses images can't be easily read or updated though the app, so I've chosen to duplicate them the 1st time you start the app.

I'm working on a new version that dynamically fetch the images when you need them (using Picasso). It will cache them to limit data and battery usage.

This will drastically reduce the APK size and should limit the storage consumed by the app. Instead of having 2 * 1500+ images, you'll have in cache the images for the monsters you've displayed (so probably much less than 1500).

I did not see a setting in Picasso to choose where the disk cache was stored. I'll look into it.

Neraud avatar Oct 16 '14 15:10 Neraud

With V2, the APK is much smaller : from 18+ MB to 3.5 MB.

With this much smaller APK, do you think it would still be needed ?

Android 4.4 changed how SD cards are handled. So I suppose it'll be a pain to handle storing things outside on the internal storage anyway :/.

Neraud avatar Dec 09 '14 20:12 Neraud