Example usage for android.content Intent CATEGORY_SELECTED_ALTERNATIVE

List of usage examples for android.content Intent CATEGORY_SELECTED_ALTERNATIVE

Introduction

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

Prototype

String CATEGORY_SELECTED_ALTERNATIVE

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

Click Source Link

Document

Set if the activity should be considered as an alternative selection action to the data the user has currently selected.

Usage

From source file:com.android.mms.ui.ComposeMessageActivity.java

private void addUriSpecificMenuItems(ContextMenu menu, View v, int position) {
    Uri uri = getSelectedUriFromMessageList((ListView) v, position);

    if (uri != null) {
        Intent intent = new Intent(null, uri);
        intent.addCategory(Intent.CATEGORY_SELECTED_ALTERNATIVE);
        menu.addIntentOptions(0, 0, 0, new android.content.ComponentName(this, ComposeMessageActivity.class),
                null, intent, 0, null);/*from  w  w  w  . j  a v  a  2s  .c  o  m*/
    }
}