Helen Fog
Helen Fog

Reputation: 11

Get external sdcard in android phone

I got the both the external and internal(phone memory ) SD card in listing in my application but along with that i got some more folder and i don't want them so how can i limit to external and internal SD card only in listing...

i provided the root directory which is /storage and it displays whole the folder...

or can some one tell me how to get external sd card programmaticaly

i have tried the usual way File file = Environment.getExternalStorageDirectory();

given by android but it returned only internal path .

Upvotes: 0

Views: 1176

Answers (1)

Tarsem Singh
Tarsem Singh

Reputation: 14199

Environment.getExternalStorageDirectory() it returns sd card path but depends on the device

for better under standing check Find an external SD card location

Upvotes: 1

Related Questions