https://kotlinlang.org logo
#android
Title
# android
m

Magnus W

07/30/2019, 6:51 PM
Is it possible to track what exact permission I am missing if I get the following error?
java.lang.RuntimeException: Unable to start activity ComponentInfo{cafe.gophers.mynavigationapplication/cafe.gophers.mynavigationapplication.MainActivity}: java.lang.SecurityException: Permission not granted for: CardContentProvider.query /notes (cafe.gophers.mynavigationapplication)
I have added the permissions I found on github for CardContentProvider, but that didn't work
b

bezrukov

07/30/2019, 7:31 PM
What do you mean by "added"? Did you add them into manifest? Some permission requires request at runtime
m

Magnus W

07/30/2019, 7:45 PM
I requested them at runtime
I just found that when the app crashed, I could look at "info", and then permissions
my permission was there, but turned off. Maybe I clicked denied the permission once, and then it didn't ask again?
ah, interesting. I loaded it on my phone, and the behaviour was exactly the same. The app crashes, when I go into its permissions, the one I need os disable