Re: [android-developers] How to manage slow internet connections?
That article says that "throw null" will result in a good, non-null instance of NullPointerException being thrown.
I was curious enough to try it on 2.3 and 4.1, and yes, it works as described.
Back to slow network connections:
If you've set your socket timeouts correctly (i.e. to some reasonable, finite, values), you'll just be getting SocketTimeoutException thrown out of the networking code. Handle these, bubble them up to the UI, perhaps have a retry plan -- and you're all set.
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home