I\'m implementing n-layer PreferenceActivities 1st layer PreferenceActivity is loaded from preference-headers.
First header creates fragment of settings which is a P
if you are creating preferences using java ,then you can achieve the same result by,
PreferenceScreen editPhoneNumbersScreen = getPreferenceManager().createPreferenceScreen(mContext);
editPhoneNumbersScreen.setTitle(getResources().getString(R.string.change_add_emergency_numbers));
editPhoneNumbersScreen.setSummary(getResources().getString(R.string.summary_add_no));
Intent i = new Intent(getApplicationContext(),TargetActivity.class);
i.putExtra("change numbers", true);
editPhoneNumbersScreen.setIntent(i);