标签:
获取Environment.getExternalStorageState(),然后得到的字符换进行查看
if("mounted".equals(Environment.getExternalStorageState())){
System.out.println("SDcard 挂载着");
}else if("unmounted".equals(Environment.getExternalStorageState())){
System.out.println("SDcard 未挂载");
}
标签:
原文地址:http://www.cnblogs.com/zzw1994/p/4886000.html