run a command after 2 sec kotlin code example Example: andoird kotlin delay Handler().postDelayed({ //doSomethingHere() }, 1000)