Questions tagged [documents-provider]

DocumentsProvider provides a way to extend access in the Storage Access Framework in Android to new sources such as cloud storage.

DocumentsProvider provides a way to extend access in the Storage Access Framework in Android to new sources such as cloud storage.

5 questions
4
votes
1 answer

Android Documents Provider how to use and do I need it?

I'm going to create an app for accessing the files from the Internet. I do not want to implement UI, but instead to make them visible from other file managers. So, I chose to implement a Document Provider. And I did it. On the next pictures you can…
Farad
  • 885
  • 2
  • 9
  • 25
2
votes
1 answer

SecurityException on Android Q for acessing ExternalStorage with ACTION_OPEN_DOCUMENT_TREE

I'm trying to fetch all images from a specific folder for displaying in a recycler view, but no matter what, i get a SecurityException. I'm currently doing it the following way: Code for selecting folder Intent i = new…
1
vote
1 answer

How to refresh Android Files app directory view on DocumentsProvider data

I have a DocumentsProvider that simply republishes a directory from an external file storage. Everything works well, however when deleting a file from the Android Files application, the directory does not get refreshed after the file is deleted. I'm…
ondra
  • 9,122
  • 1
  • 25
  • 34
1
vote
2 answers

queryRoots calls queryDocument first, not queryChildDocuments

I'm writing a wrapper for SAF wrapper for Dropbox since everyone (including Google) is too lazy to implement this "very rich" (ie: awful) API. I've got my root in the picker, but I thought queryChildren should be called first. However,…
Anthony
  • 7,638
  • 3
  • 38
  • 71
0
votes
0 answers

How to make Custom DocumentsProvider private

I have created a Custom DocumentsProvider for my Android app. How can i make this private, so that it's exclusively accessible in my own app where it is declared. I tried making exported = False i get a security Exception. I tried to create new…
user38561
  • 1
  • 2