title: Reading shared preferences
body: <p>i'm using shared preferences for the settings menu of my android app.
  it's working very well but i didn't know how to use these settings on my code:</p>
  
  <p>For example how to use the selected language and use it in another activity: </p>
  
  <pre><code>    &lt;PreferenceCategory 
      android:title="General Settings"
      android:key="general_settings"
  
      &gt;
      &lt;ListPreference 
          android:key="language"
          android:title="Language"
          android:summary="Define the default language"
          android:defaultValue="Spanish" 
          android:entries="@array/Languages"
          android:entryValues="@array/LanguagesValues"
  
      /&gt;  
  </code></pre>