Android Question SOLVED - B4XPages Help Files

Robert Valentino

Well-Known Member
Licensed User
Longtime User
In a standard B4X App I have a help directory located under my Files directory that contains all my htm / html files.

I use to load them doing this:
B4X:
                Log("Help LoadURL - file:///android_asset/help/" &HelpPage)
                
                mWebView.LoadUrl("file:///android_asset/help/" &HelpPage)

Now this doesn't seem to work under B4XPages. When I do a ListFiles on the Assets directory I do not even see the help sub directory. Does this directory not get copied on B4XPages?

B4X:
For Each FileName As String In File.ListFiles(File.DirAssets)
    Log("File:" &FileName)
Next


How would load and display a help page under B4XPages?

Normally I have a Class Module that I initialize and call to display the help page (on the specific Activity)

Not sure the proper way to do this in B4XPages.

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Forgot to add these lines to my main

B4X:
#if Debug   
    #DebuggerForceStandardAssets     : true
#else
    #DebuggerForceStandardAssets     : false
#end if
 
Last edited:
Upvote 0
Top