开发者

Android: Finding if the device has Dual Sd cards

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜