The API Demos has examples. Checkout StatusBarNotifications and
NotifyingService.

For your example
Vibrating:
// if vibrate on- after a 100ms delay, vibrate for 200ms, pause for
150
// ms and then vibrate for 500ms.
notification.vibrate = new long[] { 100,200,150, 500 };

if you are not particular about playing your sound,
soundUri = "content://settings/system/notification_sound"
notification.sound = soundUri;



You can use the following to just use default vibration and sounds.
 notification.defaults = Notification.DEFAULT_ALL

I haven't noticed in logcat any messages for Vibrate, but it works on
the device.

Cheers,
Chander

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