AlarmManager doesn't work on samsung device with Android lollipop 5.0.2
问题 I have an issue with the AlarmManager API, it doesn't fire at all on my samsung device, but it works on other Android device... My code is like that: public void setAlarm(int hourAlarm, int minutesAlarm, int numeroAlarm, boolean yesOrNoRepeatAlarm) { PendingIntent pendingIntent = PendingIntent.getBroadcast(this, numeroAlarm, broadcastIntent, PendingIntent.FLAG_UPDATE_CURRENT); Log.i("numeroAlarm", numeroAlarm + ""); Calendar calendar = Calendar.getInstance(); if( (calendar.get(Calendar.HOUR