Java tutorial
//package com.java2s; import java.io.File; import android.os.Environment; public class Main { public static String getSDPath() { File sdDir = null; boolean sdCardExist = Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); if (sdCardExist) { sdDir = Environment.getExternalStorageDirectory(); // get root path return sdDir.toString(); } return null; } }