Created
August 22, 2013 13:04
-
-
Save shriduttkothari/6306844 to your computer and use it in GitHub Desktop.
Create a broadcast receiver with intent filter "android.intent.action.BOOT_COMPLETED"
So that when device boots up we can start our UpdateCheckReceiver class, which can Schedule a repeating alarm to send the pending intent to this same broadcastReceiver class to instantiate a new AsyncTask, to perform polling on server, to check the update.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<receiver android:name="com.example.UpdateCheckReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED"></action> | |
</intent-filter> | |
</receiver> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment