On Fri, May 13, 2011 at 12:53 PM, bob <b...@coolgroups.com> wrote:
> When I do this,
>
> mWebView.loadUrl("http://www.google.com/";);
>
> the web page loads in the view.

I doubt it. This usually pops up the user's choice of browser, due to
a redirect.

> However, when I do this:
>
> mWebView.loadUrl("http://twitter.com/intent/tweet?text=just+got+a
> +hiscore");
>
> it tries to pop up a whole new window.
>
> Anyone know why this is?

Because of a redirect. Use WebViewClient and
shouldOverrideUrlLoading() to manage redirect behavior.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.0 Programming Books: http://commonsware.com/books

-- 
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

Reply via email to