Questions tagged [action-open-document-tree]
8 questions
0
votes
2 answers
Write a new file in selected directory with OpenDocumentTree: transform Uri in path
My app has to save a new excel file in a user-selected directory.
The user select the directory with OpenDocumentTree picker directory picker. This intent returns an Uri.
I'm not able to transform Uri in path for the write function. How can I do?…

linuxp
- 13
- 3
0
votes
1 answer
AndroidTV and OPEN_DOCUMENT_TREE Intent
How do I find out if the ACTION_OPEN_DOCUMENT_TREE intent is supported on Android TV?
Targeting API 32 and using the StorageVolume createOpenDocumentTreeIntent call. I can create the intent, but when I attempt to launch it, I get:
"You don't have…

Rich
- 76
- 1
- 2
0
votes
1 answer
Unable to create OPEN_DOCUMENT_TREE activity under Android 12
I'm attempting to open a system file dialog, to allow the user to select a location to store application configuration XML files. I am trying to use the ACTION_OPEN_DOCUMENT_TREE intent to initiate the dialog, but the application crashes instead,…

Jan Petersen
- 21
- 2
0
votes
0 answers
Why would this Android intent never return?
I'm trying to open the document tree to allow the user to save some data in the location of their choice. Here's code:
public void OpenFilePicker(Uri uriToLoad, int theCode)
{
Intent aIntent = new…

KiraHoneybee
- 495
- 3
- 12
0
votes
2 answers
Accessing files created in public folders after uninstall and reinstall of app?
I'm using SqliteImportExporter library to import and export my database file to public folder "Documents". I don't think the file has a MIME type, it's just created from a stream of bytes and has a .db file extension.
After targeting Android API 30,…

grolschie
- 2,163
- 2
- 12
- 29
0
votes
2 answers
How to gain access to a specific folder and write a file into it using Scoped Storage
My app has a feature that exports GPS data in txt format into a shared folder (now accessed with getExternalStorageDirectory), and I have to switch it to Scoped Storage (API 30).
(As information, the app is the open source GPS Logger for…

Graziano
- 313
- 1
- 4
- 11
0
votes
0 answers
Accessing Excel File path in android 10 & Android 11
I am working on a project which allow user to select excel file from any folder, issue is faced when I am trying to access path by following code.
My Intent
int currentVer = android.os.Build.VERSION.SDK_INT;
if( currentVer ==…

MKhan
- 1
- 2
0
votes
1 answer
is there any way to add custom extra infomation on ACTION_OPEN_DOCUMENT_TREE
I have to ask the user for the name of the folder where a file is to be saved.
I also have to send information related to the name of the file that is supposed to be saved.
Is there any way to send this information along with the intent?
If I do…

Para
- 2,022
- 5
- 34
- 73