Java tutorial
//package com.java2s; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; public class Main { private static AlarmManager am; private static PendingIntent pendingIntent; public static AlarmManager sendUpdateBroadcastRepeat(Context ctx, Intent intent) { pendingIntent = PendingIntent.getBroadcast(ctx, 0, intent, 0); am = (AlarmManager) ctx.getSystemService(ctx.ALARM_SERVICE); am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 600 * 1000, pendingIntent); return am; } }