Intents and Uris, for Ringtone Picker

by droozen » Fri, 13 Mar 2009 00:02:59 GMT


Sponsored Links
 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?
--~--~---------~--~----~------------~-------~--~----~



Intents and Uris, for Ringtone Picker

by Dianne Hackborn » Fri, 13 Mar 2009 02:58:27 GMT


 Uri is a Parcelable, so you can just use intent.putExtra(String,
Parcelable).






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Intents and Uris, for Ringtone Picker

by Jason Parekh » Fri, 13 Mar 2009 05:33:15 GMT


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

jason





--~--~---------~--~----~------------~-------~--~----~



Intents and Uris, for Ringtone Picker

by droozen » Fri, 13 Mar 2009 05:34:09 GMT


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




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. how to add search box on google map??

can any one guide me how can i add Search box on google map???

and point out some locations ??????


any help would be appriciated..

2. Android experts required for IT concern @ Bangalore

Hi Experts,

There are few openings in a start-up IT company @ Bangalore who are
looking for Android experts and career-oriented guys.

Graphics (2 engineers): Working exp in OpenGL/OpenGLES on Android
platform

Multimedia (2 engineers): Working exp in OpenCore Multimedia framework
on Android

Android/Linux Kernel Internals (2 engineers)
o Excellent Linux experience
o Excellent C/C++ programming skills
o Knowledge of Android code architecture
o Experience of understanding of Android base source code development
environment
o Experience writing and debugging Android/Linux drivers (LCD, USB,
TouchScreen, etc.)
o Experience using Android SDK and NDK
o Experience with the Android open source code delivery /
modification / testing (including open source licensing issues)
o Experience with Linux power management mechanisms

Kindly send the updated resume with the contact number to
be...@ceotalentsearch.com.

In case you are not very keen in exploring this opportunity currently,
kindly help me out in some references.

Warm Regards,
Beenu Venugopal V
044 26421309

3. Building Android with aidl applications.

4. building package for android platform changes

5. Fails to open the shared library

6. Widget Help

7. Bingung....