Info

syntax:

<category android:name="string" />

CONTAINED IN:

<intent-filter>

description:

Adds a category name to an intent filter. See Intents and Intent Filters for details on intent filters and the role of category specifications within a filter.

attributes:

android:name

The name of the category. Standard categories are defined in the Intent class as CATEGORY_name constants. The name assigned here can be derived from those constants by prefixing "android.intent.category." to the name that follows category_. For example, the string value for category_launcher is "android.intent.category.LAUNCHER".

Custom categories should use the package name as a prefix, to ensure that they are unique.

INTRODUCED IN: API Level 1

SEE also:

<action> <data>

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License. ! Go to top

Site Terms of Service - Privacy Policy - Brand Guidelines

0 0

Post a comment