- सिंटैक्स:
<category android:name="string" />
- इसमें शामिल है:
<intent-filter>
- विवरण:
- इंटेंट फ़िल्टर में कैटगरी का नाम जोड़ता है. यहां जाएं: इंटेंट और इंटेंट फ़िल्टर से इंटेंट फ़िल्टर और कैटगरी की भूमिका के बारे में जानकारी मिलती है खास जानकारी को फ़िल्टर में शामिल करें.
- विशेषताएं:
android:name
- कैटगरी का नाम. स्टैंडर्ड कैटगरी को
CATEGORY_name
मेंIntent
क्लास स्थिरांक. यहां असाइन किया गया नाम उन स्थिरांक से लिया गया हैandroid.intent.category.
को प्रीफ़िक्सCATEGORY_
के बाद आने वालीname
. उदाहरण के लिए,CATEGORY_LAUNCHER
के लिए स्ट्रिंग मान यह हैandroid.intent.category.LAUNCHER
.ध्यान दें: इंप्लिसिट इंटेंट पाने के लिए, आपको इंटेंट फ़िल्टर में
CATEGORY_DEFAULT
कैटगरी. तरीकेstartActivity()
औरstartActivityForResult()
सभी इंटेंट का इस्तेमाल करता है जैसे कि उन्होंनेCATEGORY_DEFAULT
कैटगरी का एलान किया हो. अगर इंटेंट फ़िल्टर में इसका एलान नहीं किया जाता है, तो कोई भी इंप्लिसिट इंटेंट हल नहीं हो सकता आपकी गतिविधि.कस्टम कैटगरी के लिए, पैकेज के नाम का इस्तेमाल प्रीफ़िक्स के तौर पर करें यूनीक हैं.
- इसमें पेश किया गया:
- एपीआई लेवल 1
- यह भी देखें:
<action>
<data>
<category>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# <category\u003e\n\nsyntax:\n:\n\n ```xml\n \u003ccategory android:name=\"string\" /\u003e\n ```\n\ncontained in:\n: [\u003cintent-filter\u003e](/guide/topics/manifest/intent-filter-element)\n\ndescription:\n: Adds a category name to an intent filter. See\n [Intents and\n Intent Filters](/guide/components/intents-filters) for details on intent filters and the role of category\n specifications within a filter.\n\nattributes:\n:\n\n `android:name`\n : The name of the category. Standard categories are defined in the\n [Intent](/reference/android/content/Intent) class as `CATEGORY_`*name*\n constants. The name assigned here is derived from those constants\n by prefixing `android.intent.category.` to the\n *name* that follows `CATEGORY_`. For example,\n the string value for `CATEGORY_LAUNCHER` is\n `android.intent.category.LAUNCHER`.\n\n **Note:** To receive implicit intents, you must include the\n [CATEGORY_DEFAULT](/reference/android/content/Intent#CATEGORY_DEFAULT) category in the intent filter. The methods\n [startActivity()](/reference/android/app/Activity#startActivity(android.content.Intent)) and\n [startActivityForResult()](/reference/android/app/Activity#startActivityForResult(android.content.Intent, int)) treat all intents\n as if they declared the [CATEGORY_DEFAULT](/reference/android/content/Intent#CATEGORY_DEFAULT) category.\n If you don't declare it in your intent filter, no implicit intents can resolve\n your activity.\n\n\n For custom categories, use the package name as a prefix so\n that they are unique.\n\nintroduced in:\n: API Level 1\n\nsee also:\n: [\u003caction\u003e](/guide/topics/manifest/action-element)\n\n [\u003cdata\u003e](/guide/topics/manifest/data-element)"]]