On Wed, Jul 15, 2009 at 11:19 PM, LeoSnowland<zengrui_...@126.com> wrote: > > I wanted to use the funcion goToSleep() in PowerManager Class to force > the device to sleep. But I'm getting an exception and the application > when I call this function.I already have added the DEVICE_POWER > permission in Androidmanifest.xml. When I checked the logs I could see > below error: > Neither user 10018 nor current process has > android.permission.DEVICE_POWER
That's a signature-protected permission, i.e. only apps that got signed as system apps are allowed to. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---