可以在 Android App Manifest 中声明蓝牙版本吗?

Can Bluetooth Version be declared in Android App Manifest?

我想使用 Google 的支持设备列表(来自 Google 开发者控制台)作为我的应用程序用户的设备兼容性列表。 Google 的客户支持表示,该列表来自应用程序清单 XML 文件中声明的所有应用程序要求。

为了使此列表成为一个良好的兼容性列表,我需要确保它能够将蓝牙版本考虑在内。我的应用程序需要蓝牙 4.0 及更高版本,应用程序清单是否能够声明蓝牙 versions/version 范围?还是只能声明一般使用蓝牙?

谢谢! V

您不能在清单文件中指定 BT 版本。据我所知,您只能以编程方式检查设备是否具有 BLUETOOTH 或 BLUETOOTH_LE

如果您指的是蓝牙 LE - 您可以声明

<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>

在清单中防止不支持它的设备下载您的应用程序。

(BLE 和 BL4.0 实际上是一回事,但据我所知有些设备声称支持 4.0 但不支持 LE profile)