This example is a very simple implementation of the process of registering photos taken by cameras that support Android scoped storage in the media store.
mond-al/example-camera-capture
An example of how to request a camera capture and add media storage. This example support scoped storage too.
Kotlin