start handler and stop handler android code example Example: how to stop handler post delay handler.removeCallbacksAndMessages(null);