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:
Code:
                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?

Code:
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
 
Forgot to add these lines to my main

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