Android 通过 http 协议 POST 传输方式
2010-04-04 06:06:00 来源:WEB开发网核心提示:responseReader = new BufferedReader(new InputStreamReader(httpConn.getInputStream(), ENCODING_UTF_8));while ((readLine = responseReader.readLine()) != null) {sb
responseReader = new BufferedReader(new InputStreamReader(httpConn.getInputStream(), ENCODING_UTF_8));
while ((readLine = responseReader.readLine()) != null) {
sb.append(readLine).append(" ");
}
responseReader.close();
tv.setText(sb.toString());
}
}catch(Exception ex){
ex.printStackTrace();
}
}
更多精彩
赞助商链接