最終更新:2022-03-08 (火) 03:03:33 (780d)
Android Developers/Develop/API Guides/Android Manifest?uses-feature
Top / uses-feature
アプリケーションで使用する特別な機能を宣言
この要素により、アプリケーションはどの機能のデバイス変数を使用するのかということを特定できるようになる
http://developer.android.com/guide/topics/manifest/uses-feature-element.html
<uses-feature android:name="string" android:required=["true" | "false"] android:glEsVersion="integer" />
例
<uses-feature android:name="android.hardware.camera" />
概要
- アプリケーションで使用する特別な機能を宣言するものです。Android は、すべての Android デバイスにより完全にサポートされていない可能性がある機能をいくつか提供しています。
- <uses-sdk> 要素と同じような方法で、この要素により、アプリケーションはどの機能のデバイス変数を使用するのかということを特定できるようになります。
- この方法により、アプリケーションが機能を提供していないデバイスにインストールされることがなくなります。
Android 開発ガイド
Hardware features
Audio
- android.hardware.audio.low_latency?
Bluetooth
Camera
- android.hardware.camera
- android.hardware.camera.autofocus
- android.hardware.camera.flash?
- android.hardware.camera.front?
- android.hardware.camera.any?
Location
Microphone
- android.hardware.microphone?
NFC
- android.hardware.nfc?
Sensors
- android.hardware.sensor.accelerometer?
- android.hardware.sensor.barometer?
- android.hardware.sensor.compass?
- android.hardware.sensor.gyroscope?
- android.hardware.sensor.light?
- android.hardware.sensor.proximity?
Screen
Telephony
Television
- android.hardware.type.television?
Touchscreen
- android.hardware.faketouch
- android.hardware.faketouch.multitouch.distinct?
- android.hardware.faketouch.multitouch.jazzhand?
- android.hardware.touchscreen
- android.hardware.touchscreen.multitouch
- android.hardware.touchscreen.multitouch.distinct
- android.hardware.touchscreen.multitouch.jazzhand
USB
- android.hardware.usb.host
- android.hardware.usb.accessory?
Wifi
- android.hardware.wifi?
Software features
Live Wallpaper
- android.software.live_wallpaper?