Skip to content Skip to sidebar Skip to footer

WebView Is Not Opening Google.com

My webview is able to load both https & http sites But not https://www.google.com It doesn't throw any error either. Here is my code.I am unable to solve this problem supe

Solution 1:

There is a bug in your code

Your code

public boolean shouldOverrideUrlLoading(WebView view, String url) {
            return true;
        }

Correct code

 public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return false;
            }

ShouldOverrideUrlLoading should return false to open url in webview. True is for opening in some other app.


Post a Comment for "WebView Is Not Opening Google.com"