This example show how to using Service to run long-time task in background thread, and also implement BroadcastReceiver to make communication between …

source