Wish B4XLib to select (local) file

LucaMs

Expert
Licensed User
Longtime User
B4J - use FileChooser.
B4A / B4i - the process of selecting "files" / resources is very platform specific.
Cross platform example: https://www.b4x.com/android/forum/t...-save-and-load-external-files.132731/#content
I will certainly take a look at that example.

I was "playing around" and to select a file with both B4A and B4J I had to write code like this (partial code, of course):

B4X:
    #If B4A
        Private mContentChooser As ContentChooser
    #ELSE IF B4J
        Private mFileChooser As FileChooser
    #End If

B4X:
Public Sub Initialize As Object
    #IF B4A
        mContentChooser.Initialize("ContentChooser")
    #Else If B4J
        mFileChooser.Initialize
    #End If
    Return Me
End Sub

Etc.

Having a B4Xlib to accomplish this, getting an event returning directory and file name, would be useful.

I'll try to do it myself, after looking at that example (obviously I won't be able to test the library).


Thank you, Erel.
 
Top