if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { // sd card 可用 }else { // 当前不可用 }//该片段来自于http://www.codesnippet.cn/detail/211120137386.html
来源: http://www.codesnippet.cn/detail/211120137386.html