开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜