Since the Camera
component on devices with API ≥ 29 (→ Scoped storage *) no longer saves the pictures in this path:
file:///storage/emulated/0/Pictures`
but in the ASD (app-specific directory):
file:///storage/emulated/0/Android/data/<packageName>/files/Pictures
you can do something like this:
The following extensions are required:
- https://puravidaapps.com/file.php
- Get the API Level of the device
- Get the path of the ASD - app-specific directory (EDIT: you can also use: )
(*) Scoped storage → https://developer.android.com/training/data-storage#scoped-storage
Note:
READ_ / WRITE_EXTERNAL_STORAGE
is also requested if the pictures are saved in the ASD (i.e. on devices with API ≥ 29). This should not be like that. @ewpatton
https://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE