当处理器的计数器不应该再计数时,我如何停止它?也许你可以告诉我如何处理下面的代码。 public void handler() { nHandler.postDelayed(new Runnable() { @Override public void run() { viewFlipper.setDisplayedChild(8); } }, 20000);} 最佳答案 使用nHandler.removeCallbacks(nhandlerTask);http://developer.android.com/reference/android/os/Handler.html#removeCallbacks(java.lang.Runnable)public final void removeCallbacks (Runnable r)Added in API level 1Remove any pending posts of Runnable r that are in the message queue.