> I am trying to transition between 2 web views. One is in the
> foreground and the other already prepares another URL in the
> background. Everything works fine except for the fact that calling
> loadURL on the 2nd (invisible) view causes the native browser to open
> with the specified url, rather than my builtin browser.
>
> Any clues?

Are you sure it's not just that your second URL is one that does a redirect?

If you do not have a WebViewClient defined to otherwise control URL
loading, loading a URL into a WebView, where the URL triggers a redirect,
will cause the redirected URL to open in the built-in Browser.

To avoid this, create a subclass of WebViewClient, implement
shouldOverrideUrlLoading(), and attache an instance of that WebViewClient
to the WebView.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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