title: android preference getString returning null value
body: <p>I have an android preference screen with list preference of language selection as</p>
  
  <pre><code> &lt;ListPreference
     android:key="prefLanguage"
     android:entries="@array/langPref"
     android:summary="@string/pref_set_lang_summary"
     android:entryValues="@array/langPrefValues"
     android:title="@string/pref_set_language"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:defaultValue="1" /&gt;
  </code></pre>
  
  <p>I am trying to get the preference value within the oncreate action as</p>
  
  <pre><code>SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
  String langPref = sharedPrefs.getString("langPrefValues", "NULL");
  
  Log.i("MyActivity",langPref);
  </code></pre>
  
  <p>But the logcat shows the null value to MyActivity string.</p>