Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Environment; public class Main { /** Returns true if external storage is readable and writable. */ public static boolean isExtStorageWritable() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state); } }