> Don't wait until onDestroy() to update your flag. Update your flag
> "when it finishes its work", which by definition will be sooner than
> -- and hopefully on a different thread than -- onDestroy().

That is a better place to put the flag but that would only work in some
cases... If the service is killed before the work is done then the same
problem exists.

On Tue, Feb 22, 2011 at 11:49 AM, Mark Murphy <[email protected]>wrote:

> Don't wait until onDestroy() to update your flag. Update your flag
> "when it finishes its work", which by definition will be sooner than
> -- and hopefully on a different thread than -- onDestroy().
>

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