On Mon, Nov 21, 2011 at 1:44 AM, DoubleCheese <[email protected]> wrote: > Some more additional info: > When I use a URLConnection to GET the request it, works and follows > the redirect properly. What I do next is to use this reponse and load > the html to the web view using > webView.loadDataWithBaseURL() - in here I set the baseUrl to the host > I expect. > > I also tried to set the following: > > webSettings.setJavaScriptEnabled(true); > webSettings.setJavaScriptCanOpenWindowsAutomatically(true); > > As it seems the pages I load uses javascript to change the > window.location, but when this happens, it doesn't seem to go through > the WebViewClient.
Yes, that's a known limitation (albeit undocumented, the last I looked). Standard links and server redirects trigger shouldOverrideUrlLoading(); window.location does not. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

