As I said, I write the settings programmatically:
PreferenceScreen root = getPreferenceManager().createPreferenceScreen(this);
PreferenceCategory catView = new PreferenceCategory(this);
catView.setTitle(R.string.preference_category_view);
root.addPreference(catView);
final SwitchPreference switchSplash= new SwitchPreference(this);
switchSplash.setKey(PreferenceKeys.SPLASH);
switchSplash.setChecked(false);
catView.addPreference(switchSplash);
, LINE 1 true , switchSplash catView, switchSplash false, catView preferences.xml.
XML
SharedPreferences.Editor editor = root.getPreferenceManager().getSharedPreferences().edit();
editor.putBoolean(PreferenceKeys.SPLASH, true);
editor.commit();