Created
March 3, 2025 16:06
-
-
Save vitoksmile/768177be42725632cb2616af926faf51 to your computer and use it in GitHub Desktop.
Mastering delays in Android
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
class TestClass( | |
private val context: Context, | |
) { | |
fun onResume() { | |
thread { | |
Thread.sleep(1_000) | |
Toast.makeText(context, "Hello, Medium", Toast.LENGTH_LONG).show() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment