[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread g1bb
Thanks hackbod, that worked great. One more question though: I'm acquiring my wakelock in an activity, as well as attempting to release it in the OnDestroy() function of the activity itself. Is there a good way to destroy the activity programmatically? It doesn't appear to be done automatically

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread Mark Murphy
g1bb wrote: Is there a good way to destroy the activity programmatically? Call finish(). Once you return control back to Android (e.g., leave the on...() callback you're in), your activity should be gracefully shut down, including having onDestroy() called. -- Mark Murphy (a Commons Guy)

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread Mark Murphy
g1bb wrote: Hi Mark, Sorry, I forgot to mention that I would like to destroy the activity from a different class not associated with the activity. Is that possible? Provide that class with a reference to your Activity when you create it. E.g.: class ActivityKiller {

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread g1bb
Hi Mark, Sorry, I forgot to mention that I would like to destroy the activity from a different class not associated with the activity. Is that possible? Thanks again. On Nov 12, 11:32 am, Mark Murphy [EMAIL PROTECTED] wrote: g1bb wrote: Is there a good way to destroy the activity

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread g1bb
Thanks Mark. I went about this another way, as I forgot to mention that I was going from an activity, to a broadcastreceiver, to a class. I ended up calling the same activity with the FLAG_ACTIVITY_SINGLE_TOP and FLAG_ACTIVITY_NEW_TASK flags, and then calling the finish() in the onNewIntent event

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-11 Thread g1bb
Interesting... I'll give that a shot. Thanks. On Nov 11, 3:51 am, hackbod [EMAIL PROTECTED] wrote: It does wake it up, but you are going to need to hold a wake lock to keep the device awake after your intent receiver returns. On Nov 10, 11:14 pm,g1bb[EMAIL PROTECTED] wrote: Hello,

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-11 Thread g1bb
Another question on this: Have you seen the Stopwatch application developed by Tom Taylor? I just downloaded it, and it keeps counting after the phone is put to sleep entirely. Any ideas on how he's doing that? I'm looking for that kind of functionality. Thanks again. On Nov 11, 3:51 am,

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-11 Thread g1bb
Maybe PARTIAL_WAKE_LOCK, looking at it now... interesting. On Nov 11, 10:45 am, g1bb [EMAIL PROTECTED] wrote: Another question on this: Have you seen the Stopwatch application developed by Tom Taylor? I just downloaded it, and it keeps counting after the phone is put to sleep entirely. Any

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-11 Thread hackbod
Yes, for both these things, you need to hold a partial wake lock to keep the phone from turning off. On Nov 11, 12:02 pm, g1bb [EMAIL PROTECTED] wrote: Maybe PARTIAL_WAKE_LOCK, looking at it now... interesting. On Nov 11, 10:45 am, g1bb [EMAIL PROTECTED] wrote: Another question on this:

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-11 Thread hackbod
It does wake it up, but you are going to need to hold a wake lock to keep the device awake after your intent receiver returns. On Nov 10, 11:14 pm, g1bb [EMAIL PROTECTED] wrote: Hello, I've been trying to use AlarmManager.RTC_WAKEUP to wake up my device while it's sleeping, and then play