以下是我收到异常(超时)的代码,请提供相同的解决方案或教程。使用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例如,它使用它单曲也亲爱的。 –