Skip to content

Instantly share code, notes, and snippets.

@mobibob
Created August 17, 2020 22:39
Show Gist options
  • Save mobibob/b0a66b09f986705972457213aca5f869 to your computer and use it in GitHub Desktop.
Save mobibob/b0a66b09f986705972457213aca5f869 to your computer and use it in GitHub Desktop.
Delay startActivity
private val msec = 1000L
private val hsec = 100L
private val delaySplash: Long = 2 * msec + 8 * hsec
Timer("splash_delay").schedule( delaySplash) {
intent = Intent(applicationContext, SignonActivity::class.java)
startActivity(intent)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment