Exception is thrown while sharing file to another app
One of our customers complained about issues when he tried to share a PDF with filled out form fields from the Reader to our app.
I was able to pin down the source of this problem to sharing a PDF, editing it, and sharing a copy, without saving a copy to the device.
In this case the Android Studio Logcat shows following exception when you try to share the file:
permission denial: reading com.adobe.reader.misc.fileprovider uri content://com.adobe.reader.fileprovider/flattening_temp_dir/ from pid=14042, uid=1000 requires the provider be exported, or granturipermission()The exception prevents the selection of target apps, to share the file with, to open.
Saving a copy of the edited document into the device first, and sharing the file afterwards instead, works.
There is a German review with 81 upvotes probably complaining about exactly this problem:
