开发者

Android: Finding if the device has Dual Sd cards

开发者 https://www.devze.com 2023-03-17 07:06 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消