Yo, What Up?‎ > ‎

Is sd card present?

posted Feb 17, 2012, 2:41 PM by Ken Hunt
Ever wanted to see if the device has an sd card? Here's a simple method:

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

Enjoy!
Comments