[android-developers] Re: Turn Screen Off/on

2012-03-13 Thread Levi Ribeiro
I need to save energy, i want to make the device sleep during the nigh, without user intervention But im having trouble when i try to wake up the device... I tried something like that: AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); Calendar calendar =

Re: [android-developers] Re: Turn Screen Off/on

2012-03-13 Thread Mark Murphy
On Tue, Mar 13, 2012 at 2:50 PM, Levi Ribeiro levigribe...@gmail.com wrote: I need to save energy, i want to make the device sleep during the nigh, without user intervention This happens automatically. If nothing holds a WakeLock to force the device awake, it will fall asleep of its own

Re: [android-developers] Re: Turn Screen Off/on

2012-03-13 Thread Levi Ribeiro
i know that, but i need to wake up the device at certain time. Em terça-feira, 13 de março de 2012 16h20min59s UTC-3, Mark Murphy (a Commons Guy) escreveu: On Tue, Mar 13, 2012 at 2:50 PM, Levi Ribeiro levigribe...@gmail.com wrote: I need to save energy, i want to make the device sleep

Re: [android-developers] Re: Turn Screen Off/on

2012-03-13 Thread Mark Murphy
On Tue, Mar 13, 2012 at 3:55 PM, Levi Ribeiro levigribe...@gmail.com wrote: i know that, but i need to wake up the device at certain time. Use AlarmManager. In your previous post, you complained about AlarmManager without saying what was not working. Bear in mind that AlarmManager *only*

[android-developers] Re: Turn Screen Off/on

2012-03-08 Thread Yan
Why not just display the screen black a few times??? On Tuesday, March 6, 2012 11:30:24 AM UTC-7, Levi Ribeiro wrote: Hi, I'm trying to do a simple test, where the screen turn off and on several times. something like that: -- You received this message because you are subscribed to the

[android-developers] Re: Turn screen OFF/ON or change brightness screen

2010-10-29 Thread mot12
For some reason, if you set the brightness to 0f, it really turns the screen off rather than just making it as dark as possible. Worse, after you do that, you can't turn the screen on again. To change the brightness, stay with a value from 0.05 to 1.0. That seems to work as expected. There's no