How to check the code that lights up the LEDs of Android devices?

How can I check the code that lights up the LEDs on the Android device? I do not have a device with LEDs.

notif.ledARGB = color.BLUE; notif.ledOnMS = 100; notif.ledOffMS = 100; notif.flags |= Notification.FLAG_SHOW_LIGHTS; 
+6
source share
2 answers

As far as I can tell, there is no way to directly test the LEDs in the emulator. The best thing you can do is make sure your notification is working correctly, and then assume that the LED is working. Maybe you could borrow a LED device from a friend? If anyone else knows how to do this in the emulator, I would like to know how to do it!

+3
source

The android emulator is open source. If it does not currently support LEDs, you can see adding support and sending a patch.

+1
source

Source: https://habr.com/ru/post/898940/


All Articles