Android Question Retrieving html files from storage problem

Penfound

Active Member
Licensed User
Longtime User
I have an app that takes an xml file parses it into an SQLite db then searches it for certain information and produces web pages. Then, using Erel's sliding panels each with a webview added, I should then be able to view the different months one per panel.

B4X:
vp.Panels(0).AddView(wvJan,0,0,100%x,100%y)
wvJan.LoadUrl(File.DirDefaultExternal & "/jan.html")
VP_PageSelected(1)

My problem is that, although the pages are being written correctly and stored in

storage/emulated/0/Android/data/packagename/files

I not able to get them to display in the webviews.

Can anyone see what it is that I am doing wrong?

Thanks for looking
Penfound
 

Penfound

Active Member
Licensed User
Longtime User
Many thanks Erel for the speedy response

B4X:
Case1
vp.Panels(0).AddView(wvJan,0,0,100%x,100%y)
wvJan.LoadUrl("file://" & File.DirDefaultExternal & "/jan.html")

In the end I found this worked perfectly.

Looking forward to version 3.5!! :)

Cheers
Penfound
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
with 3.5 you have to do this the same way
 
Upvote 0
Top