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(android.os.Environment.MEDIA_MOUNTED); if (sdCardExist) { SDdir = Environment.getExternalStorageDirectory(); } if (SDdir != null) { return SDdir.toString(); } else { return null; } } }