private String getText(HttpURLConnection conn, boolean isHeadMethod)
throws IOException {
StringBuilder text = new StringBuilder();
fileType = null;
InputStream is = null;
InputStreamReader sr = null;
BufferedReader br = null;
int code = conn.getResponseCode();
发现conn.getResponseCode();最耗时怎么获取进度啊?
或许你得自己整合进度条支持了。
鄙人不搞 Android 开发,不过通过搜索找到了点思路,比如 http://stackoverflow.com/questions/22523205/httpurlconnection-multipart-file-upload-with-progressbar