[android-developers] LED is not working

2010-03-24 Thread AKarmakar
Hi All,

I wrote a small application to test LED. Here is the code snippet:

private void RedFlashLight()
{
NotificationManager nm = ( NotificationManager )
getSystemService( NOTIFICATION_SERVICE );
Notification notif = new Notification();
notif.ledARGB = 0xFFff;
notif.flags = Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 1000;
notif.ledOffMS = 1000;
nm.notify(LED_NOTIFICATION_ID, notif);

}

But LED is not turning ON at all. Is any work-arround there or this is
a known bug.

Thanks,
AKarmakar.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] LED notifications not working?

2008-12-05 Thread code_android_festival_way

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 = 0x5171;
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 android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---