DefaultHttpClient Timeout

by Mr.No » Thu, 12 Mar 2009 17:58:03 GMT


Sponsored Links
 Hello,
how i can set the timeout for a DefaultHttpClient?
and which function i must override to handle the event?




rgds Mr.No
--~--~---------~--~----~------------~-------~--~----~



DefaultHttpClient Timeout

by dillirao malipeddi » Thu, 12 Mar 2009 18:05:18 GMT


 int connection_Timeout = 10000; // = 10 sec

HttpParams my_httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(my_httpParams,
connection_Timeout);
HttpConnectionParams.setSoTimeout(my_httpParams, connection_Timeout);
HttpClient httpclient = new DefaultHttpClient(my_httpParams);  //get http
client with given params






-- 
Dilli Rao. M

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


DefaultHttpClient Timeout

by Mr.No » Thu, 12 Mar 2009 21:24:53 GMT


 THX



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Any idea about which will be the next Android Powered Phone on the market?

Hi,

I liked the G1, but I think Android phones can be MUCH better than G1
is (I am willing to see multi-touch on Android) both on design and
performance.

So, does anyone have any idea about when the new Android Phone (HTC,
Motorola???) will hit the market? What about the specs?

Cheers

--~--~---------~--~----~------------~-------~--~----~

2. Question for Android Developers

Good Morning Folks,

I am working on an article for my website and wondered if you guys
would be interested in giving me some feedback on your opinions (and
possibly intentions) regarding the emerging markets for android
applications.

I am wondering as you develop applications and look to bring those to
market, are you primarily thinking of using the google android
marketplace, or are you more likely to consider a purely commercial
intrest like Handango or MobiHand, or are you leaning towards the
community based sources that are emerging such as Slideme.org and
why?

I would appreciate any feedback you guys can give me on this. I am
interested in your responses. And I thank you for your time.

Please feel free to contact me, and or visit my site as well. I would
love to see you.

Thanks,

Mark
www.androidipedia.com

--~--~---------~--~----~------------~-------~--~----~

3. Ashwin's Idea: Vonage App

4. How will Android handle different screen resolutions/ratios?

5. Too many mobile phone OSes!!!

6. Android developers UNITE!

7. G1/Android firmware-updates/-upgrades?