[android-developers] Re: How to make device to sleep?

2009-08-27 Thread GodsMoon
I looked at this API and it looks like it is only based on Time. Is it possible to wake the phone up based on other events. For example: Location or Device Orientation. Thanks for your help. On Aug 26, 1:07 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote:

[android-developers] Re: How to make device to sleep?

2009-08-26 Thread Yusuf Saib (T-Mobile USA)
AlarmManager: http://d.android.com/reference/android/app/AlarmManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: How to make device to sleep?

2009-08-25 Thread GodsMoon
I would like to know how to put the device to sleep and how to wake it up as well. Anybody? On Jul 20, 9:45 pm, Sansiro wangjiangfeng0...@gmail.com wrote: Now  I use the code follow: IPowerManager.Stub.asInterface(ServiceManager.getService (Context.POWER_SERVICE)).goToSleep(6) But it

[android-developers] Re: How to make device to sleep?

2009-07-20 Thread Sansiro
Now I use the code follow: IPowerManager.Stub.asInterface(ServiceManager.getService (Context.POWER_SERVICE)).goToSleep(6) But it still does not work. On Jul 21, 9:07 am, Sansiro wangjiangfeng0...@gmail.com wrote: I know that there is a PowerManager class and a goToSleep method in SDK