Skip to content Skip to sidebar Skip to footer

Can't Control The Initial Directory Where The Saf Ui Should Start

I'm trying to save a text file using SAF (Storage Access Framework) but I can't control where it should be saved, I used this method from the Documentation as follows: private void

Solution 1:

Quoting the documentation for EXTRA_INITIAL_URI:

[The extra] should specify a document URI or a tree URI with document ID.

A "document URI" is one that you obtained previously from ACTION_OPEN_DOCUMENT or ACTION_CREATE_DOCUMENT. A "tree URI" is one that you obtained previously from ACTION_OPEN_DOCUMENT_TREE. Uri.parse() is neither of those.

Post a Comment for "Can't Control The Initial Directory Where The Saf Ui Should Start"