📜  使处理程序连续运行 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:24.913000             🧑  作者: Mango

代码示例1
Handler handler = new Handler(Looper.getMainLooper());
handler.postDelayed(new Runnable() {
  @Override
  public void run() {
    handler.postDelayed(this, 500);
  }
}, 500);