String status=Environment.getExternalStorageState();
2 |
3 | if ( status.equals ( Enviroment.MEDIA_MOUNTED ) ) |
4 | { |
5 | 说明有SD卡插入 |
6 | } |
String status=Environment.getExternalStorageState();
2 |
3 | if ( status.equals ( Enviroment.MEDIA_MOUNTED ) ) |
4 | { |
5 | 说明有SD卡插入 |
6 | } |
转载于:https://www.cnblogs.com/tianshidechibang234/p/3441122.html