走同样的路,发现不同的人生
To call Handler in a thread, you need to call Looper first. For details, see Toast and Looper. Handler message loop mechanism.
Add Looper.prepare()
Looper.prepare()
Handler is not the handler in the main thread, so you need to create the looper object yourself!
To call Handler in a thread, you need to call Looper first. For details, see Toast and Looper. Handler message loop mechanism.
Add
Looper.prepare()
Handler is not the handler in the main thread, so you need to create the looper object yourself!