[ see below ]

17.02.2011 22:01, Jake Colman пишет:
I see that I can manually see whatever I'd like.  What I don't see is
what settings are the equivalent of what happens when an SMS message
arrives.

So, to summarize, how do I easily obtain the equivalent of the SMS
notification can someone tell me what those equivalent settings are.

I've seen default settings for LED not do anything at all on my Motorola Milestone.

2) SMS, for example, vibrate and make a sound once upon arrival, but
    flash the LED until the SMS is acknowledged.

Copy/pasted from my current code:

notification.ledARGB = 0xff00ff00;
notification.ledOnMS = 1000;
notification.ledOffMS = 14000;
notification.flags |= Notification.FLAG_SHOW_LIGHTS;

This makes the LED flash green for one second every 15 seconds (note that some devices ignore color).

Combine with the following as needed:

notification.sound = ....
notification.vibrate = ...
notification.flags |= Notification.FLAG_ONLY_ALERT_ONCE;
notification.flags |= Notification.FLAG_AUTO_CANCEL;

-- Kostya

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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