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 [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