I don’t understand the message I’m getting with Eclipse. I added a “/sdcard” as a directory, and I got the warning:
Do not hardcode "/sdcard/"; use Environment.getExternalStorageDirectory().getPath() instead
So, obediently, I changed as demanded, but then I get an error:
The method getExternalStorageDirectory() is undefined for the type Environment
So??
Thanks!
Some phones name their sd folder differently ex.:
In samsung phones, it is named
external_sd, and your code will fail.control+shift+o –> to add imports in eclipse, otherwise it should be there,