Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
 
PREVIOUS NEXT
Tagged: #delay #method #android
ADD COMMENT
Topic
Name
4+9 =