有哪些品牌做打底衫的网站,wordpress cdn 不刷新,免费建设一个可以访问的网站,旅游网站的建设依据和背景从标题中可以看到#xff0c;我在Android中将文件写入sdcard时遇到问题.我想写入将在sdcard上的公共空间中的文件#xff0c;以便任何其他应用程序都可以读取它。首先#xff0c;我检查sdcard是否已安装#xff1a;Environment.getExternalStorageState();然后#xff0c;…从标题中可以看到我在Android中将文件写入sdcard时遇到问题.我想写入将在sdcard上的公共空间中的文件以便任何其他应用程序都可以读取它。首先我检查sdcard是否已安装Environment.getExternalStorageState();然后我运行以下代码File baseDir Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);baseDir.mkdirs();File file new File(baseDir, file.txt);try {FileOutputStream out new FileOutputStream(file);out.flush();out.close();Log.d(NEWFILE, file.getAbsolutePath());} catch (IOException e) {e.printStackTrace();}我有...在我的AndroidManifest.xml中。确切的错误是这样的java.io.FileNotFoundException: /storage/1510-2908/Download/secondFile.txt: open failed: EACCES (Permission denied)我正在模拟器上测试代码(模拟Nexus5 API 23)。我要求的最低SDK版本是19(4.4 Kitkat)。另外使用相同的代码将文件写入sdcard上的私有文件夹一切都可以正常工作所以我想说以前的代码也应该可以工作File newFile new File(getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), esrxdtcfvzguhbjnk.txt);newFile.getParentFile().mkdirs();try {FileOutputStream out new FileOutputStream(newFile);out.flush();out.close();Log.d(NEWFILE, newFile.getAbsolutePath());} catch (IOException e) {e.printStackTrace();}有谁知道这可能是什么问题吗可能是KitKat 4.4不再允许以sdcard写入公共空间了吗