Example usage for android.content Intent ACTION_APPLICATION_PREFERENCES

List of usage examples for android.content Intent ACTION_APPLICATION_PREFERENCES

Introduction

In this page you can find the example usage for android.content Intent ACTION_APPLICATION_PREFERENCES.

Prototype

String ACTION_APPLICATION_PREFERENCES

To view the source code for android.content Intent ACTION_APPLICATION_PREFERENCES.

Click Source Link

Document

An activity that provides a user interface for adjusting application preferences.

Usage

From source file:com.android.launcher3.Launcher.java

/**
 * Event handler for a click on the settings button that appears after a long press
 * on the home screen./* ww w  .j ava 2s.co m*/
 */
public void onClickSettingsButton(View v) {
    if (LOGD)
        Log.d(TAG, "onClickSettingsButton");
    Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES).setPackage(getPackageName());
    intent.setSourceBounds(getViewBounds(v));
    startActivity(intent, getActivityLaunchOptions(v));
}