It seems like AsyncTask could be patched up pretty effectively with
attach(String threadTag) and dettach(String threadTag) methods. You
would call dettach with a user-provided tag from your Activity's
onDestroy method and call attach with the same tag. If attach returns
false then you know there was no background thread with that tag and
you start the AsyncTask in your onCreate. If it returns true then you
know that the AsyncTask now knows about the new parent thread and also
know that you don't have to restart the task in you onCreate. Anyone
see any problems with this enhancement?

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