Android Example Get Path of File/ Folder

On Telegram there is a group named 'B4A', I found the source code there on that group.
Hope it may help others.

I wanted to get the path of Folder when a file is selected from ContentChooser,
I found this code "Gallery Chooser", -Author By Abbas Nazari- On Telegram there is a group named 'B4A',
 

Attachments

Something is misssing ;-)
B4X: Copy
Unbekannter Typ: jk_materialtoast<br />Haben Sie eine Library-Referenz vergessen?
 
On Telegram there is a group named 'B4A', I found the source code there on that group.
The problem is that Erel is in the forum :)

It is a mistake to try to get a file path from the returned resource. It will not work in most cases, and even if you will be able to get the path, you will not be able to access it.
You can use File.OpenInput to access the remote resource.

Correct solution: [B4X] TextEditor - Save and load external files



Hope it may help others.
Anyway, thanks for sharing!
 
Last edited:
Back
Top