views:

41

answers:

1

I recently realized that to avoid nasty exceptions I should check isFinishing in the inner AsyncTask subclasses of my activity. Where else is it a good practice to check isFinishing in an activity?

A: 

You should check to the library DroidFu if you wan't to handle your AsyncTask in case of orientation change and so on. Anyway, if you read the documentation of isFinishing, it's clearly mentioned where you should use it.

fedj
For starters, the documentation doesn't mention that it should be checked on AsyncTask. I suspect there are many other places where you should check it that the documentation doesn't mention.
hgpc
Check this link (http://brainflush.wordpress.com/2009/11/16/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask/) about BetterAsyncTask
fedj