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.
Your problem is that your shouldOverrideUrlLoading
needs to return true to indicate that the host application is managing the load:
private class ApplicationWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
view.loadUrl(url);
return true;
}
}
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!
wv.getSettings().setDomStorageEnabled(true);
This worked for me!