Adding a wait in a switch / case?
<p>When a user clicks, case MotionEvent.ACTION_DOWN is triggered. When the click is released, case MotionEvent.ACTION_UP is triggered.</p>

<p>I'm interested in determining if ACTION_UP hasn't been triggered within 3 seconds of ACTION_DOWN. Meaning, If 3 seconds have passed since the user has clicked and has not yet released, I want to know, essentially trying to determine a long click.</p>

<p>Is there a way to do such a thing?</p>

<pre><code>   switch (event.getAction()) {
       case MotionEvent.ACTION_DOWN:
       break;
       case MotionEvent.ACTION_UP:
       break;
    }
</code></pre>
