发布网友 发布时间:2022-04-29 01:19
共2个回答
热心网友 时间:2022-06-27 09:58
AlarmManager[] alarmManager=new AlarmManager[24];intentArray = new ArrayList();for(f=0;f<arr2.length;f++){ Intent intent = new Intent(AlarmR.this, Riciving.class); pi=PendingIntent.getBroadcast(AlarmR.this, f,intent, 0); alarmManager[f] = (AlarmManager) getSystemService(ALARM_SERVICE); alarmManager[f].set(AlarmManager.RTC_WAKEUP,arr2[f] ,pi); intentArray.add(pi);}热心网友 时间:2022-06-27 09:59
AlarmManager[] alarmManager=new AlarmManager[24];intentArray = new ArrayList();for(f=0;f<arr2.length;f++){ Intent intent = new Intent(AlarmR.this, Riciving.class); pi=PendingIntent.getBroadcast(AlarmR.this, f,intent, 0); alarmManager[f] = (AlarmManager) getSystemService(ALARM_SERVICE); alarmManager[f].set(AlarmManager.RTC_WAKEUP,arr2[f] ,pi); intentArray.add(pi);} 查看原帖>>