Android Question SOLVED - WebView won't load webpage

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Sorry to have to report this.

I have been working on this problem https://www.b4x.com/android/forum/threads/cannot-load-page-in-webview.162735/ (I reported yesterday) for some time.

At this point I have to believe that WebView has a bug and that is why this page doesn't load.

The page in question is "www.leaguesecretary.com".

I am sure it has something to do with all the Ads, or external references but the No natter the page should load - it loads in browsers (all I have tried) just not a WebView

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Interesting. It loads on everything I have (all Samsung devices - Internet, Google, Chrome) -

But won't load in WebView container.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
not much of a problem here. my swiss army webview app uses a regular webview, so i don't know what the bug is all about. maybe the site's esthetics offends it; it is by far the worst-looking site ever. if i were a webview, i would refuse to load it too. whatever. i can load it and navigate in it (as evidenced by the attached), so let's hear no more talk of bug
 

Attachments

  • 1.png
    55.3 KB · Views: 76
  • 2.png
    38.7 KB · Views: 74
  • 3.png
    60.2 KB · Views: 75
Last edited:
Upvote 1

drgottjr

Expert
Licensed User
Longtime User
run the attached. one or more of the settings will allow the page to load. i borrowed them all from my webview debugging app. you don't need a webchromeclient, but if you want to see all the garbage the site is spewing, you'll need to add one. i just tested; page loads.
 

Attachments

  • bowling.zip
    8.2 KB · Views: 66
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
a bowling ball to the head to put me out of my misery will do fine, thanks.
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
One final note. If you are using this doSettings code in a B4XPages program you need to change the JavaObject Init From InitializeContext to just equals Me
JavaObject Init:
 '-------------------------------------------------------------------------------
 '    Call doSettings for fix to allow LS webpage to load
 '-------------------------------------------------------------------------------
 Dim jo As JavaObject

' jo.InitializeContext
  jo = Me
  jo.RunMethod("doSettings",    Array(sFLS_WebView))
   '-------------------------------------------------------------------------------
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…