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