android 检测u盘和sdcard//方法一 android10 或者一下的应该可以使用 getVolumes() int sdCardNum = 0; int usbDiskNum = 0; StorageManager mStorageManager = getSystemService(StorageManager.class); List<VolumeInfo> volumes = mStorageManager.getVolumes(); //Collections.sort(volumes, VolumeInfo.getDes