Hi, i'm having a problem setting the ringtone for a call.

I have an mp3 file stored on /sdcard/media/audio/ringtones/Horse.mp3
and this is how I'm trying to set it as a ringtone:

[CODE]

RingtoneManager.setActualDefaultRingtoneUri(RingtoneOfTheDay.this,
RingtoneManager.TYPE_RINGTONE, Uri.parse("/sdcard/media/audio/
ringtones/Horse.mp3"));

[/CODE]

If I go to Settings -> Audio/Ringtones, I find that NO ringtone is
selected and no ringtone is played if I get called.

But (and this is strange), if I get the selected ringtone with:

[CODE
Uri myRingtone = RingtoneManager.getActualDefaultRingtoneUri
(RingtoneOfTheDay.this, RingtoneManager.TYPE_RINGTONE);
[/CODE]

... then I get the correct url of the ringtone (/sdcard/media/audio/
ringtones/Horse.mp3).

This is really strange. Do you know how can I get this solved? Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to