Suvitruf Suvitruf - 5 months ago 30
Android Question

Where do I store the application's resource

Our application gets images from network. And need to save it locally.

Where should I store it? In internal storage in files, in SQLite db in Blob field or in the external storage?

Internal storage space on old devices is very low, so should i check free space and that chose place to store?


this is well documented in Android Developers:

As you're saying, old devices can have low free space and if you're ok with your files being accessible from a file manager then it is preferred to check if external storage exists and save it there.

EDIT: Check if external storage is present:

public boolean isExternalStorageWritable() {
    String state = Environment.getExternalStorageState();
    if (Environment.MEDIA_MOUNTED.equals(state)) {
        return true;
    return false;