I am new to this forum. Please be patient if this is not the right sub-forum for this kind of thread.
I am an Android developer, I am testing Storage Access Framework with NextCloud+CloudFiles.
I opened a thread on StackOverflow but maybe here I can get real help on this specific topic. If the solution is found here I will put it also on StackOverflow for others to know.
My app uses the ACTION_OPEN_DOCUMENT_TREE intent to let the user select a cloud folder, and then wants to create a text file inside that folder but I see that an error occurs.
It has to do with
com.example.safevents W/DocumentsContract: Failed to create document android.os.ParcelableException: java.io.FileNotFoundException: Failed to upload document with path /test/newfile.txt
Note that the folder uri is correctly retured and it has the read/write permissions.
df=DocumentFile.fromTreeUri(activity,uri); DocumentFile df2= df.createFile("text/plain","newfile.txt");
in the snippet above df2 is null.
Is the above mentioned intent really supported? And are the SAF DocumentFile creation methods supported?
Thank you in advance