I have an IntentService which need to pass a message to an Activity.
I know two ways of doing so.
use
sendBroadcast()at theServiceside while registering abroadcastRecieverat theActivityside which will receiver the message.passing a
Messengerto the Serviceside, which will point to aHandlerat theActivityside, which will be ready to receive that message from the service.
Which one is good for which purpose? Or both of them do the same?