On 21 Lug, 07:30, Sansiro <wangjiangfeng0...@gmail.com> wrote: > BTW, I use the goToSleep() method in this class, and I didn't get a > PowerManaget instance from Context.
with the DEVICE_POWER right in manifest, I got a PowerManager instance, but goToSleep is still not usable. > > the screen. Do you want to put the device to sleep, or just the > > screen? also device sleep. Yuri --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---