Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { private static long mLastClickTime = 0; private static final int SPACE_TIME = 500; public static boolean isFastDoubleClick() { long time = SystemClock.elapsedRealtime(); if (time - mLastClickTime <= SPACE_TIME) { return true; } else { mLastClickTime = time; return false; } } }