以下是我收到異常(超時)的代碼,請提供相同的解決方案或教程。使用4.0.4 API級設備上Android連接超時例外
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost(url);
List<NameValuePair> params = new LinkedList<NameValuePair>();
> param has some values and a string of bitmap.
HttpResponse response = client.execute(request);
StringBuilder receivedData = new StringBuilder();
BufferedReader reader = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
String line = null;
while ((line = reader.readLine()) != null)
{
receivedData.append(line);
}
使用的AsyncTask做背景 –
@zala janaksinh所有過程:它不工作,先生對我來說... –
啓動谷歌搜索和搜索有關bgprocee例如,它使用它單曲也親愛的。 –