SharedPreferences settings = this.getSharedPreferences(

"setting.xml", Context.MODE_PRIVATE);

settings.edit().putInt("textSize", 15).commit();