How can I apply a ringtone to only the selected contact?
I have found a way to set the default ringtone that applies to all contacts, but that is not my goal.
I want an application to have a button ("Apply ringtone to contact") that, when clicked, starts an activityForResult
displaying a list of all contacts on the phone. When a contact is selected, the contact activity closes and returns with a URI to the contact. Then the app needs to apply the selected ringtone to that specific contact.
The code for displaying and selecting contacts by an activity is already implemented and seems to work on the app.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…