how to call a method after a few seconds in android

http‮‬s://www.lautturi.com
how to call a method after a few seconds in android
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
  @Override
  public void run() {
    //Do something after 100ms
  }
}, 100);
Created Time:2017-09-07 23:29:09  Author:lautturi