Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-11 Thread Kostya Vasilyev
Dianne, Are there guarantees that the wake lock is held long enough for the PendingIntent tied to the alarm to actually be delivered? Such as starting a service, triggering a broadcast receiver? -- Kostya 11.11.2010 5:05, Dianne Hackborn ?: Note that currently the alarm manager WILL NOT

Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-11 Thread Mark Murphy
On Thu, Nov 11, 2010 at 3:56 AM, Kostya Vasilyev kmans...@gmail.com wrote: Are there guarantees that the wake lock is held long enough for the PendingIntent tied to the alarm to actually be delivered? Such as starting a service, triggering a broadcast receiver? The WakeLock held by

[android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Henrik Lindqvist
Thanks. I'am using the AlarmManager to send PendingIntent.getService with a Explicit Intent to an IntentService. Read this post from July 2008: The Alarm Service sample code in ApiDemos at http://code.google.com/android/samples/ApiDemos/src/com/google/androi... is intended to provide the best

Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Mark Murphy
On Wed, Nov 10, 2010 at 7:27 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: Thanks. I'am using the AlarmManager to send PendingIntent.getService with a Explicit Intent to an IntentService. Read this post from July 2008: The Alarm Service sample code in ApiDemos at

[android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Henrik Lindqvist
Thank. I'll sleep well tonight knowing raptors are extinct. On Nov 11, 1:30 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Nov 10, 2010 at 7:27 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: Thanks. I'am using the AlarmManager to send PendingIntent.getService with a

Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Dianne Hackborn
Note that currently the alarm manager WILL NOT hold a wake lock for sufficient time when starting a service, so if you are using a wake up alarm you must go through a receive and do a fun dance with wake locks. On Wed, Nov 10, 2010 at 4:39 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote:

Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Mark Murphy
On Wed, Nov 10, 2010 at 9:05 PM, Dianne Hackborn hack...@android.com wrote: Note that currently the alarm manager WILL NOT hold a wake lock for sufficient time when starting a service, so if you are using a wake up alarm you must go through a receive and do a fun dance with wake locks. Yeah,

Re: [android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Dianne Hackborn
On Wed, Nov 10, 2010 at 6:13 PM, Mark Murphy mmur...@commonsware.comwrote: As soon as all y'all want to make my WakefulIntentService obsolete, though, go right ahead. Please don't hold back on my account. :-) It's been something I've really wanted to do for over a year. Some day, but too