There is setConnectTimeout(int)<https://developer.android.com/reference/java/net/URLConnection.html#setConnectTimeout%28int%29>- Sets the timeout value in milliseconds for establishing the connection to the resource pointed by this URLConnection instance. There is setReadTimeout(int) - Sets the timeout value in milliseconds for reading from the input stream of an established connection to the resource.
-- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en