Hey,

My app seldom needs to put the device (or screen) to sleep.
That is - programmatically imitate user pressing on red stop-call
button.

According to docs PowerManager.goToSleep() does just that, but
requires android.permission.DEVICE_POWER, which is never granted to
apps!

(A) What on earth should i do to get this working?

(B) How can i programmatically wake up the device.



just to clarify - i'm not interested in a wake lock solution


tnx, GiladH


--~--~---------~--~----~------------~-------~--~----~
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