You want to cancel your runnable? There are 2 options:
- you can cancel all your delayed runnables with handler.removeCallbacksAndMessages(null)
- you should save ref to runnable (Runnable vibrateRunnable = new Runnable() ... ) and then remove it if needed with handler.removeCallbacks(vibrateRunnable)