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 <[email protected]> wrote:

> On Wed, Sep 8, 2010 at 5:07 AM, Anand Android <[email protected]>
> 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:
>
>
> http://developer.android.com/reference/android/provider/Settings.System.html#STAY_ON_WHILE_PLUGGED_IN
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in London: http://skillsmatter.com/go/os-mobile-server
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to