2013年1月11日
摘要: public void urlConnection(String qqUrl) {try {URL url = new URL(qqUrl);URLConnection connection = url.openConnection();connection.connect();InputStream inputStream = connection.getInputStream();byte[] b = readStream(inputStream);inputStream.close();String str = new String(b, "gb2312");text 阅读全文
posted @ 2013-01-11 11:32 Snow〃冰激凌 阅读(411) 评论(0) 推荐(0) 编辑
摘要: public class MyAsyncTask extends AsyncTask<String, Integer, String> {private TextView textView;public MyAsyncTask(TextView textView) {this.textView = textView;}@Overrideprotected String doInBackground(String... params) {String url = params[0];HttpClient client = new DefaultHttpClient();//HttpP 阅读全文
posted @ 2013-01-11 11:31 Snow〃冰激凌 阅读(305) 评论(0) 推荐(0) 编辑