摘要:
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 阅读全文
摘要:
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 阅读全文