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