On Fri, Jun 18, 2010 at 4:30 PM, Robert Macaulay
<[email protected]> wrote:
> I think I might know the problem.
> The service that is being scheduled is an IntentService. The code runs in
> the onHandleIntent. The onHandleIntent is surrounded by a Wakelock
> Can this be killed mid-stream?

Well, Android could kill anything "mid-stream" by terminating your
process, if it needs to reclaim memory. However, if your service is
brand new (e.g., had been previously destroyed in your last poll
cycle), that is unlikely.

However, the device might fall asleep before onHandleIntent() gets
invoked. Take a look at WakefulIntentService for some code to work
around this:

http://github.com/commonsguy/cwac-wakeful

-- 
Mark Murphy
CommonsWare
[email protected]
http://commonsware.com

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