Here you can find the source of hasMountSDCard()
public static boolean hasMountSDCard()
//package com.java2s; public class Main { /**//from ww w.jav a2 s . co m * Detect whether SD card has mounted or not. * * @author Sean Zheng * @CreateDate 2013-4-23 */ public static boolean hasMountSDCard() { return android.os.Environment.getExternalStorageState().equals( android.os.Environment.MEDIA_MOUNTED); } }