LucaMs Expert Licensed User Longtime User Jun 23, 2022 #1 As the title suggests. I mean, of course, with UI. [I don't know how to select a file with B4I, as I don't have it, and most importantly I couldn't test it]
As the title suggests. I mean, of course, with UI. [I don't know how to select a file with B4I, as I don't have it, and most importantly I couldn't test it]
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2022 #2 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
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
LucaMs Expert Licensed User Longtime User Jun 23, 2022 #3 Erel said: 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 Click to expand... 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.
Erel said: 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 Click to expand... 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.