This code is fine, But only issue is.. they have blocked the permission to change the LED.
if you have source code which can be compiled then you can modify that and it will work.. On Sun, Jun 20, 2010 at 8:47 PM, reda <reda.a...@gmail.com> wrote: > Hi, > > When I was using android api 5 (sdk 2.0) I was able to show light > notification in the trackball of my nexus one : > > mNotificationManager.notify("my tag",0, notif); > > Now, I'm developping on android api 3 (sdk1.5) and this method is no > more available so I use : > > mNotificationManager.notify(0, notif); > > But the light notification is not shown. > > Can you please help figure out this. > > ps : my code is : > > String ns = Context.NOTIFICATION_SERVICE; > NotificationManager mNotificationManager = > (NotificationManager) > context.getSystemService(ns); > > Notification notif = new Notification(); > > notif.when = System.currentTimeMillis(); > notif.ledARGB = Color.WHITE; > notif.flags = notif.flags | > Notification.FLAG_SHOW_LIGHTS | > Notification.FLAG_ONLY_ALERT_ONCE | Notification.DEFAULT_LIGHTS; > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > 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 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