Where will the image and pdf be stored? In ASD? In shared storage? In case the latter, whete exactly?
Aa far as I know the sharing component is only able to share from shared storage...
No, test the AIA, you don't need to copy or move anything, use sharing component it will take your file for sharing then select the app using which you want to share the file.
I tested on all devices consisting of real+emulators. I mentioned that in android 9 without read/write external storage permission extension was unable to store PDF and sharing component too was not getting the file from ASD. I've not more newer devices but tested in Android version 14, it worked.
Yes exactly
Your extension is fine, but if you want to use the sharing component to share the image or pdf, you have to copy or move it to shared storage before being able to share it on newer devices, because other apps are not able to access the ASD of your app anymore on newer devices
So if you want your example app to work on all devices, then you should consider this
I tested up to Android 14 Sharing component is working, other apps are getting generated pdf and image. No need to copy/move generated pdf/image, here are the blocks required>>>