Java tutorial
//package com.java2s; import android.animation.Animator; public class Main { public static void deleteAnimator(Animator animator) { if (animator != null && animator.isRunning()) { animator.cancel(); } animator = null; } public static boolean isRunning(Animator animator) { return animator != null && animator.isRunning(); } }