Il Fri, 10 Sep 2010 05:28:17 -0700, Pent ha scritto:
> if ( android.os.Build.MODEL contains-case-insensitive Vibrant /
> Incredible / Galaxy ) {
> if ( dirExists( "/sdcard/sd" ) )
> // use that one
> else if ( dirExists( "/emmc" ) )
> // use that one
Hardcoding paths is always bad.
Put an "advanced settings" entry (with a disclaimer) in your menu and ask
the user where he wants to save the data. Else save them in getExternal...
On Android 2.2 (GAOSP for Samsung Galaxy) those paths changed to
/mnt/sdcard/ and /mnt/sdcard/sd/ and some apps stopped working. The same
could happen on official GalaxyS Froyo update.
Bye.
--
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