[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-27。"],[],[],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."]]