Android 手机在安卓系统中重启时AlarmManager不工作

Android 手机在安卓系统中重启时AlarmManager不工作,android,broadcastreceiver,alarm,Android,Broadcastreceiver,Alarm,我正在使用挂起的意图设置报警 我正在使用广播接收器接收警报 *我也在清单文件中试过了* 这也不起作用 没有问题,我的工作很好,但当我重新启动我的手机闹钟不工作 我第一次使用此报警管理器时,是否有人能给我正确的建议来解决此问题可能会重复太多的答案。。。。。。。你搜索了吗?我搜索了所有的东西,我做了这个,问题是在重新启动我的闹钟后没有任何有用的链接???你添加了一个接收器来监听设备启动吗?如果是,那么您是否添加了重新创建警报的代码。如果是,则共享该接收器的代码。我有不同时间段的附表4警报。重新

我正在使用挂起的意图设置报警

我正在使用广播接收器接收警报

*我也在清单文件中试过了*


这也不起作用


没有问题,我的工作很好,但当我重新启动我的手机闹钟不工作


我第一次使用此报警管理器时,是否有人能给我正确的建议来解决此问题

可能会重复太多的答案。。。。。。。你搜索了吗?我搜索了所有的东西,我做了这个,问题是在重新启动我的闹钟后没有任何有用的链接???你添加了一个接收器来监听设备启动吗?如果是,那么您是否添加了重新创建警报的代码。如果是,则共享该接收器的代码。我有不同时间段的附表4警报。重新启动设备后,没有人工作。我已使用广播接收器进行通知。这是否需要重新安排所有3个警报?在重新启动设备后,是否有其他方法可以实现这一点?
PendingIntent sender = PendingIntent.getBroadcast(
            getApplicationContext(), SET_ALARM_REQUEST_CODE, alarmIntent,
            PendingIntent.FLAG_UPDATE_CURRENT | Intent.FILL_IN_DATA);
    AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
    am.set(AlarmManager.RTC_WAKEUP, alarmCalendar.getTimeInMillis(), sender);
notificationManager = (NotificationManager) context
                .getSystemService(Context.NOTIFICATION_SERVICE);
        Notification notification = new Notification(
                R.drawable.ic_launcher, "Reminder",
                System.currentTimeMillis());
        PendingIntent contentIntent = PendingIntent.getActivity(context,
                NOTIFICATION_ID, new Intent(context, AlarmReceiver.class),
                0);

        String title = extras.getString("title");
        String note = extras.getString("note");
        notification
                .setLatestEventInfo(context, note, title, contentIntent);
        notification.flags = Notification.FLAG_AUTO_CANCEL;
        notification.defaults |= Notification.DEFAULT_SOUND;
        notificationManager.notify(NOTIFICATION_ID++, notification);
 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<receiver android:name="com.griffin.remindme.AlarmReceiver" >
    </receiver>