Created
August 17, 2020 22:39
-
-
Save mobibob/b0a66b09f986705972457213aca5f869 to your computer and use it in GitHub Desktop.
Delay startActivity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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