[android-developers] Re: LED turn off

2010-09-08 Thread Zarah Dominguez
Hi Anand, Are you sure? I am also using Eclair 2.1 and I have that option. Or are you asking how to turn off the screen programmatically (which I don't know how to do heheh). Thanks, Zarah. On Sep 8, 3:34 pm, Anand Android android.an...@gmail.com wrote: Hi Mark, I'm using eclair 2.1. This

Re: [android-developers] Re: LED turn off

2010-09-08 Thread Anand Android
yes zarah, i want to do it programatically. On Wed, Sep 8, 2010 at 2:13 PM, Zarah Dominguez zarah.doming...@gmail.comwrote: Hi Anand, Are you sure? I am also using Eclair 2.1 and I have that option. Or are you asking how to turn off the screen programmatically (which I don't know how to

Re: [android-developers] Re: LED turn off

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 5:07 AM, Anand Android android.an...@gmail.com wrote: yes zarah, i want to do it programatically. Ah. In that case, you want android.provider.Settings.System, specifically the STAY_ON_WHILE_PLUGGED_IN setting:

Re: [android-developers] Re: LED turn off

2010-09-08 Thread Anand Android
yes i looked into these values. but in powermanagerservice.java if do getInt(STAY_ON_WHILE_PLUGGED_IN) it is returning 0. it means never stay on. but in my case it never goes off -Anand On Wed, Sep 8, 2010 at 3:58 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 8, 2010 at 5:07 AM,