Wednesday, April 10, 2013

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

If you write a simple socket based app that connects to another device and stays active with wifi on and everything else in flight mode, then your wifi will stay active once you turn off your screen. Android has no knowledge of this going on in the kernel. Also, you can use ADB connected to the device to run the program and monitor it. Remember that the USB cable will use change your power readings if you are concerned about that.

Not sure of your objectives so hard to know where you are going with this. Also, The only other way to try is to turn on flight mode and then just turn on wifi manually through the settings. You should see the wifi icon. Then force the screen off.


On Wed, Apr 10, 2013 at 2:20 PM, bob <bob@coolfone.comze.com> wrote:

Maybe you should just leave the display on but set all the display pixels to black?


This should help with the power drain of the display.


Thanks.



On Wednesday, April 10, 2013 2:53:41 PM UTC-5, plnelson wrote:

On Wednesday, April 10, 2013 2:37:53 PM UTC-4, bob wrote:

Why do you need to keep the Wifi on?

As I explained in the OP, the Android devices are used in an industrial environment.  Specifically they are used in a factory where they are sending and receiving information to a central process control PC even when users are not interacting with the display or keyboard.

But why I want WiFi to stay on isn't really the point -  the point is that this is a feature that Android supposedly supports and I can't seem to get it to work.    Is this an Android bug or am I doing something wrong?

The devices are all Samsung Media Players (a cellphone without the phone - sort of an Android iPod) running stock-out-of-the-box Android 2.35 or 2.36.

--
--
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.
 
 

--
--
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