上一篇博客讲到拍照截图保存到本地,http://blog.csdn.net/qq_31428453/article/details/78423625
图片无法保存到SD卡,原因是:创建文件和文件夹的方法有问题,正确示范如下
String path1 = getExternalCacheDir().getAbsolutePath(); String path2 = getExternalFilesDir(null).getAbsolutePath(); String path3 = getFilesDir().getAbsolutePath(); String path4 = getCacheDir().getAbsolutePath(); String path5 =Environment.getExternalStorageDirectory().getAbsolutePath()