Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { private static long mLastClickTime = 0; public static boolean isValidClick() { if (SystemClock.elapsedRealtime() - mLastClickTime < 1000) { return false; } mLastClickTime = SystemClock.elapsedRealtime(); return true; } }