title: Android HttpPost Request Timeout
body: <p>In my application, I have to get data from 4 different urls and then after the completion of fetching data, I have to show items in a particular sequence. I am using HttoPost to send post request. I am sending 4 requests each in a different thread. When a thread get data, it increment a count. When count reaches to 4, it means that all the 4 threads have fetched data. The problem is that sometimes one of the four threads don't respond means the defaultHttpClient.execute(post) don't return. Due to this, my count don't reaches 4 even it don't throws exception and only wait dialog keeps showing. I want that after a fixed time, it must return regardless of whether it get response from server or not. Any idea?</p>