[android-developers] DEVICE_POWER permission denied for using goToSleep

2009-07-16 Thread LeoSnowland
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 crashes 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:

[android-developers] DEVICE_POWER permission denied for using goToSleep

2009-07-16 Thread LeoSnowland
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:

[android-developers] DEVICE_POWER permission denied for using goToSleep

2009-01-28 Thread mnj
Hi, 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 crashes 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 er