EXTRA_ALTERNATE_INTENTS constant

String const EXTRA_ALTERNATE_INTENTS

An Intent[] describing additional, alternate choices you would like shown with {@link #ACTION_CHOOSER}.

An app may be capable of providing several different payload types to complete a user's intended action. For example, an app invoking {@link #ACTION_SEND} to share photos with another app may use EXTRA_ALTERNATE_INTENTS to have the chooser transparently offer several different supported sending mechanisms for sharing, such as the actual "image/*" photo data or a hosted link where the photos can be viewed.

The intent present in {@link #EXTRA_INTENT} will be treated as the first/primary/preferred intent in the set. Additional intents specified in this extra are ordered; by default intents that appear earlier in the array will be preferred over intents that appear later in the array as matches for the same target component. To alter this preference, a calling app may also supply {@link #EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER}.

Implementation

static const String EXTRA_ALTERNATE_INTENTS =
    "android.intent.extra.ALTERNATE_INTENTS";