Pent,
Looks close for the Galaxy S, but on my retail Euro version Build.MODEL
is "GT-I9000".
Build.PRODUCT and Build.DEVICE have the same value, as well.
Also, /sdcard/sd exists even when the external memory card is not
installed, in that case, writing to /sdcard/sd places files on the
internal memory card (the usual rule with a mount point that has not
been mounted).
-- Kostya
10.09.2010 16:28, Pent пишет:
My thinking was:
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
}
else {
// usual procedure
getExternal...
}
Does that look right ? I don't have any talkative users for testing
yet.
Thanks,
Pent
--
Kostya Vasilyev -- 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en