[android-developers] Re: How to wake up the device by Code?

2009-08-06 Thread peter

I guess AlarmManager could do it for your requirement

On Aug 6, 3:29 pm, guishenl...@gmail.com guishenl...@gmail.com
wrote:
 Hi all,
     I have an application with notification. I want my notification
 can wake the device up when it goes off but the device is asleep.
 Could anybody tell me how to do by some code?
 Thank you in advance!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to wake up the device by Code?

2009-08-06 Thread Anonymous Anonymous
http://developer.android.com/reference/android/os/PowerManager.html

On Thu, Aug 6, 2009 at 2:24 PM, peter heywoodpres...@gmail.com wrote:


 I guess AlarmManager could do it for your requirement

 On Aug 6, 3:29 pm, guishenl...@gmail.com guishenl...@gmail.com
 wrote:
  Hi all,
  I have an application with notification. I want my notification
  can wake the device up when it goes off but the device is asleep.
  Could anybody tell me how to do by some code?
  Thank you in advance!
 


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



[android-developers] Re: How to wake up the device by Code?

2009-08-06 Thread Yusuf T. Mobile

If you want to wake up the device, PowerManager will work. If you just
want your code to do something after a while, even though the phone
was asleep, set a timer: 
http://developer.android.com/reference/java/util/Timer.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 6, 2:09 am, Anonymous Anonymous firewallbr...@googlemail.com
wrote:
 http://developer.android.com/reference/android/os/PowerManager.html



 On Thu, Aug 6, 2009 at 2:24 PM, peter heywoodpres...@gmail.com wrote:

  I guess AlarmManager could do it for your requirement

  On Aug 6, 3:29 pm, guishenl...@gmail.com guishenl...@gmail.com
  wrote:
   Hi all,
       I have an application with notification. I want my notification
   can wake the device up when it goes off but the device is asleep.
   Could anybody tell me how to do by some code?
   Thank you in advance!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---