shutDownNow will cancel all the pending tasks and make the Executor 
unavailable for any future task submissions.
Instead, you'd have to keep track to any Future you have scheduled (the 
value returned by an executor.submit(...) call). Call 'cancel(boolean)' on 
all the Futures that are still outstanding when onPause is being executed 
(note that calling 'cancel(...)' on a Future that has finished is OK; it 
just does nothing).

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