- सिंटैक्स:
<uses-configuration android:reqFiveWayNav=["true" | "false"] android:reqHardKeyboard=["true" | "false"] android:reqKeyboardType=["undefined" | "nokeys" | "qwerty" | "twelvekey"] android:reqNavigation=["undefined" | "nonav" | "dpad" | "trackball" | "wheel"] android:reqTouchScreen=["undefined" | "notouch" | "stylus" | "finger"] />
- इसमें शामिल है:
<manifest>
- विवरण:
इस ऐप्लिकेशन के लिए ज़रूरी हार्डवेयर और सॉफ़्टवेयर सुविधाओं के बारे में बताता है. उदाहरण के लिए, कोई ऐप्लिकेशन यह बता सकता है कि उसे फ़िज़िकल कीबोर्ड की ज़रूरत है या कोई खास नेविगेशन डिवाइस, जैसे कि ट्रैकबॉल. स्पेसिफ़िकेशन यह है का उपयोग उन डिवाइसों पर ऐप्लिकेशन को इंस्टॉल करने से रोकने के लिए किया जाता है जिन पर यह काम नहीं करता है.
ध्यान दें: ज़्यादातर ऐप्लिकेशन इस मेनिफ़ेस्ट टैग का इस्तेमाल नहीं करते. हमेशा एक दिशा पैड (डी-पैड) के साथ इनपुट की सुविधा देता है, ताकि देख न पाने वाले लोगों की मदद की जा सके ऐसे डिवाइस इस्तेमाल करने की सुविधा देते हैं जो टच के साथ-साथ या इसके बजाय डी-पैड इनपुट देते हैं.
इसके लिए अपने ऐप्लिकेशन में डी-पैड इनपुट इस्तेमाल करने के तरीके के बारे में जानकारी पाने के लिए, कंट्रोलर से जुड़ी कार्रवाइयां मैनेज करना लेख पढ़ें. अगर आपने आपका ऐप्लिकेशन टचस्क्रीन के बिना काम नहीं करेगा. इसके बजाय,
<uses-feature>
टैग का इस्तेमाल करके बेसिक के लिए"android.hardware.faketouch"
से लेकर, ज़रूरी टचस्क्रीन टाइप की जानकारी दें टच-स्टाइल इवेंट से लेकर ज़्यादा बेहतर टच टाइप तक, जैसे कि एक से ज़्यादा उंगलियों से अलग इनपुट के लिए"android.hardware.touchscreen.multitouch.jazzhand"
.- विशेषताएं:
android:reqFiveWayNav
- क्या ऐप्लिकेशन के लिए पांच-तरफ़ा नेविगेशन कंट्रोल की ज़रूरत है या नहीं. यह समय है
अगर लागू होता है, तो
"true"
और अगर नहीं है, तो"false"
. पांच-तरफ़ा कंट्रोल वह विकल्प है जो चुने गए विकल्पों को ऊपर, नीचे, दाएं या बाएं ले जा सकता है और साथ ही, मौजूदा विकल्प को शुरू करने का तरीका भी उपलब्ध है. यह काम किया जा सकता है: डी-पैड (डी-पैड), ट्रैकबॉल या अन्य डिवाइस.अगर किसी ऐप्लिकेशन के लिए डायरेक्शनल कंट्रोल की ज़रूरत है, लेकिन खास टाइप के लिए, यह इस एट्रिब्यूट को
"true"
पर सेट कर सकता है और इसे अनदेखा कर सकता हैreqNavigation
एट्रिब्यूट. हालांकि, अगर इसे किसी खास तरह के डायरेक्शनल कंट्रोल की ज़रूरत है, तो इसे अनदेखा किया जा सकता है इस एट्रिब्यूट का इस्तेमाल करें और इसके बजायreqNavigation
को सेट करें. android:reqHardKeyboard
- क्या ऐप्लिकेशन के लिए हार्डवेयर कीबोर्ड की ज़रूरत होती है. यह समय है
अगर लागू होता है, तो
"true"
और अगर नहीं है, तो"false"
. android:reqKeyboardType
- ऐप्लिकेशन के लिए ज़रूरी कीबोर्ड का टाइप.
यह एट्रिब्यूट हार्डवेयर और सॉफ़्टवेयर के बीच फ़र्क़ नहीं करता
कीबोर्ड. अगर किसी खास तरह के हार्डवेयर कीबोर्ड की ज़रूरत हो, तो
यहां टाइप बताएं. साथ ही,
reqHardKeyboard
एट्रिब्यूट भी सेट करें"true"
तक.वैल्यू इनमें से कोई एक स्ट्रिंग होनी चाहिए:
वैल्यू ब्यौरा " undefined
"इस ऐप्लिकेशन को इस्तेमाल करने के लिए कीबोर्ड की ज़रूरत नहीं है. कीबोर्ड की ज़रूरत की जानकारी नहीं दी गई है. यह डिफ़ॉल्ट मान है. " nokeys
"इस ऐप्लिकेशन को इस्तेमाल करने के लिए कीबोर्ड की ज़रूरत नहीं है. " qwerty
"इस ऐप्लिकेशन के लिए, स्टैंडर्ड QWERTY कीबोर्ड होना ज़रूरी है. " twelvekey
"ऐप्लिकेशन के लिए, बारह कुंजी वाले कीपैड की ज़रूरत होती है, जैसे ज़्यादातर कीबोर्ड पर फ़ोन, जिनमें 0
से लेकर अंकों तक की कुंजियों के साथ9
, प्लस स्टार (*
) और पाउंड (#
) कुंजियां. android:reqNavigation
- ऐप्लिकेशन के लिए ज़रूरी नेविगेशन डिवाइस, अगर कोई हो. वैल्यू
इनमें से कोई एक स्ट्रिंग होनी चाहिए:
वैल्यू ब्यौरा " undefined
"ऐप्लिकेशन के लिए किसी भी तरह के नेविगेशन कंट्रोल की ज़रूरत नहीं है. नेविगेशन से जुड़ी ज़रूरी शर्त के बारे में नहीं बताया गया है. यह डिफ़ॉल्ट मान है. " nonav
"ऐप्लिकेशन के लिए नेविगेशन कंट्रोल की ज़रूरत नहीं है. " dpad
"ऐप्लिकेशन में नेविगेट करने के लिए डी-पैड की ज़रूरत होती है. " trackball
"ऐप्लिकेशन को नेविगेट करने के लिए एक ट्रैकबॉल की ज़रूरत है. " wheel
"ऐप्लिकेशन के लिए नेविगेशन व्हील होना ज़रूरी है. अगर किसी ऐप्लिकेशन के लिए नेविगेशन कंट्रोल की ज़रूरत हो, लेकिन ठीक उसी तरह के कोई प्रभाव नहीं पड़ता, यह सेट कर सकता है
"true"
के लिएreqFiveWayNav
एट्रिब्यूट क्लिक करें. android:reqTouchScreen
- ऐप्लिकेशन के लिए ज़रूरी टच स्क्रीन का टाइप.
वैल्यू इनमें से कोई एक स्ट्रिंग होनी चाहिए:
वैल्यू ब्यौरा " undefined
"ऐप्लिकेशन को टच स्क्रीन की ज़रूरत नहीं है. टचस्क्रीन से जुड़ी ज़रूरी शर्तों के बारे में नहीं बताया गया है. यह डिफ़ॉल्ट मान है. " notouch
"ऐप्लिकेशन को टच स्क्रीन की ज़रूरत नहीं है. " stylus
"इस ऐप्लिकेशन का इस्तेमाल करने के लिए, एक टचस्क्रीन की ज़रूरत होती है, जिसे स्टाइलस की मदद से ऑपरेट किया जा सकता है. " finger
"ऐप्लिकेशन के लिए ऐसी टचस्क्रीन होनी ज़रूरी है जिसे उंगली से चलाया जा सके. ध्यान दें: अगर आपके ऐप्लिकेशन के लिए किसी तरह का टच इनपुट ज़रूरी है, इसके बजाय, इसका इस्तेमाल करें
<uses-feature>
टैग की मदद से, ज़रूरी टचस्क्रीन के बारे में जानकारी दें टाइप करें, जो बुनियादी टच-स्टाइल इवेंट के लिए"android.hardware.faketouch"
से शुरू होता है.
- इसमें पेश किया गया:
- एपीआई लेवल 3
- यह भी देखें:
-
configChanges
अभी तक किसी भी व्यक्ति ने चेक इन नहीं किया है एट्रिब्यूट<activity>
एलिमेंटConfigurationInfo
<कॉन्फ़िगरेशन का इस्तेमाल करता है>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# <uses-configuration\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cuses-configuration\n android:reqFiveWayNav=[\"true\" | \"false\"]\n android:reqHardKeyboard=[\"true\" | \"false\"]\n android:reqKeyboardType=[\"undefined\" | \"nokeys\" | \"qwerty\" | \"twelvekey\"]\n android:reqNavigation=[\"undefined\" | \"nonav\" | \"dpad\" | \"trackball\" | \"wheel\"]\n android:reqTouchScreen=[\"undefined\" | \"notouch\" | \"stylus\" | \"finger\"] /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n\n: Indicates the hardware and software features the application requires.\n For example, an application might specify that it requires a physical keyboard\n or a particular navigation device, like a trackball. The specification is\n used to avoid installing the application on devices where it doesn't work.\n\n **Note:** Most apps don't use this manifest tag.\n *Always* support input with a directional pad (D-pad) to assist sight-impaired\n users and support devices that provide D-pad input in addition to or instead of touch.\n\n For\n information about how to support D-pad input in your app, read [Handle controller actions](/develop/ui/views/touch-and-input/game-controllers/controller-input). If\n your app absolutely can't function without a touchscreen, then instead use the [`\u003cuses-feature\u003e`](/guide/topics/manifest/uses-feature-element) tag to\n declare the required touchscreen type, ranging from `\"android.hardware.faketouch\"` for basic\n touch-style events to more advanced touch types such as `\"android.hardware.touchscreen.multitouch.jazzhand\"` for distinct input from multiple fingers.\n\nattributes:\n:\n\n `android:reqFiveWayNav`\n : Whether the application requires a five-way navigation control. It's\n `\"true\"` if it does, and `\"false\"` if not. A five-way\n control is one that can move the selection up, down, right, or left, and\n also provides a way of invoking the current selection. It can be a\n directional pad (D-pad), trackball, or other device.\n\n\n If an application requires a directional control, but not a control of a\n particular type, it can set this attribute to `\"true\"` and ignore\n the [reqNavigation](#nav) attribute. However,\n if it requires a particular type of directional control, it can ignore\n this attribute and set `reqNavigation` instead.\n\n `android:reqHardKeyboard`\n : Whether the application requires a hardware keyboard. It's\n `\"true\"` if it does, and `\"false\"` if not.\n\n `android:reqKeyboardType`\n : The type of keyboard the application requires, if any.\n This attribute doesn't distinguish between hardware and software\n keyboards. If a hardware keyboard of a certain type is required,\n specify the type here and also set the `reqHardKeyboard` attribute\n to `\"true\"`.\n\n\n The value must be one of the following strings:\n\n\n | Value | Description |\n |---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | \"`undefined`\" | The application doesn't require a keyboard. A keyboard requirement isn't defined. This is the default value. |\n | \"`nokeys`\" | The application doesn't require a keyboard. |\n | \"`qwerty`\" | The application requires a standard QWERTY keyboard. |\n | \"`twelvekey`\" | The application requires a twelve-key keypad, like those on most phones, with keys for the digits from `0` through `9`, plus star (`*`) and pound (`#`) keys. |\n\n `android:reqNavigation`\n : The navigation device required by the application, if any. The value\n must be one of the following strings:\n\n | Value | Description |\n |---------------|--------------------------------------------------------------------------------------------------------------------------------------|\n | \"`undefined`\" | The application doesn't require any type of navigation control. The navigation requirement isn't defined. This is the default value. |\n | \"`nonav`\" | The application doesn't require a navigation control. |\n | \"`dpad`\" | The application requires a D-pad for navigation. |\n | \"`trackball`\" | The application requires a trackball for navigation. |\n | \"`wheel`\" | The application requires a navigation wheel. |\n\n\n If an application requires a navigational control, but the exact type of\n control doesn't matter, it can set the\n [reqFiveWayNav](#five) attribute to `\"true\"`\n rather than setting this one.\n\n `android:reqTouchScreen`\n : The type of touch screen the application requires, if any.\n The value must be one of the following strings:\n\n | Value | Description |\n |---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | \"`undefined`\" | The application doesn't require a touch screen. The touch screen requirement is undefined. This is the default value. |\n | \"`notouch`\" | The application doesn't require a touch screen. |\n | \"`stylus`\" | The application requires a touch screen that is operated with a stylus. |\n | \"`finger`\" | The application requires a touch screen that is operated with a finger. **Note:** If some type of touch input is required for your app, instead use the [`\u003cuses-feature\u003e`](/guide/topics/manifest/uses-feature-element) tag to declare the required touchscreen type, beginning with `\"android.hardware.faketouch\"` for basic touch-style events. |\n\nintroduced in:\n: API level 3\n\nsee also:\n:\n - [configChanges](/guide/topics/manifest/activity-element#config) attribute of the [\u003cactivity\u003e](/guide/topics/manifest/activity-element) element\n - [ConfigurationInfo](/reference/android/content/pm/ConfigurationInfo)"]]