App to demonstrate giving Permission to Camera App to Write in App Private External Storage space.
When you want to upload Full Quality images from your Android app using the Camera App but don't want to put the WRITE_EXTERNAL_STORAGE permission for any reason.
- Introduce a File Provider using the AndroidManifest.xml and point it to the filePath allowed to be shared with other apps.
- Create a file in the External Storage Private app space and give its Content URI to the Camera app intent via the extras
- Give temporary permission to write to the file
- onActivityResult, read the image from the file path you already knew, also revokePermissions for safety ( havent coded that yet)
https://developer.android.com/training/camera/photobasics.html#TaskPath
https://developer.android.com/guide/topics/data/data-storage.html#filesExternal