retraso de Kotlin
Timer().schedule(2000) {
TODO("Do somefing")
}
abdullah
Timer().schedule(2000) {
TODO("Do somefing")
}
//Use Looper.getMainLooper() for avoid deprecation warning
Handler(Looper.getMainLooper()).postDelayed({
// Your Code
}, 3000)
Handler().postDelayed({
//doSomethingHere()
}, 1000)