Interesting... My recommendation here would be not to agonize over
this and rather use NetworkInfo
http://developer.android.com/reference/android/net/NetworkInfo.html
to determine connectivity status and not create those threads in the
first place during periods where no network connection exists.
Also, 20s Timeout seems awfully long. I am working with 4s, which is
more than enough to determine a connection request couldn't get
through. Then retry (I retry once, before branching into "error"
handling)


On Jan 18, 6:55 am, And-Rider <[email protected]> wrote:
> Just to be more clear why is the timeout not happening in a
> Asynchronous manner...? Why is it waiting for the first call to
> timeout before proceeding to the next call though i am opening two
> connections in two different threads...?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to