Java tutorial
//package com.java2s; import android.os.Environment; public class Main { static boolean isSdCard = false; public static boolean checkSdCard() { // if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { isSdCard = true; } else { isSdCard = false; } return isSdCard; } }