Thanks for your reply ! I guess that the scenario is different. In my case, I want to reproduce a sound located in my /res/raw directory. The default sound works as expected.
My problem is that I couldn't get to work an external sound, for instance, the sound /res/raw/beback.mp3. What would be the URL for that sound ? Regards, Pablo On Feb 8, 5:41 am, Chander Pechetty <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

