Set ringtone from raw resource?

by Bryan Vincent » Mon, 16 Nov 2009 12:52:13 GMT

Sponsored Links
 So I'm having a hard time setting a ringtone from a raw resource. My
code is below. Any help would be much appreciated.

RingtoneManager.TYPE_NOTIFICATION, Uri.parse("android.resource://
net.thebosskey.gijoepsasoundboard/" + this.resource));

However, when I play back the default notification sound using the
line below, it is not my sound.

I know the uri for my sound is correct because the following line
plays it:
RingtoneManager.getRingtone(getApplicationContext(), Uri.parse
("android.resource://net.thebosskey.gijoepsasoundboard/" +

What am I doing wrong?


Set ringtone from raw resource?

by Open » Fri, 18 Dec 2009 07:38:46 GMT

 Did you solve this problem?

I'm having the same trouble when using a 2.0 emulator.  The Ringtone
manager doesn't play my raw resource sound, it plays the default phone


Sponsored Links

Other Threads

1. custom View using Adapter iface

take a look into the api samples. there are 14 lists, and one of them
has a very performant adapter...


2009/1/31 skink <>:


2. Help G1 Developer Phone Died


I recently bought a brand new G1 Developer Phone. I opted to buy a G1
Developer Phone since I am a AT&T subscriber. I have used the phone
for 2 weeks and have been very pleased with the performance until this
morning. I was charging the phone overnight and when I woke up this
morning the LED indicator was off while the phone was plugged in. I
tried turning the phone on and it still would not turn on. I tried
charging the phone with the USB connector and still no luck. I have
read a few G1 users having similar problems. From what they were told,
this is a defective problem with the phone, not the battery.
Fortunately for them they purchased the phone through T-Mobile so they
were able to get a replacement. Any idea how to warranty the phone
with Google? I haven't been able to find any contact information in
regards to warranty claims or support from Google for their G1
Developer Phone. Any help in pointing me to the right direction will
be greatly appreciated.




3. Skipping RPC for services

4. a1200 porting issue, mismatch uid, binder cannot be permitted, pls help

5. SlidingDrawer not working with RC33

6. Mediaplayer with streaming

7. How to set the texts in one textview to be different colors?