Created
March 3, 2025 16:06
-
-
Save vitoksmile/7793aaab611f482159bb2b52894c8d22 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() { | |
Handler(Looper.getMainLooper()).postDelayed({ | |
Toast.makeText(context, "Hello, Medium", Toast.LENGTH_LONG).show() | |
}, 1_000) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment