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:

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to