Code2care : TechZone Apps & Tutorials

How to check if SD Card is present on an Android Device

How to check if SD Card is present on an android Device before reading or writing on an Android device.

public static boolean isSDCardPresent() {
        return android.os.Environment.getExternalStorageState().
        equals(android.os.Environment.MEDIA_MOUNTED);
    }






Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17