Managing Background Tasks on Android using the Alarm Manager
In today’s tutorial we’re going to take a look on how to handle periodically scheduled tasks on our Android device by using BroadcastReceivers, Services and the AlarmManager. Prerequisites The following environment is needed to follow this tutorial … Java Development Kit 6 Android SDK An AVM with at least Android 2.2 / API Version 8 I recommend using Eclipse with the ADT Plugin installed The Concept We’re going to create a first broadcast receiver that gets initiated at boot time. This component then should make use of Android’s AlarmManager API and schedule a cyclic task using an explicit intent. ...