Created
December 5, 2018 02:10
-
-
Save furkanaskin/0d3ccca2db62e0be20931753932a095e to your computer and use it in GitHub Desktop.
This file contains 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 ThreadBlockingActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_thread_blocking) | |
GlobalScope.launch(Dispatchers.Main){ | |
Toast.makeText(applicationContext,"10 Saniyelik geri sayım başladı.",Toast.LENGTH_SHORT).show() | |
delay(10000) | |
tv_thread.text = "10 Saniye sonra değişti." | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment