We are in the process of refitting some of our recievers and services
with IntentServices (mostly to address rare ANR issues - and because
IntentService is pretty cool...). In one case we are converting a
traditional service to an IntentService. The original service fired
off a few methods whose job was to download data from our servers.
Each of these requests would spawn a thread of their own to do the
work (apparently not fast enough to avoid the occasional ANR). So now
we have a question concerning the life cycle of these processes.

For example, the following situation demonstrates what is happening:

- Start Intent Service
  - Trigger Download1
  - Download 1 thread starts
- End Intent Service

- Download 1 thread continues.....
- Download 1 thread ends

Our question concerns our exposure to the OS shutting down the
Download 1 thread because the Intent Service has terminated before it
finishes up. Not sure if it is becomes more or less likely that the OS
will view it as something that can be flushed.

If the Download 1 thread is more likely to be flushed by OS we will
need to take a different approach.

Thank you.

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