Just realized, last year I added this code because the website I am going to LeagueSecretary
is so loaded with ADs
B4X:
'-------------------------------------------------------------------------------
' doSettings - This fix patches WebView so that LS webpage will load
' Without this routine the webpage just hangs
'-------------------------------------------------------------------------------
#IF JAVA
import android.webkit.WebView;
import android.webkit.WebSettings;
public void doSettings( WebView wv ) {
wv.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setDomStorageEnabled(true);
wv.clearClientCertPreferences( null );
wv.clearSslPreferences();
wv.clearHistory();
wv.getSettings().setDisplayZoomControls(false);
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setAllowFileAccess(true); // google turns this off by default as of api30
}
#End If
I wonder if the problem is when you go to leaguesecretary the first thing you get to is turn off your AD Block page. Wonder if that could be hanging things
I am attaching a little test program that when button is clicked should open up a page of instructions and when clicking on Open Web Browser should display the LeagueSecretary.com website.
This works on ALL my devices - but some users report it just hangs trying to go to the web page.
I tested your example in 3 devices:
- Redmi 9A - Android 10 - OK
- Tablet Samsung A9 - Android 15 - OK
- Moto G7 Plus - Android 10 - with Adblock -> the site is showing with adblock message.
Yes, but it is getting to the site for you. I have users that that never shows. I know I had a user that changed some privacy setting on their Chromebook that let them work but they could never remember what they changed. So frustrating to me. Guess I will have to buy another useless device to test on.