OK... first... a correction in my previous post.
"every link opens in a new window" ...the word "external" should have
been added. Local files can work great. My problem is that I'm trying
to create exceptions. I have to do this to make my advertisers happy.
So OK... I have a fix... it's ugly... but it seems to work.
mWebView.loadUrl("http://photics.com/games/conquest");
mWebView.getSettings().setCacheMode
(WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
String url)
{
if (url.contains("http://photics.com")) {
return false;
}
else mWebView.setWebViewClient(null);
return false;
}
I seem to have the solution to my problem, but I'm not happy that I
don't exactly understand how I did it. It seems incredibly odd to me
that returning "false" twice worked. :-)
I'm going to investigate this some more before I publish my app.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---