phones like the galaxy s do a similar thing where /mnt/sdcard is the
internal memory and /mnt/sdcard/external_sd/ is the actual SD

personally I ended up kludging a solution where I query
android.os.Build.MODEL and switch on it.
I think it might be a legacy issue to do with having large amount of
internal storage but who knows...

On Oct 12, 3:53 am, BJGApps <bjga...@gmail.com> wrote:
> I have an app on the market and recently have had some reports of
> problems writing to the SD. What appears to work completely fine on
> some phones has proven not to work on others.
>
> I have done some searching on this and really need some advice to help
> make sure I am on the correct path.
>
> I am using Environment.getExternalStorageDirectory() to get the
> directory of the SD card. As I have read, this is the preferred method
> to get the path of external storage. From there I am creating a
> directory, a sub directory, and moving a file. This works perfectly
> fine for a majority of users, however more recently I have had reports
> of it failing this process.
>
> Two examples were the Atrix and the Bionic.
>
> It appears that some devices are reporting wrong information when
> using Environment.getExternalStorageDirectory(). It appears to return /
> mnt/sdcard when in reality it looks like the path should be /mnt/
> sdcard-ext. This causes an exception to occur where it is trying to
> make a directory in the wrong location.
>
> Can someone shed some light on how I am supposed to handle this? Am I
> supposed to be using something other than getExternal? What am I
> supposed to do if the devices return wrong information? I really don't
> want to have to tell someone its not my problem, contact their
> manufacture.
>
> Help me Android Developers, you're my only hope.
>
> -BJGApps

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

Reply via email to