P Penfound Active Member Licensed User Longtime User Mar 3, 2014 #1 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. Code: Copy 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
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. Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Mar 3, 2014 #2 Code: Copy wvJan.LoadUrl("file://" & File.Combine(File.DirDefaultExternal. "/jan.html")) Upvote 0
P Penfound Active Member Licensed User Longtime User Mar 3, 2014 #3 Many thanks Erel for the speedy response Code: Copy 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
Many thanks Erel for the speedy response Code: Copy 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
DonManfred Expert Licensed User Longtime User Mar 3, 2014 #4 with 3.5 you have to do this the same way Upvote 0