Example usage for android.preference PreferenceActivity addPreferencesFromResource

List of usage examples for android.preference PreferenceActivity addPreferencesFromResource

Introduction

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

Prototype

@Deprecated
public void addPreferencesFromResource(int preferencesResId) 

Source Link

Document

Inflates the given XML resource and adds the preference hierarchy to the current preference hierarchy.

Usage

From source file:Main.java

@SuppressWarnings("deprecation")
public static void addPreferencesFromResource(PreferenceActivity activity, int preferencesResId) {
    activity.addPreferencesFromResource(preferencesResId);
}