Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { private static long lastClickTime; public static boolean isFastDoubleClick() { long time = SystemClock.elapsedRealtime(); long timeD = time - lastClickTime; if (0 < timeD && timeD < 500) { //0,5s return true; } lastClickTime = time; return false; } }