Narendra Singh Rathore wrote:
> Hi all, I am using url.openstream for requesting on to server. In case no
> internet connection while this, I want data to be stored in database, and
> hence doing the storage in catch clause of IOException, but instead of
> being caught here, it just hangs on url.openstream. I even waited for a
> minute but, still it doesn't caught in IOException catch clause.
>
> What must I do to overcome this problem?

just guessing:

1 openConnection()
2 play with timeouts 
http://developer.android.com/reference/java/net/URLConnection.html

pskink

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to