Android Fileprovider: IllegalArgumentException: Failed to find configured root that contains
- 阅读更多 关于 Android Fileprovider: IllegalArgumentException: Failed to find configured root that contains
问题 I have a question about the android FileProvider. I want to save a pdf document and open it with a default program. I don´t want to save it in external Storage. After I´ve successfully saved the pdf to the FilesDirectory/export/temp.pdf, I´ve tried to generate an URI by using FileProvider.getUriForFile(). File path = new File(getFilesDir(), "export"); File pdf = new File(path + File.separator + "temp.pdf"); pdf.getParentFile().mkdirs(); if (!pdf.exists()) pdf.createNewFile(); Uri uri =