Java tutorial
//package com.java2s; import android.os.Environment; public class Main { public static String getSDPath() { if (Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) { String sdDir = Environment.getExternalStorageDirectory().getPath(); return sdDir; } return null; } }