Wednesday, April 10, 2013

Re: [android-developers] How to keep WiFi on and let screen go to sleep?

On Wed, Apr 10, 2013 at 4:06 PM, plnelson <pnartg@gmail.com> wrote:
> But it does. As I said, it sends a "FIN" packet - that's a request to
> close the connection. The server responds with an ACK and.a FIN of its own
> which Android ACKs. This is the textbook-standard way to close a TCP
> connection, and it's initiated by Android when the display goes off. We
> watch it all on our network sniffers and it's 100% reliable and repeatable.

I'm no low-level WiFi expert, but if WiFi were powered down, I would
expect precisely zero of these packets. Are you sure nothing in your
app is closing the socket? Say, courtesy of an onPause() or onStop()
call when the screen turns off?

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.7 Available!

--
--
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
---
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment