title: Android - How Do I Set A Preference In Code
body: <p>I have an Android application in which I have my preferences in an XML file, which works fine. I now want to set one of the preferences using code instead of displaying the entire preference screen, how would I go about doing this?</p>