判断是否存在SD卡
//判断sdcard是否存在? if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){ Log.d(tag, "sdcard不可用!"); Toast.makeText(context, "没有找到SDCard!", Toast.LENGTH_LONG); return ; };
判断是否存在SD卡
//判断sdcard是否存在? if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){ Log.d(tag, "sdcard不可用!"); Toast.makeText(context, "没有找到SDCard!", Toast.LENGTH_LONG); return ; };