is Activity Destroyed - Android Activity

Android examples for Activity:Activity Status

Description

is Activity Destroyed

Demo Code


//package com.java2s;
import android.annotation.TargetApi;
import android.app.Activity;

public class Main {
    @TargetApi(17)/*from w w w.  j av a 2s . c  o m*/
    private static boolean isActivityDestroyed(Activity activity) {
        return activity.isDestroyed();
    }
}

Related Tutorials