Page 1 of 1

Query Content Provider and documents

Posted: 07 Dec 2018 14:38
by anuraag
I am trying to get file name, file path using Query Content Provider for contentUri like this

I am getting error
"Permission Denial: opening provider from ProcessRecord{71a3004 2854:ch.gridvision.ppam.androidautomagic/u0a132} (pid=2854, uid=10132) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs".

Edit : it looks to work only if triggered using send/share intent or action: start activity-pickup file". So problem solved.