Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static long lastClickTime = 0; public static boolean isFastDoubleClick() { long time = System.currentTimeMillis(); long timeD = time - lastClickTime; lastClickTime = time; Log.i("log", "" + timeD); return timeD <= 100; } }