از Chromebookها در برنامه دوربین خود پشتیبانی کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
در Google Play توسط کاربران Chromebook مورد توجه قرار بگیرید.
کرومبوکها دارای دوربین جلو (رو به کاربر) داخلی هستند. اما همه کرومبوکها دوربین پشتی (جهانی) ندارند. و اکثر دوربینهای رو به روی کاربر در Chromebook از فوکوس خودکار یا فلاش پشتیبانی نمیکنند.
برنامههای دوربین همه کاره از همه دستگاهها بدون در نظر گرفتن پیکربندی دوربین پشتیبانی میکنند - دستگاههایی با دوربین جلو، دوربین پشت و دوربینهای خارجی متصل به USB.
اجازه ندهید فروشگاههای برنامه از نصب برنامه شما توسط کاربران Chromebook جلوگیری کنند، فقط به این دلیل که ویژگیهای دوربین پیشرفته موجود در تلفنهای پیشرفته را مشخص کردهاید.
مانیفست برنامه را پیکربندی کنید
برای اطمینان از اینکه فروشگاههای برنامهها برنامه شما را برای بیشترین تعداد دستگاه در دسترس قرار میدهند، همه ویژگیهای دوربین استفاده شده توسط برنامهتان را اعلام کنید و صریحاً مشخص کنید که آیا این ویژگیها مورد نیاز است یا خیر:
android:required="false" را برای ویژگی android.hardware.camera.any تنظیم کنید تا دستگاههایی که دارای هر نوع دوربین داخلی یا خارجی هستند یا اصلاً دوربین ندارند، به برنامه شما دسترسی داشته باشند.
برای سایر ویژگیها، android:required="false" را تنظیم کنید تا مطمئن شوید دستگاههایی مانند Chromebook که دوربین پشتی، فوکوس خودکار یا فلاش ندارند، میتوانند به برنامه شما در فروشگاههای برنامه دسترسی داشته باشند.
نکات کلیدی
مجوز CAMERA : به برنامه شما امکان دسترسی به دوربین های دستگاه را می دهد
عنصر مانیفست <uses-feature> : به فروشگاه های برنامه از ویژگی های استفاده شده توسط برنامه شما اطلاع می دهد
ویژگی required : به فروشگاههای برنامه نشان میدهد که آیا برنامه شما میتواند بدون یک ویژگی مشخص کار کند یا خیر
نتایج
با تنظیم صریح ویژگیهای دوربین پشتیبانیشده توسط برنامه و مشخص کردن ویژگیهای مورد نیاز برنامه، برنامه خود را تا حد امکان برای بسیاری از دستگاهها در دسترس قرار دادهاید. کاربران Chromebook میتوانند برنامه شما را از Google Play و سایر فروشگاههای برنامه دانلود و نصب کنند. کاربران دستگاههایی مانند تلفنها با پشتیبانی کامل از دوربین نیز میتوانند این برنامه را دانلود کنند.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Support Chromebooks in your camera app\n\nGet noticed on Google Play by Chromebook users.\n\nChromebooks have a built-in front (user-facing) camera. But not all Chromebooks\nhave a back (world-facing) camera. And most user-facing cameras on Chromebooks\ndon't support autofocus or flash.\n\nVersatile camera apps support all devices regardless of camera\nconfiguration---devices with front cameras, back cameras, and external\ncameras connected by USB.\n\nDon't let app stores prevent Chromebook users from installing your app just\nbecause you specified advanced camera features found on high-end phones.\n\nConfigure the app manifest\n--------------------------\n\nTo ensure apps stores make your app available to the greatest number of devices,\ndeclare all camera features used by your app and explicitly indicate whether or\nnot the features are required:\n\n- Declare the `CAMERA` permission\n- Declare camera features\n- Specify whether or not each feature is required\n\n### 1. Declare the `CAMERA` permission\n\nAdd the following permission to the app manifest: \n\n \u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n\n### 2. Declare camera features\n\nAdd the following features to the app manifest: \n\n \u003cuses-feature android:name=\"android.hardware.camera.any\" android:required=\"false\" /\u003e\n \u003cuses-feature android:name=\"android.hardware.camera\" android:required=\"false\" /\u003e\n \u003cuses-feature android:name=\"android.hardware.camera.autofocus\" android:required=\"false\" /\u003e\n \u003cuses-feature android:name=\"android.hardware.camera.flash\" android:required=\"false\" /\u003e\n\n| **Caution:** The `android.hardware.camera` feature applies only to back (world-facing) cameras.\n\n### 3. Specify whether each feature is required\n\nSet `android:required=\"false\"` for the `android.hardware.camera.any` feature to\nenable access to your app by devices that have any kind of built-in or external\ncamera---or no camera at all.\n| **Note:** If your app requires a camera, specify `required=\"true\"` for `android.hardware.camera.any`. That way, devices that don't have a camera won't have access to your app.\n\nFor the other features, set `android:required=\"false\"` to ensure devices such as\nChromebooks that don't have back cameras, autofocus, or flash can access your\napp on app stores.\n\nKey points\n----------\n\n- [`CAMERA`](/reference/android/Manifest.permission#CAMERA) permission: Gives your app access to a device's cameras\n- [`\u003cuses-feature\u003e`](/guide/topics/manifest/uses-feature-element) manifest element: Informs app stores of the features used by your app\n- [`required`](/guide/topics/manifest/uses-feature-element#required) attribute: Indicates to app stores whether your app can function without a specified feature\n\nResults\n-------\n\nYou've made your app available to as many devices as possible by explicitly\nsetting the camera features supported by your app and specifying the features\nyour app requires. Chromebook users can download and install your app from\nGoogle Play and other app stores. Users of devices with full‑featured\ncamera support, like phones, can also download the app."]]