If you're using a preference activity, check out on the
RingtonePreference, it does a lot of the boilerplate work for you.

jason


On Thu, Mar 12, 2009 at 12:02 PM, droozen <droozenr...@gmail.com> wrote:
>
> I'd like to allow the user to choose a Ringtone from my application,
> that I will play later for an alarm. Looking at the javadocs, I see
> EXTRA_RINGTONE_DEFAULT_URI in RingtoneManager, and extra that, it
> says, is Given to the ringtone picker as a Uri. There is also an
> EXTRA_RINGTONE_PICKED_URI that I would get from the returning intent:
> Returned from the ringtone picker as a Uri
>
> However, I see no intent.putExtra(String, Uri) function, so no option
> to give a Uri. And there is no getUri(String) function in the Bundle
> for me to get a Uri in return.
>
> Is the RingtoneManager documentation wrong and it is given and
> returned as, say, a String? Or what am I missing?
> >
>

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

Reply via email to