code: public void putBoolean(String key, boolean value) {
  		sharedPreferences.edit().putBoolean(key, value).commit();
  	}
docs: put the int value to shared preference
  
  @param key
  the name of the preference to save
  @param value
  the name of the preference to modify.
  
  @see android.content.SharedPreferences#edit()#putBoolean(String, boolean)