how to check internal and external storage if exist
问题 How do i know if there are internal and external storage in android pragmatically? does anyone how to know how to check both internal and external storage thanks in advance 回答1: it's already explained in android documentation. Code taken from documentation boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media