Assigned
Status Update
Comments
vi...@google.com <vi...@google.com>
al...@google.com <al...@google.com> #2
Any updates on this? It's been a month already since I reported it, and it seems this crash is occurring quite frequently for my users.
Description
The line here:https://developer.android.com/reference/androidx/core/content/FileProvider#:~:text=File%20imagePath%20%3D%20new%20File(Context.getFilesDir()%2C%20%22my_images%22)%3B
uses the name of the file_paths.xml and not the path.
I believe
File imagePath = new File(Context.getFilesDir(), "images");
would be correct.FileProvider's
getUriForFile()
will replace the real path with the name, specified in file_paths.xml.