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.



On Aug 25, 9:07 pm, GodsMoon <godsm...@gmail.com> wrote:
> 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(60000)
>
> > 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
> > > But the code follow does not work.Anybody can tell me why?
>
> > > PowerManager pm=(PowerManager)ServiceManager.getService
> > > (Context.POWER_SERVICE);
> > > pm.goToSleep(60000);
>
> > > BRs!
--~--~---------~--~----~------------~-------~--~----~
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