Dave's Brain

Browse - Programming Tips - How can I find the second sdcard?

Date: 2017feb21
OS: Android

Q.  How can I find the second sdcard?

A.	One of these should work

String path1 = System.getenv("SECONDARY_STORAGE"); String path2 = System.getenv("EXTERNAL_SDCARD_STORAGE");
By the way, how to get the *first* sdcard:
Alternate approaches:
Looked at everything call *card* below /mnt
Look for /sdcard and /extscard

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.