In my application I create a download queue via IntentService upon receiving sms, I've got that to work like a charm.
sms received -> Smsreceiver extends BroadcastReceiver -> startService(intent)
-> SimpleIntentService extends IntentService //actual download happens here
-> sendBroadcast(broadcastIntent) -> back to my app //to inform that
//a download has finished
But a creepy case rises when the device is offline, I really don't know what to do there, shall I hold on the currently being executed thread until the device gets online again (which is high cost process in my opinion), or shall i build my own queue that holds urls and feeds IntentService when back online? or any other suggestion?
Also how to check when device is online again without affecting device performance/battery/etc ?