我正在尝试将我的文件保存到以下位置, FileOutputStream fos = new FileOutputStream("/sdcard/Wallpaper/"+fileName); 但是我得到了异常java.io.FileNotFoundException 但是,当我把路径保存"/sdcard/"起来的时候.
FileOutputStream fos = new FileOutputStream("/sdcard/Wallpaper/"+fileName);
java.io.FileNotFoundException
"/sdcard/"
现在我假设我无法以这种方式自动创建目录.
有人可以建议如何创建directory and sub-directory使用代码吗?
directory and sub-directory
android android-file
android ×1
android-file ×1