我想在 Android中的WebView
打开微博页面开始时以https。但它是不开放和黑屏即将与连续负载。屏幕截图低于
I am trying to open twitter page begining with https in webview
in android. But it is not opening and blank screen is coming with continous loading. Screen shot is below
编辑:在主要的WebView我有链接的Twitter页面 https://twitter.com/mytwitterpage
。在点击链接,Twitter的网址是开放的web视图。我注意到,WebViewClient的onPageFinished方法被调用2次一次的 https://twitter.com/mytwitterpage
和第二次 https://开头mobile.twitter.com /#!/ mytwitterpage
。
In main webview I have link to twitter page https://twitter.com/mytwitterpage
. On clicking that link that twitter url is opening in webview. I noticed that onPageFinished method of WebViewClient is called 2 times one time for https://twitter.com/mytwitterpage
and second time for https://mobile.twitter.com/#!/mytwitterpage
.
任何人都知道这里有什么问题?
Anyone know what is wrong here?
在此先感谢。
通过添加以下线在我的code OK完成
Ok done by adding below line in my code
webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17");
我从这个岗位在计算器Problems装载mobile.twitter中的WebView 。