can't open twitter url in android webview

寵の児 提交于 2019-12-01 20:31:54
Abirami
wv.getSettings().setDomStorageEnabled(true);

This worked for me!

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!

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;
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!