Example usage for android.preference PreferenceActivity EXTRA_NO_HEADERS

List of usage examples for android.preference PreferenceActivity EXTRA_NO_HEADERS

Introduction

In this page you can find the example usage for android.preference PreferenceActivity EXTRA_NO_HEADERS.

Prototype

String EXTRA_NO_HEADERS

To view the source code for android.preference PreferenceActivity EXTRA_NO_HEADERS.

Click Source Link

Document

When starting this activity, the invoking Intent can contain this extra boolean that the header list should not be displayed.

Usage

From source file:g7.bluesky.launcher3.Launcher.java

protected void showSettings() {
    final Intent settingsActivity = new Intent(this, SettingsActivity.class);
    // Use only one setting fragment
    settingsActivity.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT,
            SettingsActivity.GeneralPreferenceFragment.class.getName());
    settingsActivity.putExtra(PreferenceActivity.EXTRA_NO_HEADERS, true);
    startActivity(settingsActivity);//  w  w  w  . j  a v a  2s  .  c  o  m
}