PendingIntent pi= PendingIntent.getBroadcast(this, 0, broadcastIntent, 0);//获取闹钟管理器AlarmManager am =(AlarmManager) getSystemService(ALARM_SERVICE);//当前时间5秒后发送广播am.set(AlarmManager.RTC_WAKEUP, Utils.getTimeAfterInSecs(5).getTimeInMillis(), pi);//时间到时,执行PendingIntent,只执行一...