btnShowNotification.setOnClickListener {
lateinit var notificationManager00:NotificationManager lateinit var context00:Contextcontext00 = this
notificatio
我正在尝试让通知在特定的时间触发。我为this.In main activity使用了AlarmManager和BroadcastReceiver,AlarmManager调用了BroadcastReceiver,但我无法从该类获取触发通知它给了我一个错误,在行nm=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);,我不知道该怎么办。pintent);BroadcastR
:我确实创建了不同的broadCastReceiver,以使它们与alarmManager的工作协调,但即使我更改了请求代码、标志或通道代码,如果用户启用多个任务的通知,我也会同时收到通知,但通知的broadCastReceiverpublic class BroadcastReceiver extends android.content.BroadcastReceiver @Override }}
public class Broadcas