Hi, X.lefOffMS = 0; should be X.ledOffMS = 0;
Maybe look at other examples, eg http://androidblogger.blogspot.com.au/2009/09/tutorial-how-to-use-led-with-android.html Regards On Monday, February 4, 2013 7:01:23 AM UTC+11, Jake Colman wrote: > > > This should be simple but I can't get it to work. My application is > triggering a notification. I want that notification to make s aound, > vibrate, and turn on the LED. It all works but the LED. > > My code does something similar to the following: > > Notification X = new Notification(...); > X |= Notification.DEFAULT_SOUND; > X |= Notification.DEFAULT_VIBRATE; > X |= Notification.DEFAULT_LIGHTS; > > I also tried the following in lieu of setting the default: > > X.flags |= Notification.FLAG_SHOW_LIGHTS; > X.ledOnMS = 1; > X.lefOffMS = 0; > > None of this is working to get the LED to flash. Am I missing something > totally obvious? > > -- > Jake Colman -- Android Tinkerer > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

