- söz dizimi:
<category android:name="string" />
- bulunduğu yer:
<intent-filter>
- description:
- Amaç filtresine kategori adı ekler. Görüntüleyin Amaçlar ve Niyet filtreleri ve kategorinin rolüyle ilgili ayrıntılar için Niyet Filtreleri özellikler.
- özellikler:
android:name
- Kategorinin adı. Standart kategoriler
CATEGORY_name
sınıfındaIntent
sınıf sabitler. Buraya atanan ad, söz konusu sabit değerlerden türetilirandroid.intent.category.
önekini kullanarakCATEGORY_
öğesini takip edenname
. Örneğin,CATEGORY_LAUNCHER
için dize değeri:android.intent.category.LAUNCHER
.Not: Dolaylı niyetleri almak için Amaç filtresinde
CATEGORY_DEFAULT
kategorisi. YöntemlerstartActivity()
vestartActivityForResult()
tüm amaçları ele alır sankiCATEGORY_DEFAULT
kategorisini açıklamışlar gibi. Niyet filtrenizde bildirmezseniz hiçbir örtülü niyet çözümlenemez yararlı olabilir.Özel kategorilerde, paket adını önek olarak kullanın. çünkü benzersiz olmaları gerekir.
- tanıtıldığı yer:
- API Düzeyi 1
- ayrıca bkz.:
<action>
<data>
<kategori>
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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)"]]