Re: [android-developers] Enumerate sd cards

2013-03-12 Thread Yves Liu
Wow, if that is the case, it is a lot of work. :( No bullet proof solution then. On Sun, Mar 10, 2013 at 4:59 PM, RichardC richard.crit...@googlemail.com wrote: By guesswork, testing and end-user feedback on individual devices. On Sunday, March 10, 2013 11:03:36 PM UTC, yve...@gmail.com

Re: [android-developers] Enumerate sd cards

2013-03-10 Thread Yves Liu
Thank for the info. My question is that there are so many third party file explorer apps, how do they figure out the path of internal and external storages? On Fri, Mar 8, 2013 at 5:24 PM, RichardC richard.crit...@googlemail.com wrote: The problem we have here is that

Re: [android-developers] Enumerate sd cards

2013-03-10 Thread RichardC
By guesswork, testing and end-user feedback on individual devices. On Sunday, March 10, 2013 11:03:36 PM UTC, yve...@gmail.com wrote: Thank for the info. My question is that there are so many third party file explorer apps, how do they figure out the path of internal and external storages?

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread Yves Liu
Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd card path. On Wed, Mar 6, 2013 at 9:05 PM, TreKing

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread Mark Murphy
On Fri, Mar 8, 2013 at 4:21 PM, Yves Liu yves...@gmail.com wrote: Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread RichardC
The problem we have here is that getExternalStorageDirectory does NOT return the location of the sd card. In fact it has nothing to do with sd cards and never has. From the docs: *Note: don't be confused by the word external here. This directory can better be thought as media/shared storage.

[android-developers] Enumerate sd cards

2013-03-06 Thread yves...@gmail.com
I am trying to develop an app which has a feature like FTP. So, at the beginning, I want to enumerate all sd card storages on the device, and ask user to pick where they want to store the data. Then if external sd card is removed, I want to change to internal storage if it set to external sd

Re: [android-developers] Enumerate sd cards

2013-03-06 Thread TreKing
On Wed, Mar 6, 2013 at 10:29 PM, yves...@gmail.com yves...@gmail.comwrote: So, I want to know, first, how to enumerate all storage locations Did you check the documentation? http://developer.android.com/guide/topics/data/data-storage.html , second, monitor sdcard insert/eject events. See