[android-developers] Re: webview can not display twitter page

2012-11-18 Thread Piren
Webviews support redirecting without an issue. 
other than the suggestions on StackOverflow, i'd also check SSL certificate 
exception (i recall getting one on android versions below 2.3.3)

To verify you could either use the proper handler to catch those or just 
open the link in your native browser and see if it asks you to authorize 
the certificate (if it does, it means it will cause the failure in the 
webview). 

On Friday, July 29, 2011 1:05:10 PM UTC+3, 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: webview can not display twitter page

2012-11-16 Thread Simon
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en