Here you can find the source of getSDPath()
public static String getSDPath()
//package com.java2s; import android.os.Environment; public class Main { public static String getSDPath() { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { if (Environment.getExternalStorageDirectory().canWrite()) { return Environment.getExternalStorageDirectory().getPath(); }//from w w w . j a v a2s .c o m } return null; } }