Java tutorial
//package com.java2s; import android.os.Environment; public class Main { /** * Check is SD card is ready for read * * @return */ public static boolean isSDReadable() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state); } }