Using raw resource sound file as Ringtone

by Maur铆cio » Mon, 14 Dec 2009 05:32:37 GMT

Sponsored Links
 I have a problem setting a ringtone from a resource in my app:

Uri uri = Uri.parse("android.resource://" +
RingtoneManager.TYPE_RINGTONE, uri);

I've noticed also some people had the same problem but got no answers.
Do any of you guys have any idea of how making this work? (without
having to copy the file to the sdcard)



Using raw resource sound file as Ringtone

by Open » Fri, 18 Dec 2009 07:31:36 GMT

 I was able to set a ringtone for my app like this in Android 1.6, but
it does not seem to work in 2.0.


Sponsored Links

Other Threads

1. How comes that the estimate time becomes negative

Dear all,

I have solved my problem, so the issue below is no logner relevant

Thank you for all the great input I have got in this forum

best regards


2. how to change colours in a .xml defined layout in run time

Whatever View you're using to represent the bars should have some background
property for changing it's background image or color. Try that.

TreKing - Chicago transit tracking app for Android-powered devices


3. Database handling - when do you open and close

4. Power Consumption and SQLite

5. better keyboard

6. UPnP C Library

7. ] Motorola Milestone XT720 2nd dan Galaxy Bea