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

2013-04-11 Thread plnelson
On Wednesday, April 10, 2013 4:26:21 PM UTC-4, mike digioia wrote: What are you trying to do? If you want to measure power using wifi, then just subtract the screen power consumption numbers after two tests - one with screen in flight mode and one with wifi on. Why do you think we're

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

2013-04-11 Thread bob
Why not just have them place the devices on a wireless charging system like the *Powermat*™? Then will charge while sitting around. Thanks. On Thursday, April 11, 2013 9:11:39 AM UTC-5, plnelson wrote: On Wednesday, April 10, 2013 4:26:21 PM UTC-4, mike digioia wrote: What are you

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

2013-04-10 Thread plnelson
I'm programming an Android device for use in an industrial environment where it needs to stay in touch with the server even when the screen goes to sleep. I thought I did all the right stuff but when the screen goes out it still sends a Fin to the server (confirmed on a network data packet

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

2013-04-10 Thread Irfan Sheriff
On Wed, Apr 10, 2013 at 8:03 AM, plnelson pna...@gmail.com wrote: I'm programming an Android device for use in an industrial environment where it needs to stay in touch with the server even when the screen goes to sleep. I thought I did all the right stuff but when the screen goes out it

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

2013-04-10 Thread plnelson
Acquiring wifilock like this only makes sure the system does not shut down wifi. The actual wifi connection still goes through power optimizations once screen is off in the driver. This should not drop your connections, But it does. As I said, it sends a FIN packet - that's a

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

2013-04-10 Thread Mark Murphy
On Wed, Apr 10, 2013 at 4:06 PM, plnelson pna...@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

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

2013-04-10 Thread mike digioia
What are you trying to do? If you want to measure power using wifi, then just subtract the screen power consumption numbers after two tests - one with screen in flight mode and one with wifi on. Not sure if any point to this was ever made in this thread. On Wed, Apr 10, 2013 at 1:06 PM,