I was wondering if anyone knows how to set a ringtone from off the
sdcard correctly cause obviously I'm doing it wrong.

For some reason, I'll set the ringtone(it's actually picked randomly)
as the default ringtone using the
RingtoneManager.setActualDefaultRingtoneUri() method. This works, and
it show's that ringtone as the default ringtone in the settings menu
(as well as plays the correct tone), but when I get called it plays a
system ring instead of that default ringtone I set.

Has anyone else ran into this problem?? I've been looking everywhere
online with no luck. I actually have a feeling it has something with
the formatting of the Uri but I'm not sure on how else to format it.

My current format:
        Uri ringtoneUri = Uri.fromFile(new File(directory +"/" + ringtones.get
(whatTone)));

directory = "/sdcard/media/ringtones" --- Just an example, this is
actually user generated
ringtones.get(whatTone) = "BlindedInChains.mp3" --- Also just an
example

End result of this format:
"file:///sdcard/media/ringtones/BlindedInChains.mp3"

Is this wrong?? Help Please!! :)
Thanks in advance!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to