It was the HTC Incredible, which had internal storage under /emmc.
Since then, another phone that has two memory card slots, one internal
pre-installed, and one accessible to the user, is the Samsung Galaxy S.
They've learned from HTC's mistake, though, and made the built-in memory
accessible via getExternalStorageDirectory (and the external memory card
as a directory under that one).
-- Kostya
28.02.2011 18:40, Prakash Iyer ?????:
Is this something new? For the HTC phone on Verizon (Desire?) I was
pretty sure this returned the paltry external SD card while most users
ended up using the built in storage. This causes most apps indexing
content on these devices to fail, including the Gesture Search from
Google Labs... Would love to be wrong or plain ignorant on this as it
has caused me a lot of grief and custom code...
On Sat, Feb 26, 2011 at 7:32 PM, Dianne Hackborn <[email protected]
<mailto:[email protected]>> wrote:
It returns the main partition, that you can count on being
populated; for a device with a built-in USB mass storage and an
external SD card it will return the built-in one.
Android does not yet define the behavior for dealing with multiple
SD cards. Devices that use that configuration are outside of the
core platform, and should provide their own mechanism for them if
they want -- such as a shared library to find out about the
secondary storage.
The platform really needs to define a good UX story around this
before just throwing APIs at developers.
On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis
<[email protected] <mailto:[email protected]>> wrote:
What does this API do on a phone that has two SD cards? Does
it just
pick only one of them? Or do all such devices fail CDD and so
are not
on the Google Android Market?
On Feb 26, 3:41 pm, Dianne Hackborn <[email protected]
<mailto:[email protected]>> wrote:
> On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky
<[email protected] <mailto:[email protected]>>wrote:
>
> > I am not worried about Market at all. I am worried about
the portable
> > way to tell my program where is the sdcard root directory
is mounted
> > because part of the usage scenario is user being able to
upload
> > certain files to sdcard where my program must be able to
find them.
>
> > To clarify, this is a port of Squeak (Smalltalk) [1], [2]
to Android
> > which I am trying to alter to fit my needs; in particular
the original
> > port loaded the image from assets, but I would like to be
able to load
> > it from sdcard where user may place it after customization
using an
> > instance of Squeak on user's PC.
>
> The correct way to do this is
Environment.getExternalStorageDirectory().
>
> If you want to make your application work on an incompatible
device that has
> this API broken, you will need to write code specifically
for that device.
> There is no magical solution that makes your app work
regardless of what
> someone has done to Android.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected] <mailto:[email protected]>
>
> Note: please don't send private questions to me, as I don't
have time to
> provide private support, and so won't reply to such e-mails.
All such
> questions should be posted on public forums, where I and
others can see and
> answer them.
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Dianne Hackborn
Android framework engineer
[email protected] <mailto:[email protected]>
Note: please don't send private questions to me, as I don't have
time to provide private support, and so won't reply to such
e-mails. All such questions should be posted on public forums,
where I and others can see and answer them.
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto: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
--
Kostya Vasilyev -- 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en