title: SharedPreferences getResources().getInteger()
body: <p>Android's documentation on <a href="http://developer.android.com/training/basics/data-storage/shared-preferences.html" rel="nofollow">SharedPrefererences</a> has this:</p>
  
  <pre><code>SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
  int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
  </code></pre>
  
  <p>I searched online and most of the usage involving getResources().getInteger all use R.integer instead of R.string.</p>
  
  <p>Is the documentation incorrect?</p>