Re: [android-developers] Re: socketException

2011-10-04 Thread arun kumar
thanks for your reply i have to connect to the sap server and fetch the data using soap webservicei hav e to authenticate to the server and fetch the response from it... *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setContentView(R.layout.*m

[android-developers] Re: socketException

2011-10-04 Thread Jeremy Dagorn
Could you give more information about your code? For example : http://stackoverflow.com/questions/4939237/android-app-address-family-not-supported-by-protocol Best, On Oct 4, 12:50 am, arun kumar wrote: > while am trying to get the response from the server am getting the this > exception > > 10-

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Thanks Miguel ! I didn't found any solution, and the matters was for the Http requests, not for the socket used. I'll try some other things and will come back here if I find an answer. Thanks again. Regards. On Jan 18, 11:51 am, Miguel Morales wrote: > Sometimes what happens on my phone is that

Re: [android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread Miguel Morales
Sometimes what happens on my phone is that after a certain period of inactivity the device shuts down the internet connection. I'm not familiar with ThreadSafeClientConnManager but I'm guessing it doesn't fail when the connection was shut down and fails when you attempt to read/write data. This is

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Thanks for you answer Kostya ! Unfortunately, add header "Connection : close" to every requests doesn't work, I've always some timeout... And it's a good idea to retry the request, but it's just hide the problem, not solve it... Another idea? :) Regards. On Jan 18, 10:17 am, Kostya Vasilyev wro

Re: [android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread Kostya Vasilyev
I think this might be caused by http keep-alive, you can try disabling that. Another option is to hide the failure inside HttpClient from your code by setting a retry count. -- Kostya 18.01.2011 12:07, lou пишет: Just for info I've already tried this code : /* * * * * * code * * * * * */ Ht

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Just for info I've already tried this code : /* * * * * * code * * * * * */ HttpConnectionParams.setConnectionTimeout(mParams, TIMEOUT); HttpConnectionParams.setConnectionTimeout(mParams, TIMEOUT); HttpConnectionParams.setSoTimeout(mParams, SOCKET_TIMEOUT); On Jan 18, 9:57 am, lou wrote: > Hi !