Java tutorial
//package com.java2s; import java.io.File; import android.os.Environment; public class Main { public static File getSDCardRootFile() { if (isSDCardEnable()) { return Environment.getRootDirectory(); } else { return null; } } public static boolean isSDCardEnable() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); } }