There are some new devices like Samsung Galaxy that comes with two sd-cards. I want to know if there is any way to find if a device has two sd-cards or a single sd-card. 开发者_如何学Go Thanks
I think that the only way is to check list of available roots using
File[] roots=File.listRoots();
Since Environment.getExternalStorageDirectory()
returns reference only to primary/default SD card
精彩评论