On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky <[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]

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]
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