SharedPreferences.getBoolean returns true for default value
<p>For some reason, this returns true every time for the default value. I uninstalled my app and re-installed and i do the following to initialize the values. But for some reason the boolean is set to true instead of false. </p>

<pre><code>    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(LoadingActivity.this);
    final int locationType = prefs.getInt(Constants.PREFS_LOCATION, 0);
    final boolean skipWhatsNew = prefs.getBoolean(Constants.PREFS_DONT_SHOW_WHATS_NEW, false);

    Log.v("loading activity : " , " " + skipWhatsNew);
</code></pre>

<p>I'm not really sure why its doing this since it used to just set the value to false before. </p>

<p>I already looked at similar questions but none of them helped, so any help would be nice, thanks.  </p>

<p>Questions that i have looked at already, </p>

<p><a href="https://stackoverflow.com/questions/5727640/android-sharedpreference-getboolean-retrieving-false-even-if-i-am-storing-true">Android - SharedPreference.getBoolean retrieving false even if i am storing true?</a></p>

<p><a href="https://stackoverflow.com/questions/23934645/sharedpreferences-getboolean-returns-true-everytime">SharedPreferences.getBoolean returns true everytime</a></p>

<p>The above code is also the first time i access this, and from what i understand, it should set to false since it is being created for the first time. (first answer on this question mentions this, unless I'm wrong) </p>

<p><a href="https://stackoverflow.com/questions/17753800/android-default-values-for-shared-preferences">android default values for shared preferences</a></p>