I am trying to use the LED on my notification and it does not work, I have this code:
NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(getApplicationContext()); nBuilder.setLights(Color.CYAN, 1000, 500);
All notification works, for example ContentTitle, ContentText, and a notification is displayed, but only the LED does not work.
Is there something wrong with my code? Should I use Notification instead of NotificationCompact.Builder ?
source share