Use BroadcastReceiver and IntentService implementation.