Farhan Khurshid
Farhan Khurshid

Reputation: 11

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. Thanks

Upvotes: 1

Views: 218

Answers (1)

Barmaley
Barmaley

Reputation: 16363

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

Upvotes: 1

Related Questions