我不明白我在 Eclipse 中收到的消息。我添加了一个“/sdcard”作为目录,我收到了警告:
Do not hardcode "/sdcard/"; use Environment.getExternalStorageDirectory().getPath() instead
于是,乖乖的按要求改了,结果报错:
The method getExternalStorageDirectory() is undefined for the type Environment
所以??
谢谢!