I found the post about Incredible. It queries images on both
"EXTERNAL_CONTENT_URI" and "phoneStorage". That is a very good solution for
this, but it is not finished.

For example, if you have images on both phone storage and external SD card,
and check the image full path will contain both locations, but I am not sure
how to figure out the root of both storages.

For example, on Galaxy S (2.1 firmware),
The SD Card location is like /sdcard/sd/foo/image1.jpg
The internal storage is like /sdcard/DCIM/image2.jpg.

On EVO (2.1 firmware)
The SD Card location is like /sdcard/mnt/sdcard/foo/image1.jpg
The internal location is like /sdcard/mnt/foo/image1.jpg

etc.

I am not sure how to parse the file full path and find out which portion, or
i mean how far is the root directory of both locations. Any suggestions?

Yves

On Mon, Aug 9, 2010 at 8:58 AM, Kostya Vasilyev <[email protected]> wrote:

> Patrick,
>
> Um, I have a Galaxy S here (European version), and
> getExternalStorageDirectory returns "/sdcard", which is internal memory.
>
> The "external" microSD memory card gets mounted at "/sdcard/sd".
>
> Maybe this is what you meant, too, but I thought I'd clarify the exact
> names.
>
> As for getting its name from code, someone posted a while ago a trick to
> get the internal memory name for the HTC Incredible. I can't find it now,
> but it involved querying a content provider. Maybe a similar trick would
> work on the Galaxy S as well?
>
> -- Kostya
>
> 09.08.2010 19:28, patrick пишет:
>
>  on the Galaxy S which has an internal sdcard + external sdcard slot,
>> getExternalStorageDirectory returns only path to the internal sdcard:
>> /mnt/internal_sd
>>
>> note that when you have an external sdcard, it will be available
>> under /mnt/internal_sd/external_sd/ but i dont know if there is a
>> method to get it.
>>
>>
>>
>>
>> On Aug 9, 2:02 pm, Mark Murphy<[email protected]>  wrote:
>>
>>
>>> On Mon, Aug 9, 2010 at 3:26 AM, [email protected]<[email protected]>
>>>  wrote:
>>>
>>>
>>>> There are more and more phone has built in storage and a sd card slot.
>>>> What's the best way to enumerate them all?
>>>> getExternalStorageDirectory() only returns one, right? How would the
>>>> app know there are more than one external storage?
>>>>
>>>>
>>>  From the standpoint of the Android SDK, there is only one "external
>>> storage".
>>>
>>>
>>>
>>>> And what their root directory names are?
>>>>
>>>>
>>> Please just use getExternalStorageDirectory().
>>>
>>> --
>>> Mark Murphy (a Commons Guy)http://commonsware.com|
>>> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy<http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy>
>>>
>>> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
>>> Available!
>>>
>>>
>>
>>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to