O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required