in Your example You are using the following code to pick a folder:
Dim i As Intent
i.Initialize("android.intent.action.OPEN_DOCUMENT_TREE", "")
i.PutExtra("android.content.extra.SHOW_ADVANCED", True)
StartActivityForResult(i)
Is it possible to pick only the attached usb-stick and not allowing the user to select the sd-card?
what I try to have is a system where the user can only read/write files to the attached USB-stick and has no access at all to the sd-card, internal storage.
From what i can see when running your code, picking a folder returns something like: