Suvitruf Suvitruf - 1 year ago 101
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?

Answer Source

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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download