title: Weird exception: Cannot cast String to Boolean when using getBoolean
body: <p>I'm getting a very weird error.
  I have 2 activities. On both I'm getting the <code>SharedPreferences</code> using <code>MODE_PRIVATE</code> (if it matters) by <code>sp = getPreferences(MODE_PRIVATE);</code> on each activity's <code>onCreate()</code>
  I'm calling <code>sp.getBoolean(IntroActivity.SHOW_INTRO, true)</code></p>
  
  <p>On the <code>IntroActivity</code> this works fine. But when I'm trying in the main activity, I'm getting this</p>
  
  <pre><code>10-12 04:55:23.208: E/AndroidRuntime(11668): FATAL EXCEPTION: main
  10-12 04:55:23.208: E/AndroidRuntime(11668): java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:242)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at com.lablabla.parkme.ParkMeActivity$2.onClick(ParkMeActivity.java:194)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.view.View.performClick(View.java:4084)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.view.View$PerformClick.run(View.java:16966)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.os.Handler.handleCallback(Handler.java:615)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.os.Handler.dispatchMessage(Handler.java:92)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.os.Looper.loop(Looper.java:137)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at android.app.ActivityThread.main(ActivityThread.java:4745)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at java.lang.reflect.Method.invokeNative(Native Method)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at java.lang.reflect.Method.invoke(Method.java:511)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
  10-12 04:55:23.208: E/AndroidRuntime(11668):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>I made sure that I'm not putting a <code>String</code> somewhere in the middle with that same key</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  some code:</p>
  
  <pre><code>//onCreate()
  sp = getPreferences(MODE_PRIVATE);
  
  // other method
  boolean showIntro = sp.getBoolean(IntroActivity.SHOW_INTRO, true); // Exception is here
  showIntroCheckBox.setChecked(showIntro);
  </code></pre>
  
  <p>If it matters, the code which throws the exception is inside a button's <code>onClick</code></p>