每隔100毫秒执行一次
private Handler handler;
private Runnable runnable;
handler = new Handler();
runnable = () -> {
// do something
handler.postDelayed(runnable, 100);
};
handler.postDelayed(runnable, 100);
网友评论