我的代码是:
我希望此过程持续 100 毫秒并重新开始:
if ((X > 0 || X < 00) && (Y > 0 || Y < 0) && (Z > 0 || Z < 0)) {
stepcounter++;
stepC = Integer.toString(stepcounter);
step.setText(stepC);
}
最佳答案
你应该只使用:
new Handler().postDelayed(()->{
//Your Code
},100);
关于java - 我想启动一个方法或某个进程并保持 100 毫秒,然后在 android 中重新启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53515109/