Android LED_通知_ID无法解析为变量

Android LED_通知_ID无法解析为变量,android,notifications,led,Android,Notifications,Led,我找了一些关于如何让android设备LED闪烁的例子,我得到了无法将LED_通知_ID解析为变量的消息。我的代码如下。有人能告诉我为什么我会收到这个错误吗 private void redFlashLight(Context context) { NotificationManager nm = ( NotificationManager ) context.getSystemService( context.NOTIFICATION_SERVICE );

我找了一些关于如何让android设备LED闪烁的例子,我得到了无法将LED_通知_ID解析为变量的消息。我的代码如下。有人能告诉我为什么我会收到这个错误吗

private void redFlashLight(Context context)
    {
        NotificationManager nm = ( NotificationManager ) context.getSystemService( context.NOTIFICATION_SERVICE );
        Notification notif = new Notification();
        notif.ledARGB = 0xFFff0000;
        notif.flags = Notification.FLAG_SHOW_LIGHTS;
        notif.ledOnMS = 100; 
        notif.ledOffMS = 100; 
        notif.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_ONLY_ALERT_ONCE;
        nm.notify(LED_NOTIFICATION_ID, notif);
    }

您还没有将
LED\u NOTIFICATION\u ID
声明为变量。查找拼写错误。是否应该用类名限定它?

根据我看到的示例,我假设它是一个内置变量。他们的代码中没有定义它。谢谢你的帮助!