摘要:
1 private void connect() { 2 MyTask task = new MyTask(this); 3 task.execute(url.getText().toString()); 4 } 5 6 private class MyTask extends AsyncTask { 7 private Context ctx; 8 private ProgressDialog pdialog; 9 public MyTask(Conte... 阅读全文
摘要:
package com.example.test;import java.io.ByteArrayOutputStream;import java.io.InputStream;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.HttpStatus;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.ht 阅读全文