When to use Handler/Message to communicate in android application
I can use Intent with data stored in extras to exchange information/ communicate between 2 android activities. When should I 开发者_如何学Pythonuse Handler/Message to communicate in android applications?
Thank you.
Handlers are tied to threads, so you'd use handler when you want a task to run in another (typically UI) thread.
精彩评论