开发者

When to use Handler/Message to communicate in android application

开发者 https://www.devze.com 2023-04-10 10:25 出处:网络
I can use Intent with data stored in extras to exchange information/ communicate between 2 android activities. When should I 开发者_如何学PythonuseHandler/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

精彩评论

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