I'm trying to experiment with LED colors on my Nexus One, and I'm having trouble creating any LED (color) notification color. LED indicator does not work. I tested a hardware malfunction and this is not a problem. Here is the code.
Notification notification = new Notification(R.drawable.icon, tickerText, System.currentTimeMillis()); notification.ledARGB = Color.WHITE; notification.ledOnMS = 300; notification.ledOffMS = 1000; notification.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_AUTO_CANCEL; //notification.defaults = Notification.DEFAULT_ALL; notification.setLatestEventInfo(this, getText(R.string.tekst1), text, makeIntent(R.drawable.icon)); notificationManager.notify(R.layout.main, notification);
Can someone tell me what I'm doing wrong? Tnx.
The problem is that the notification indicator does not appear until the mobile phone turns dark (the screen turns off). Everything else (including code) is fine.
... rgb (254, 254, 254). , 255 ... - . rgb G1, , . , . - , , , . , . , rgb (200, 235, 255) . , ...
, , ! (Colour.RED,.GREEN ect...) . - . , G1.
Kee
I think that for Nexus One you should actually start the phone, and then after installing some additional software (the default is cyanogenmod), your trackball will actually show the color that the developer sends to the LED. Otherwise, it will always be white.
Source: https://habr.com/ru/post/1761383/More articles:HTML5 и CSS - пользовательские теги? - html5Using Service Broker with Sql Server Express 2008 - sql-server-expressIframe css scrollbar - javascriptCan I set a class in Zend MultiOptions? - phpHow can I apply double quotes around each csv file value using TextMate? - regexWinForm - TabStop not working - c #Как я могу позвонить в приложение iPhone? - iphoneWorkflow for supporting different versions of webapp using git? - gitVs Web.Config Variable Application Variable - asp.netSearch for a model explaining the internal structure of a PGP-signed and encrypted file - securityAll Articles