first thing this not kodular block
use .OpenDocumentTree and make URI and use that uri
for downloading use ASD
first thing this not kodular block
use .OpenDocumentTree and make URI and use that uri
for downloading use ASD
This post was flagged by the community and is temporarily hidden.
can u share a demo aia
Yes, and you canโt access it either:
/storage/emulated/0
(the root dir of the external storage) and/storage/emulated/0/Download
But you can access:
/storage/emulated/0/Downloads
But why do you want to access restricted dirs?
can i tell you in pm ?
Yes, sure.
Please provide aia file
Sorry, but for what?
Read post and see example
It is very easy to use
Please try:
Label1.text was initially set to content://com.android.externalstorage.documents/tree/primary%3AAndroid
.
okay i am trying it
it was working fine and it working in other app-specific dir too
thank you
In that case correct me if i am correct
if i have selected the android folder in access, then can i access
android/media/com.whatsapp/whatsapp/media/whatsapp document
Please confirm
in this block the sourceUri is the uri of the file which is required to be copies and targetParentUri is the uri of the folder in which the data is required to be copied
Yes.
To learn how to build document URIs please check example 1.
I am using an image picker to pick the image and save it in ASD
โฆ
Problem which i am facing is which folder the user Should give access
If he select DCIM folder then he cannot handle the images which are received from whatsApp.
If user select Android folder to access whatsapp images then he cannot handle the images from DCIM
As such user cannot give access to full storage
What is way out for this problem
You can get access to multiple document trees.
In that case user has to give access multiple times initially
Pl confirm?
You can ask user to give permission when needed.
If you can work with 1 folder then only ask for access to one folder then ask for access to other folder when needed.