我要创建一个.pdf文件,我找不到文件异常。我在WRITE_EXTERNAL_STORAGE
文件中为AndroidManifest.xml
文件写了 File SDCardRoot = Environment.getExternalStorageDirectory();
//create a new file, to save the downloaded file
File file = new File(SDCardRoot + "xyz/", pdfFilename);
if (!file.exists()) {
file.mkdir();
}
OutputStream fileOutput = new FileOutputStream(file);
docWriter = PdfWriter.getInstance(doc, fileOutput);
权限,并为Marshmallow设备提供了运行时权限。
以下是我的代码:
views/batches/*
你可以请我出去吗?