delay
因為避免 block 到 main thread,所以不用 thread.sleep
new android.os.Handler().postDelayed(
() -> Log.i("tag", "This'll run 300 milliseconds later"),
300);
Last updated
Was this helpful?
因為避免 block 到 main thread,所以不用 thread.sleep
new android.os.Handler().postDelayed(
() -> Log.i("tag", "This'll run 300 milliseconds later"),
300);
Last updated
Was this helpful?