[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-16 Thread Mark Murphy
Marco Nelissen wrote: On Sat, Feb 7, 2009 at 12:03 PM, pperotti pablo.pero...@gmail.com mailto:pablo.pero...@gmail.com wrote: (...) Uri uri = Uri.parse(android.resource://com.pp/ + R.raw.test_cbr); This is the second time in as many days I see somebody trying to access

[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-16 Thread Marco Nelissen
Interesting, I didn't know that. Looks like that is only partially implemented: you can get an InputStream from such a resource-Uri, but there isn't actually a content provider that handles that scheme and can give you a file descriptor for it, which means it can't work for media playback. On

[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-15 Thread pperotti
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

[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-08 Thread Chander Pechetty
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