Permissions in Android application
Good evening,
I am working on an android studio project. I need to access my phone’s photos via a button onClick
I have added a button in my activity and I want that when I click on the button it should access for runtime permission to access device photos. Some how it automatically denies the permission and the app crashes. Can someone explain me the logic or give me some code for it?
I am working on an android studio project. I need to access my phone’s photos via a button onClick
I have added a button in my activity and I want that when I click on the button it should access for runtime permission to access device photos. Some how it automatically denies the permission and the app crashes. Can someone explain me the logic or give me some code for it?