Alternatives for Pushing data from an Android Service to an Activity

做~自己de王妃 提交于 2019-12-25 00:42:29

问题


I've a service that is receiving UDP data from the network. I want to push this data from the service to a UI activity.

One way to do it is using broadcast Intents. What is the performance overhead of sending broadcasts frequently from the service to the activities?

Are there any other alternatives for doing this ?

Thanks.


回答1:


Not sure of the overhead of Broadcasting Intents but a topic similar to this was discussed a few days ago.



来源:https://stackoverflow.com/questions/3149339/alternatives-for-pushing-data-from-an-android-service-to-an-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!