What is the difference between broadcast receiver and a service?

BroadcastReceiver - is like gateway for other components, can do small back ground functionality within 10 seconds. Services - can do long running operation in the background with out having UI, and no time limit for it.but both receiver and service both can interact with UI if they want to. services will not have time limit of 10 seconds, receivers respond to broadcasted messages.

No comments:

Post a Comment