Android's documentation on SharedPrefererences has this:
SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
I searched online and most of the usage involving getResources().getInteger all use R.integer instead of R.string.
Is the documentation incorrect?