Android examples for Hardware:SD Card
Detect whether SD card has mounted or not.
//package com.java2s; public class Main { /**//from w w w.j a v a 2 s . c om * 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); } }