Service with AlarmManager running always every minute
问题 I'm trying to set a service run every 5 minutes in background. But it's acting weird: At onCreate of Main activity, I'm scheduling it to run every 5 minute: public void scheduleAlarm(Context context) { Intent intent = new Intent(context, AdSyncStartReceiver.class); final PendingIntent pIntent = PendingIntent.getBroadcast(context, AdSyncStartReceiver.REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT); long firstMillis = System.currentTimeMillis(); // alarm is set right away AlarmManager