title: SharedPreferences.edit() without a corresponding commit() or apply() call
body: <p>I'm using SharedPreferences for my apps' Intro Slider. However, I'm getting an error on this line:</p>
  
  <pre><code>class PrefManager {
      private SharedPreferences pref;
      private SharedPreferences.Editor editor;
  
  
      private static final String PREF_NAME = "welcome";
  
      private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
  
      PrefManager(Context context) {
          int PRIVATE_MODE = 0;
          pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
          editor = pref.edit();
      }
  
      void setFirstTimeLaunch(boolean isFirstTime) {
          editor.putBoolean(IS_FIRST_TIME_LAUNCH, isFirstTime);
          editor.commit();
      }
  
      boolean isFirstTimeLaunch() {
          return pref.getBoolean(IS_FIRST_TIME_LAUNCH, true);
      }
  
  }
  </code></pre>
  
  <blockquote>
    <p>editor = pref.edit();</p>
  </blockquote>
  
  <p>What happens if I don't call commit() or apply() after calling edit()?</p>