最終更新: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

  • android.hardware.bluetooth?
  • android.hardware.bluetooth_le?

Camera

Location

  • android.hardware.location?
  • android.hardware.location.network?
  • android.hardware.location.gps?

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

  • android.hardware.telephony?
  • android.hardware.telephony.cdma?
  • android.hardware.telephony.gsm?

Television

  • android.hardware.type.television?

Touchscreen

USB

Wifi

  • android.hardware.wifi?

Software features

Live Wallpaper

  • android.software.live_wallpaper?

SIP/VOIP

  • android.software.sip?
  • android.software.sip.voip?

Android/マニフェスト

Android/パーミッション

uses-feature

関連