Looks like this can be fixed by setting the user-agent:
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");
See also:
http://stackoverflow.com/questions/6625316/webview-not-displaying-twitter-on-some-droids
http://stackoverflow.com/questions/8056063/android-mobile-twitter-page-in-webview-not-opening
http://stackoverflow.com/questions/8951251/getting-blank-page-in-android-webviewclient
and others.
-- Simon
On Friday, July 29, 2011 4:05:10 AM UTC-6, Ethan Gao wrote:
>
> I am developing an app with twitter sharing feature. User can
> share information via twitter. After user click the twitter image in
> app view, a webView is brought up with a twitter share url. But the
> webview is always a blank page.
> Only twitter url does not work, facebook url works very well. It
> looks like webview does not support redirecting, right?
>
> PS: I've set the javascript enable of webview, still do not work
> for twitter share url.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en