Dear friends, I’m facing a problem in my app with permissions.
I have an app that when the user clicks a button, the app call the camera to take a picture. When the picture is taken, this picture should replace the button old picture.
But only in THE FIRST launch of the app, android asks for permition to access photos media and files, AFTER the picture is taken, so when I agree the access I can’t replace the button old picture without taking the photo again.
I would like to ask this permission before taking the photo. How can I do it?