- सिंटैक्स:
-
<compatible-screens> <screen android:screenSize=["small" | "normal" | "large" | "xlarge"] android:screenDensity=["ldpi" | "mdpi" | "hdpi" | "xhdpi" | "280" | "360" | "420" | "480" | "560" ] /> ... </compatible-screens>
- इसमें शामिल है:
<manifest>
- विवरण:
- हर उस स्क्रीन कॉन्फ़िगरेशन के बारे में बताता है जिसके साथ ऐप्लिकेशन काम करता है. सिर्फ़ एक इंस्टेंस
मेनिफ़ेस्ट में
<compatible-screens>
एलिमेंट की अनुमति है, लेकिन यह काम कर सकता है कई<screen>
एलिमेंट शामिल हैं. हर<screen>
एलिमेंट एक विशिष्ट स्क्रीन आकार-सघनता संयोजन तय करता है जिसके साथ ऐप्लिकेशन संगत है.Android सिस्टम,
<compatible-screens>
मेनिफ़ेस्ट को नहीं पढ़ता एलिमेंट को अनलॉक कर सकता है. यह एलिमेंट सिर्फ़ जानकारी के लिए है. इसका इस्तेमाल किया जाता है बाहरी सेवाओं, जैसे कि Google Play की मदद से, ऐप्लिकेशन के काम करने के बारे में बेहतर तरीके से समझ सकते हैं पर सेट किया जा सकता है.ऐसा कोई भी स्क्रीन कॉन्फ़िगरेशन जो इस एलिमेंट में बताया गया नहीं है, वह स्क्रीन है जिसमें ऐप्लिकेशन नहीं है साथ काम करता है. बाहरी सेवाएं, जैसे कि Google Play, इन्हें ऐप्लिकेशन उपलब्ध नहीं कराती हैं जैसे कि स्क्रीन वाले डिवाइस.
चेतावनी: आम तौर पर, इस मेनिफ़ेस्ट का इस्तेमाल नहीं किया जाता है एलिमेंट के लिए भी बनाए गए हैं. इस तत्व का उपयोग करने से आपके गेम के लिए संभावित उपयोगकर्ता आधार बहुत ही कम उपयोगकर्ताओं को आपका ऐप्लिकेशन इंस्टॉल करने से रोकता है, बशर्ते उनके पास स्क्रीन वाला डिवाइस हो कॉन्फ़िगर नहीं किया जा सकता. इसका उपयोग अंतिम उपाय के रूप में तब ही करें, जब तो यह ऐप्लिकेशन कुछ खास स्क्रीन कॉन्फ़िगरेशन के साथ पूरी तरह से काम नहीं करता. इसका इस्तेमाल करने के बजाय एलिमेंट के लिए, एक से ज़्यादा स्क्रीन का इस्तेमाल करने की गाइड का पालन करें यह विकल्प, वैकल्पिक लेआउट और बिटमैप का इस्तेमाल करके, एक से ज़्यादा स्क्रीन पर बड़े स्तर पर सहायता उपलब्ध कराता है .
अगर आपको अपने ऐप्लिकेशन के लिए स्क्रीन का कम से कम साइज़ सेट करना है, तो
<supports-screens>
एलिमेंट का इस्तेमाल करें. उदाहरण के लिए, अगर आपको अपना ऐप्लिकेशन सिर्फ़ बड़ी और ज़्यादा बड़ी स्क्रीन वाले डिवाइसों के लिए,<supports-screens>
एलिमेंट का इस्तेमाल करके आपने एलान किया है कि आपका ऐप्लिकेशन छोटे और सामान्य स्क्रीन साइज़ के साथ काम नहीं करता. इसके बाद, Google Play जैसी बाहरी सेवाएं आपके ऐप्लिकेशन को उसी हिसाब से फ़िल्टर करती हैं. Google आपके यूआरएल पैरामीटर को कैसे इस्तेमाल करेगा, यह तय करने के लिए<supports-screens>
एलिमेंट बताता है कि सिस्टम आपके एलिमेंट का साइज़ बदल सकता है या नहीं अलग-अलग स्क्रीन साइज़ के लिए अलग-अलग ऐप्लिकेशन.इस बारे में ज़्यादा जानकारी के लिए कि Google Play, इस टूल का इस्तेमाल करके ऐप्लिकेशन को कैसे फ़िल्टर करता है और अन्य मेनिफ़ेस्ट एलिमेंट के लिए, Google Play पर फ़िल्टर देखें.
- चाइल्ड एलिमेंट:
- उदाहरण
-
अगर आपका ऐप्लिकेशन सिर्फ़ छोटी और सामान्य स्क्रीन पर काम करता है, तो तो आपको 12
<screen>
एलिमेंट तय करने होंगे, क्योंकि हर स्क्रीन साइज़ में छह अलग-अलग सघनता कॉन्फ़िगरेशन होते हैं.आपको इनमें से हर एक की जानकारी देनी होगी ये. साइज़ और सघनता के किसी भी कॉम्बिनेशन को स्क्रीन माना जाता है वह कॉन्फ़िगरेशन जिसके साथ आपका ऐप्लिकेशन संगत नहीं है. मेनिफ़ेस्ट में यह जानकारी दी गई है एंट्री जैसी दिखती है, अगर आपका ऐप्लिकेशन सिर्फ़ छोटी और सामान्य स्क्रीन के साथ काम करता है:
<manifest ... > ... <compatible-screens> <!-- all small size screens --> <screen android:screenSize="small" android:screenDensity="ldpi" /> <screen android:screenSize="small" android:screenDensity="mdpi" /> <screen android:screenSize="small" android:screenDensity="hdpi" /> <screen android:screenSize="small" android:screenDensity="xhdpi" /> <screen android:screenSize="small" android:screenDensity="xxhdpi" /> <screen android:screenSize="small" android:screenDensity="xxxhdpi" /> <!-- all normal size screens --> <screen android:screenSize="normal" android:screenDensity="ldpi" /> <screen android:screenSize="normal" android:screenDensity="mdpi" /> <screen android:screenSize="normal" android:screenDensity="hdpi" /> <screen android:screenSize="normal" android:screenDensity="xhdpi" /> <screen android:screenSize="normal" android:screenDensity="xxhdpi" /> <screen android:screenSize="normal" android:screenDensity="xxxhdpi" /> </compatible-screens> <application ... > ... <application> </manifest>
- इसमें पेश किया गया:
- एपीआई लेवल 9
- यह भी देखें:
- स्क्रीन के साथ काम करने की सुविधा के बारे में खास जानकारी
- Google Play पर फ़िल्टर
<साथ काम करने वाली स्क्रीन>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# <compatible-screens\u003e\n\nsyntax:\n:\n\n ```xml\n \u003ccompatible-screens\u003e\n \u003cscreen android:screenSize=[\"small\" | \"normal\" | \"large\" | \"xlarge\"]\n android:screenDensity=[\"ldpi\" | \"mdpi\" | \"hdpi\" | \"xhdpi\"\n | \"280\" | \"360\" | \"420\" | \"480\" | \"560\" ] /\u003e\n ...\n \u003c/compatible-screens\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n: Specifies each screen configuration with which the application is compatible. Only one instance\n of the `\u003ccompatible-screens\u003e` element is allowed in the manifest, but it can\n contain multiple `\u003cscreen\u003e` elements. Each `\u003cscreen\u003e` element\n specifies a specific screen size-density combination with which the application is compatible.\n\n The Android system *doesn't* read the `\u003ccompatible-screens\u003e` manifest\n element at any point. This element is informational only and is used\n by external services, such as Google Play, to better understand the application's compatibility\n with specific screen configurations and to enable filtering for users.\n\n\n Any screen configuration that\n *isn't* declared in this element is a screen with which the application *isn't*\n compatible. External services, such as Google Play, don't provide the application to\n devices with such screens.\n\n\n **Caution:** Normally, *you don't use this manifest\n element* . Using this element can dramatically reduce the potential user base for your\n application by preventing users from installing your application if they have a device with a screen\n configuration that you don't list. Use it only as a last resort, when the\n application absolutely doesn't work with specific screen configurations. Instead of using this\n element, follow the guide to [supporting multiple screens](/guide/practices/screens_support) to\n provide scalable support for multiple screens using alternative layouts and bitmaps\n for different screen sizes and densities.\n\n\n If you want to set a minimum screen size for your your application, use the [`\u003csupports-screens\u003e`](/guide/topics/manifest/supports-screens-element) element. For example, if you want your application to be available\n only for large and extra-large screen devices, the `\u003csupports-screens\u003e` element lets\n you declare that your application doesn't support small and normal screen sizes.\n Then, external services like Google Play filter your application accordingly. You can also use the\n `\u003csupports-screens\u003e` element to declare whether the system can resize your\n application for different screen sizes.\n\n\n For more information about how Google Play filters applications using this and\n other manifest elements, see [Filters on Google Play](/google/play/filters).\n\n\nchild elements:\n:\n\n `\u003cscreen\u003e`\n\n : Specifies a single screen configuration with which the application is compatible.\n\n At least one instance of this element must be placed inside the `\u003ccompatible-screens\u003e`\n element. This element must include both the `android:screenSize` and\n `android:screenDensity` attributes. If you don't declare both\n attributes, then the element is ignored.\n\n Attributes:\n\n `android:screenSize`\n : **Required.** Specifies the screen size for this screen configuration.\n\n Accepted values:\n\n - `small`\n - `normal`\n - `large`\n - `xlarge`\n\n\n For information about the different screen sizes, see [Screen compatibility overview](/guide/practices/screens_support#sizes).\n\n `android:screenDensity`\n : **Required.** Specifies the screen density for this screen configuration.\n\n Accepted values:\n\n - `\"ldpi\"` (approximately 120 dpi)\n - `\"mdpi\"` (approximately 160 dpi)\n - `\"hdpi\"` (approximately 240 dpi)\n - `\"xhdpi\"` (approximately 320 dpi)\n - `\"280\"`\n - `\"360\"`\n - `\"420\"`\n - `\"480\"`\n - `\"560\"`\n\n\n For information about the different screen densities, see [Screen compatibility overview](/guide/practices/screens_support#density).\n\n\nexample\n\n: If your application is compatible with only small and normal screens, regardless\n of screen density, then you must specify 12 `\u003cscreen\u003e` elements,\n because each screen size has six different density configurations.\n\n You must declare each one of\n these. Any combination of size and density that you *don't* specify is considered a screen\n configuration with which your application *isn't* compatible. Here's what the manifest\n entry looks like if your application is compatible with only small and normal screens: \n\n ```xml\n \u003cmanifest ... \u003e\n ...\n \u003ccompatible-screens\u003e\n \u003c!-- all small size screens --\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"ldpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"mdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"hdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xhdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xxhdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xxxhdpi\" /\u003e\n \u003c!-- all normal size screens --\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"ldpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"mdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"hdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xhdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xxhdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xxxhdpi\" /\u003e\n \u003c/compatible-screens\u003e\n \u003capplication ... \u003e\n ...\n \u003capplication\u003e\n \u003c/manifest\u003e\n ```\n\nintroduced in:\n: API level 9\n\nsee also:\n: [Screen compatibility overview](/guide/practices/screens_support)\n: [Filters on Google Play](/google/play/filters)"]]