/**获取SD卡路径*/
public static String getSDPath(){
boolean isExist = Environment.getExternalStorageState()
.equals(Environment.MEDIA_MOUNTED);
if(isExist){//存在SD卡则返回路径
return Environment.getExternalStorageDirectory().toString();
}
return null;
}
转载于:https://my.oschina.net/osandroid/blog/103355