我正在開發智能手機應用程序,該應用程序必須使用BLE連接到設備以實現其功能。我如何驗證我的應用程序不會下載到沒有BLE的安卓系統
如何確認我的應用程序不會通過谷歌播放/應用商店下載到不支持BLE的手機上?
感謝
我正在開發智能手機應用程序,該應用程序必須使用BLE連接到設備以實現其功能。我如何驗證我的應用程序不會下載到沒有BLE的安卓系統
如何確認我的應用程序不會通過谷歌播放/應用商店下載到不支持BLE的手機上?
感謝
你可以做這樣的事情
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
那麼你可以在清單使用用於此目的
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
If you want to declare that your app is available to BLE-capable devices only, include the following in your app's manifest:
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>