I added preference-headers to my app so that the preference screen would not look broken on Honeycomb and tablet sized ICS. However, I only have one header at the moment so
Utilizing the EXTRA_SHOW_FRAGMENT mentioned by jenzz, you can manipulate the Activity's Intent, like so:
@Override
protected void onCreate(Bundle savedInstanceState) {
// By default, show MainPreferences
Intent intent = getIntent();
if (intent.getStringArrayExtra(EXTRA_SHOW_FRAGMENT) == null) {
getIntent().putExtra(EXTRA_SHOW_FRAGMENT, MainPreferences.class.getName());
}
super.onCreate(savedInstanceState);
}