Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android WebView 302 Redirect - Honeycomb

I'm working on an Android application that uses a WebView and some 302 redirects to track link clicks. On Android 2.3.3, a 302 redirect passes through

public boolean shouldOverrideUrlLoading(WebView view, String url)

correctly, but on Honeycomb 3.2.2 only the initial URL passes through, and the 302 redirect never shows up as being requested. I attempted the solution here, and the answer here, but neither of those fixes the problem.

Thanks for any help!

like image 454
Pyro2927 Avatar asked Apr 09 '12 18:04

Pyro2927


1 Answers

Try this method public WebResourceResponse shouldInterceptRequest (WebView view, String url)

Maybe, helpful for you.

like image 177
Mirjalol Bahodirov Avatar answered Oct 08 '22 13:10

Mirjalol Bahodirov