I'm writing a program that needs to check for default preference settings and respond accordingly. The getBoolean method is always returning false even though R.xml.preferences has defaultValues set as true. I've tested
`preferences.contains(prefKey)` 
and this has returned true. 

```
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_fullscreen);
    PreferenceManager.setDefaultValues(this, R.xml.preferences, true);

    populate();

}

public void populate() {
  SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);

  try {
    for (int x = 0; x < 9; x++) {
      if (preferences.getBoolean(prefKey, false)){
        for (int max = 0; max < 20; max++) {
          System.out.println("this ran"+ max + "times at" + i);
        }
      } else {
        for (int max = 0; max < 20; max++) {
          System.out.println("this Skipped"+ max + "times at" + i);
        }
      }
    }
  } catch (IOException ioe) {

  }
}

```