The examples in this section demonstrate how to save and retrieve preference values using the Preference Services high-level and low-level APIs.