delay a method in android

Solutions on MaxInterview for delay a method in android by the best coders in the world

showing results for - "delay a method in android"
Theo
18 Jul 2016
1final Handler handler = new Handler(Looper.getMainLooper());
2    handler.postDelayed(new Runnable() {
3      @Override
4      public void run() {
5        //Do something after 100ms
6      }
7    }, 100);