I have a service that runs at boot to update the user's database, but i need to wait until they have an internet connection, or my service fails. here is what i have so far -
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<receiver android:name=".ClockReceiver">
<intent-filter >
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
is it possible to have the broadcast wait until an internet connection is available?