DefaultHttpClient Timeout

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

Sponsored Links
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.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



Other Threads

1. adb usb connection problems between Ubuntu 10.04 and Zenithink zt-180

Hi developers,

I try to setup an adb connection through USB but keep on running into

If I run the adb deamon as a regular user (not as root) and run "adb
devices" I get:

List of devices attached

This is documented on the web and should be fixed by adding a udev
rule on my ubuntu machine in /etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01",

But when i add this rule the list of devices I get from "adb devices"
is empty.

I also tried running the adb deamon as root but the device list is
still empty.

lsusb list the zt-180 device (after I plugin the usb connector) as:
Bus 002 Device 013: ID 0bb4:0c01 High Tech Computer Corp.

I noticed that there is a standard rule for the same vendor/product-id
in /lib/udev/rules.d/40-usb-media-players.rules which says:
ATTRS{idVendor}=="0bb4" , ATTRS{idProduct}=="0c01|0c02|0c13" ,

There is one error in my deamon.log that might have something to do
with it, but I'm not sure (and I don't know how to fix it either):
usb_id[3793]: unable to access '/devices/pci0000:00/0000:00:1d.1/

Does anyone know what's going on?



2. ExpandableListView

<ExpandableListView android:id="@id/android:list"

i added the childDivider attribute.

but when any group is expanded - it paints the background
of all the top-level groups in this childDivider color also.

doesn't make sense.

any help - i just want to change the childDivider color.


3. Best Practice for selling app in non-Market approved countries?

4. Need help in display message which can display telephone number as a hyperlink

5. Unparsed aapt error

6. how to start a "stop" activity

7. HTTP Post