Java tutorial
//package com.java2s; import android.os.Environment; public class Main { /** * check whether or not ExternalStorage is available * * @return true if externalStorage is available,false otherwise */ public static boolean isSDCARDMounted() { return Environment.getExternalStorageState().contentEquals(Environment.MEDIA_MOUNTED); } }