我已经为我的设备实现了通知。
它工作得很好。但是,如果我重新启动设备,它将根本无法工作。
那么它有什么问题呢?我应该在清单中添加anithing吗?
我已添加此代码以接收通知类的广播。
代码:
<!-- To receive the Alarm Notification -->
<receiver android:name=".AlarmNotificationReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE"></action>
</intent-filter>
</receiver>
谢谢。