Skip to content Skip to sidebar Skip to footer

Can't Open Twitter Url In Android Webview

I have a problem in my ANDROID application. I would like to display a twitter page in my webview but the URL won't open. It keeps loading infinitely. I am using sdk 1.6. webVi

Solution 1:

wv.getSettings().setDomStorageEnabled(true);

This worked for me!

Solution 2:

I had to set the User Agent String on the webview to get it to work.

wv.getSettings().setUserAgentString("silly_that_i_have_to_do_this");

and that worked for me.

Hope it helps someone else!

Solution 3:

Your problem is that your shouldOverrideUrlLoading needs to return true to indicate that the host application is managing the load:

privateclassApplicationWebViewClientextendsWebViewClient { 
    @OverridepublicbooleanshouldOverrideUrlLoading(WebView view, String url) 
    {
        view.loadUrl(url);
        returntrue;
    }
}

Post a Comment for "Can't Open Twitter Url In Android Webview"