Example usage for android.preference PreferenceActivity startPreferencePanel

List of usage examples for android.preference PreferenceActivity startPreferencePanel

Introduction

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

Prototype

public void startPreferencePanel(String fragmentClass, Bundle args, @StringRes int titleRes,
        CharSequence titleText, Fragment resultTo, int resultRequestCode) 

Source Link

Document

Start a new fragment containing a preference panel.

Usage

From source file:com.android.settings.applications.CanBeOnSdCardChecker.java

private void startApplicationDetailsActivity() {
    // start new fragment to display extended information
    Bundle args = new Bundle();
    args.putString(InstalledAppDetails.ARG_PACKAGE_NAME, mCurrentPkgName);

    PreferenceActivity pa = (PreferenceActivity) getActivity();
    pa.startPreferencePanel(InstalledAppDetails.class.getName(), args, R.string.application_info_label, null,
            this, INSTALLED_APP_DETAILS);
}