[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Jonas, could you post your whole example? I'm on 1.5, same issue, the timeout never kicks in. Thanks On Nov 2, 8:45 am, Jonas Alves jona...@gmail.com wrote: It does work fine here. My target is 1.5. What's yours? On Nov 1, 3:28 pm, Andrei gml...@gmail.com wrote: Thank you Firstly

[android-developers] Re: http client connect timeout

2009-11-17 Thread nEx.Software
This is what I do... HttpClient HTTPClient = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000); HttpConnectionParams.setConnectionTimeout(HTTPClient.getParams(), 15000); On Nov 17, 1:46 pm, Mark Wyszomierski mar...@gmail.com wrote: Jonas, could you post

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Ok that works, thanks! On Nov 17, 3:53 pm, nEx.Software email.nex.softw...@gmail.com wrote: This is what I do... HttpClient HTTPClient = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000);

[android-developers] Re: http client connect timeout

2009-11-02 Thread Jonas Alves
It does work fine here. My target is 1.5. What's yours? On Nov 1, 3:28 pm, Andrei gml...@gmail.com wrote: Thank you Firstly your code sets read/write timeout, not connect Secondly if done right it does same thing as my sample Thirdly I tried it does not work On Nov 1, 10:03 am, Jonas

[android-developers] Re: http client connect timeout

2009-11-01 Thread Jonas Alves
HttpClient httpClient = new DefaultHttpClient(); httpClient.getParams().setParameter(http.socket.timeout, new Integer(3000)); // milliseconds On Oct 31, 10:55 pm, Andrei gml...@gmail.com wrote: I try to set timeout for apache http client like this    

[android-developers] Re: http client connect timeout

2009-11-01 Thread Andrei
Thank you Firstly your code sets read/write timeout, not connect Secondly if done right it does same thing as my sample Thirdly I tried it does not work On Nov 1, 10:03 am, Jonas Alves jona...@gmail.com wrote: HttpClient httpClient = new DefaultHttpClient();