Android – Check whether the SD-card is available or not
Problem: How to check whether the SD-card is available or not programmatically?
Solution:
boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);
if(isSDPresent)
{
// yes SD-card is present
}
else
{
// Sorry
}

