On Fri, Dec 3, 2010 at 2:20 PM, Tejas <[email protected]> wrote:
> I'm using AlarmManager to fire a PendingIntent after a certain period
> of time. This leads to running of my IntentService.
>
> - What happens if the PendingIntent fires, but my IntentService hasn't
> completed its task ?

If you mean that the IntentService is processing the previous alarm,
the Intent for the new alarm is queued and will be processed as soon
as the previous one is done.

> - If the IntentService is taking too long, will the android platform
> kill it ?

No, because the work in onHandleIntent() is done on a background thread.

> - If the Android platform kills it, will the next PendingIntent invoke
> this IntentService again ?

That depends on the implementation of onStartCommand(), and I don't
remember off the top o' my head what they are using there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.0.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to