How does one detect the duration of an Android 2.1 touch event? I would like to respond only if the region has been pressed for say 5 seconds?
You can't use unix timestamps in this case. Android offers it's own time measurement.
long eventDuration = android.os.SystemClock.elapsedRealtime() - event.getDownTime();