PowerManager.goToSleep(long time) method seems to not work.
Because I don't get a PowerManager instance.
Instead, I use IPowerManager interface:
IPowerManager.stub.asInterface(ServiceManager.getService
("power")).goTosleep(1000);
Why this code doesnt work?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to