Answers for "delay in java android"

4

delay a method in android

final Handler handler = new Handler(Looper.getMainLooper());
    handler.postDelayed(new Runnable() {
      @Override
      public void run() {
        //Do something after 100ms
      }
    }, 100);
Posted by: Guest on April-11-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language