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 的 android 应用程序。我想用 url 发送标头值。如果有可能有人帮我提供源代码。
Map<String, String> headers = new HashMap<String, String>(); headers.put(header-key, header-value); mWebView.loadUrl(your url, headers);
这个有帮助吗?http://developer.android.com/reference/android/webkit/WebView.html#loadUrl(java.lang.String,%20java.util.Map)
最好通过 HttpClient 来做到这一点。