Creating a Ringtone with an Audio File Using the SaveRingtoneTask

The save ringtone task is used to launch the built-in Ringtones app, which enables the user to save an audio file to the system ringtones list and to optionally set it as the active ringtone on the device.

The ringtones list can be viewed by selecting the Ringtones + Sounds item on the phone’s system settings page.

After the audio file is added to the list, the user can set it as the ringtone for individual contacts in the Contacts application.

When the user finishes saving the contact, cancels out of the task, or an error occurs, the task’s Completed event is raised.

The SaveRingtoneTask should be defined as a field in your class, like so:

readonly SaveRingtoneTask saveRingtoneTask ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.