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. graphics and video questions

I had a few questions on graphics and video ..

1. Is the blitter on G1 aware of mmu and works with virtual memory?

2. Is openGL mainly used for composing textures which have been
created by app/blitter? And as a fallback when blitter is not capable
of handling transformations?

3. From reading the code it seems that the blitter is used for resize,
rotation and blending on G1. Is this understanding correct?

4. If YCbCr processing is done by hw accelerator on G1, how are
regions managed? Is it that video is also a layer and only the visible
portions of this are processed by the hardware?


2. G1 - My Maps Google app

I have google apps, and use my google apps account to log into my G1.
However the new Google app 'My Maps' doesnt let you use the google
apps account.. u need a gmail account. Thats pretty poor. (same also
for the picasa app just added).


3. SD card error

4. 鈽?A Ma pView API KEY issue.....PLEASE HELP 鈽

5. Starting the messaging preferences - not possible? Really?

6. Error: android.view.ViewGroup.onLayout, abstract method not implemented.

7. amazonmp3 on dev phone