Ah, thanks. I was only look at what Uri extends (Object) and didn't
notice that it implemented Parcelable. Thanks!

On Mar 12, 1:58 pm, Dianne Hackborn <[email protected]> wrote:
> Uri is a Parcelable, so you can just use intent.putExtra(String,
> Parcelable).
>
>
>
> On Thu, Mar 12, 2009 at 9:02 AM, droozen <[email protected]> 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?
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
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