Answers for "delay in service android kotlin"

3

kotlin delay

Timer().schedule(2000) {
    TODO("Do somefing")
}
Posted by: Guest on August-26-2021
-4

how to make a delay in android kotlin

// Import
import android.os.Handler;

// Use
val handler = Handler()
handler.postDelayed({
     // do something after 1000ms
}, 1000)
Posted by: Guest on September-24-2020

Browse Popular Code Answers by Language