title: How to store preferences in database?
body: <p>According to documentation there are several ways to store content. One of them is <em>database</em>, one of them via <em>SharedPreferences</em>. </p>
  
  <p>For my app, I have already a database in use and therefore think the best way would be to store everything in one place, i.e. to store my preferences as well in the database. Searching around, I find only examples which are related to <em>SharedPreferences</em>. Defining the preference structure in a xml file has the advantage of easy maintenance, but the disadvantage that background-colors are faulty with sub-menus/sub-screens. </p>
  
  <ol>
  <li><p>Is the approach with <em>SharedPreferences</em> appropriate for what I wanna do or do I need to make my own structure (for default values) and  layout resp. view (for presentation)? </p></li>
  <li><p>Does anybody know of valid sample with PreferenceActivity to save settings in the database?  <code>R.xml.preferences</code> ==> <code>PreferenceScreen</code>?</p></li>
  </ol>