2. Mobile Device developer
Johnny Sung
https://fb.com/j796160836
https://blog.jks.coffee/
https://www.slideshare.net/j796160836
https://github.com/j796160836
55. val mainHandler = Handler(Looper.getMainLooper())
val thread = Thread(Runnable {
// Do something
mainHandler.post {
// My result
}
})
thread.start()
(把繁重的事情放在這)
(回傳結果給 Main Thread 顯⽰示)