问题
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