Partager via


Changing the SMS Notification Sound and the Ring Tone Example for OMA DM

4/8/2010

This example changes the sound file associated with Short Message Service (SMS) notifications to SunnyDay.mid, and changes the ring tone on the device to SunnyDay.mid. The following code example is appropriate for Windows Mobile Standard, Windows Mobile Professional, and Windows Mobile Classic. The Data element's value is the full path to a .wav or .mid file.

Code Example

<Replace>
   <CmdID>1</CmdID>
   <Item>
      <Target><LocURI>./Vendor/MSFT/Sounds/HKCU/ControlPanel/Sounds/SMS/Sound</LocURI></Target>
      <Meta>
         <Format xmlns="syncml:metinf">chr</Format>
         <Type xmlns="syncml:metinf">text/plain</Type>
      </Meta>
      <Data>\Application Data\Sounds\SunnyDay.mid</Data>
   </Item>
   <Item>
      <Target><LocURI>./Vendor/MSFT/Sounds/HKCU/ControlPanel/Sounds/RingTone0/Sound</LocURI></Target>
      <Meta>
         <Format xmlns="syncml:metinf">chr</Format>
         <Type xmlns="syncml:metinf">text/plain</Type>
      </Meta>
      <Data>\Application Data\Sounds\SunnyDay.mid</Data>
   </Item>
</Replace>

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.

See Also

Concepts

OMA DM Provisioning Files

Other Resources

Sounds Configuration Service Provider Examples for OMA DM