[android-developers] Re: LED turn off
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 option is not avaible in that. -Anand On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 3, 2010 at 9:05 AM, Anand Android android.an...@gmail.com wrote: In charge only mode the device stays awake all the time, it doesn't turn off the screen during chargeOnly mode. I want it turn off the screen after certain amount of time . how do i do that ? Uncheck Settings Applications Development Stay awake -- 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.comandroid-developers%2Bunsubs cr...@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 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
Re: [android-developers] Re: LED turn off
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 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 option is not avaible in that. -Anand On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 3, 2010 at 9:05 AM, Anand Android android.an...@gmail.com wrote: In charge only mode the device stays awake all the time, it doesn't turn off the screen during chargeOnly mode. I want it turn off the screen after certain amount of time . how do i do that ? Uncheck Settings Applications Development Stay awake -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguyhttp://commonsware.com/blog%7Chttp://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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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 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
Re: [android-developers] Re: LED turn off
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
Re: [android-developers] Re: LED turn off
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, 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.comandroid-developers%2bunsubscr...@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 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