[android-developers] HttpUrlConnection and Sleeping Phones
I've run into a bizarre situation and I'm not sure how to solve it.
The app I'm working on has a regular pull update that occurs every so
often in the background. When the phone is on, it works. When the
phone is using wifi, it works. However, if the phone is sleeping and
connected only to 3G, it only *sometimes* works. Other times,
HttpUrlConnection.getInputStream() returns null (after a lengthy
timeout, though it's not based on any timeout setting... it just
seems to randomly time out at some point). There are no exceptions
thrown and no logs indicate any trouble, except that my connection
goes completely ignored.
Does anyone know why this might be happening?
--
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