Ok I got the solution on my own.

You need to add:

notification.flags = Notification.FLAG_SHOW_LIGHTS;

to the method and it starts working.

Regards!

On 5 Dez., 11:37, code_android_festival_way
<[EMAIL PROTECTED]> wrote:
> Hello!
>
> I've tried to implement a LED notification in my little application
> for testing but I can't get them working.
>
> Here is the little snippet from my code:
>
>     private void setNotificationLED(int color){
>         Notification notification = new Notification();
>         notification.ledARGB = 0xFFFF5171;
>         notification.ledOnMS = 100;
>         notification.ledOffMS = 100;
>         nm.notify(ID_LED, notification);
>         Log.e(TAG,"LED Notification set");
>     }
>
> I don't really know what could be wrong with it. I don't get any error
> message. I have tested it on the G1 and on the emulator.
>
> I'm looking forward reading your answer.
>
> Regards!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to