Filepath error


I’m trying to resolve a file path in android device, but i get this error:

Attempt to invoke interface method ‘int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)’ on a null object reference

this is my code:


I found out what was the issue. The app did not have storage permission. but, why it dose not ask for it?

any clue?

thanks :roll_eyes: