Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个使用 WebView 和一些 302 重定向来跟踪链接点击的 Android 应用程序。在 Android 2.3.3 上,302 重定向通过
public boolean shouldOverrideUrlLoading(WebView view, String url)
正确,但在 Honeycomb 3.2.2 上只有初始 URL 通过,并且 302 重定向永远不会显示为被请求。我在这里尝试了解决方案,并在此处尝试了答案,但这些都不能解决问题。
谢谢你的帮助!
试试这个方法public WebResourceResponse shouldInterceptRequest (WebView view, String url)
也许,对你有帮助。