none
Assign ringtone to alarm

    Question

  • How can I assign ringtone from Windows Phone 7 system library to Alarm in my app.?

    Right now, app uses predefined ringtone set by me shown below. But i want that app user can set ringtone of his/her choice for alarm.

    alarm.Sound = new Uri("/Ringtones/Ring01.wma", UriKind.Relative);

    Wednesday, July 24, 2013 7:06 PM

Answers

  • As stated in the MSDN documentation: "The Sound URI must point to a file packaged in the application’s .xap file."... The only system sound you can use is the default Alarm sound, which you get by leaving Sound property null.


    -Eric.

    Thursday, July 25, 2013 8:10 PM