title: How do you create Preference Activity and Preference Fragment on Android?
body: <p>As I was following an old tutorial (<a href="http://fr.openclassrooms.com/informatique/cours/creez-des-applications-pour-android" rel="noreferrer">Créez des applications pour Android -> openclassroom</a>) I got stuck on this deprecated method <code>addPreferencesFromResource(int id)</code> from the PreferenceActivity class.</p>
  
  <p>So my question is :</p>
  
  <blockquote>
    <p>What is the new way of creating Preferences in Android ?</p>
  </blockquote>