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. Memory problem with Threads

I have a couple of worker threads in my app which I stop and restart
during onPause() and onResume(). I use a method that clears all the
reference to and from the threads when stopping. However ThreadGroup
is still retaining a reference to my threads and causing a small
memory leak. After pausing and resuming my app about 40 to 50 times I
will then get OutOfMemory Errors when loading bitmaps. Allthough this
doesn't effect most of my users I do get occasional reports of
crashes.

How can I remove the references to my threads from ThreadGroup so that
GC can do it's job.

-- 
Joshua Frank

-- 

2. Ko Indosat IM3 Dari Kemaren malem ga bisa online yah?ada yang mengalami hal sama?

Kmrn emang sy rasakan jg but hr ini dah oke rasanya

Venomously Brilliant
CyanogenMod-5.0.4.1-N1




sekarang tanggal 4 maret,dari kemaren tanggal 3 maret malam,saya ga
bisa online dari HTC MAGIC 32A Eclair 2.1 [MADE BY ME], ada yang tau
kenapa?

apa emang jaringan IM3 yang lagi kurang bagus di daerah BANDUNG?

ato emang ada settingan saya yg crash yah?

ada yanng mengalami hal yang sama ga?

sama kaya saya...

lambang 3G dkk masih tetep ada,signal juga kadang keluar masuk,tapi ga
sering,apa masalah jaringan ato masalah pada handset saya yah?

--
"Indonesian Android Community [id-android]"

3. salam kenal dan mohon bimbingannya suhu-suhu disini

4. BIC concert lighter

5. How to force speaker on call established

6. Hi All..

7. Jeruk Forum New Tutoria