Java tutorial
//package com.java2s; import android.os.Environment; public class Main { /** * Return if the state of the media is Mounted * * @return boolean if a SD is mounted on the device */ public static boolean isMediaMounted() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); } }