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

  • Gallery Chooser.zip
    10.1 KB · Views: 381

GMan

Well-Known Member
Licensed User
Longtime User
Something is misssing ;-)
B4X:
Unbekannter Typ: jk_materialtoast<br />Haben Sie eine Library-Referenz vergessen?
 

josejad

Expert
Licensed User
Longtime User
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:
Top