get and play contact's ringtone

All your problems with Audio, Video and Images.

get and play contact's ringtone

Postby SirMike » Tue Feb 08, 2011 10:26 pm

Can someone help me understand how I can retrieve and play a contact's ringtone?

I am able to list and select the contact, pull their name and image but am failing to find out a way to pull and play the ringtone associated with the contact. Any help on this would be greatly appreciated.

Thank You
SirMike
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Feb 08, 2011 10:04 pm

Top

Re: get and play contact's ringtone

Postby Kerbik » Wed Feb 09, 2011 8:40 am

Hello,
it shouldn't be that hard....

i found command CUSTOM_RINGTONE by one minute of finding in google help docs.

I'm now in work so i can't try it and give you detail briefe how to use that right now but I'll take a closer look on that at home.

you have to get this into string to get uri for ringtone

ContactsContract.Contacts.CUSTOM_RINGTONE

here is link to docs where i found it

http://developer.android.com/reference/ ... lumns.html

I hope i helped you at least little,
Kerbik.
Kerbik
Developer
Developer
 
Posts: 30
Joined: Fri May 28, 2010 6:06 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 6 guests