Android LocalBroadcastManager and IntentService Tutorial and Example. We want to see how to use these two together.
SOURCE CODE REFERENCE : http://camposha.info/android/localbro...
LocalBroadcastManager is a class that allows us to register for and send broadcasts of Intents to local objects within our process. It has advantages over using the global broadcasts in terms of privacy, security and efficiency. This is because it's localized within your app process.
IntentService on the other hand is a base class for Services that handle asynchronous requests (expressed as Intents) on demand. It's onHandleIntent is where we simulate doing heavy task then send a broadcast when it's over.
Let's start.