Hi
How do i set the timeout to the HttpClient
here is the code im using
please help me i need to kill the request if its taking to long
otherwise its openning a Force Close
HttpClient httpClient = new DefaultHttpClient();
InputStream result = null;
try
{
String url = ".......";
Log.d(tag, "HttpGet " + url);
HttpGet method = new HttpGet(new URI(url));
HttpResponse response = httpClient.execute(method);
if (response != null)
{
result = response.getEntity().getContent();
}
}
catch(Exception e)
{
Log.e(tag,e.getMessage(),e);
}
return result;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---