Skip to content Skip to sidebar Skip to footer

Android: Alarm Manager

This is the code: public void startAlarm(Context context) { Intent intent = new Intent(context, SyncService.class); PendingIntent sender = PendingIntent.getService(context,

Solution 1:

If you read the docs you will notice the following:

If there is already an alarm scheduled for the same IntentSender, it will first be cancelled.

Post a Comment for "Android: Alarm Manager"