title: Android Studio - Set Notification Led
body: <p>I'm trying to use a Notification LED on my application during run time. For example I would like the led to blink with yellow color, but for some reason my code is not working and the led does not changed (It is always off).</p>
  
  <p>I am testing the code on Nexus 5 and Nexus 9</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    void setLed(Context context) {
          NotificationManager notificationManager = ( NotificationManager ) context.getSystemService(context.NOTIFICATION_SERVICE );
          Notification notification = new Notification();
          notification.defaults = 0;
          notification.ledARGB = Color.YELLOW;
          notification.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_AUTO_CANCEL;
          notification.ledOnMS = 500;
          notification.ledOffMS = 500;
          notificationManager.notify(0, notification);
      }
  </code></pre>
  
  <p>Please advise.</p>