Question: In the event that an `Activity` has been destroyed, but an `AsyncTask` still has a reference to the object, is there any way to directly query the referenced (destroyed) activity to determine if the `Activity` is still valid?

Answer: 
In the `onDestroy()` method of the Activity, set a flag to indicate that the Activity was destroyed.

Additionally, in the `AsyncTask` add a `WeakReference` to the `Activity` instead of a normal reference. 

In the `onPostExecute()` method of the `AsyncTask`, the Activity is still alive if the `WeakReference` still has a value, and the `Activity` itself still has the flag set to false.
Try keeping `WeakReference` to your activity.

```
WeakReference<Activity> ref = new WeakReference<Activity>(activity);
… … …
Activity activity = ref.get();
if (activity != null) {
    // DO SOMETHING
}

```