2016-09-28 20 views
0

我正在開發智能手機應用程序,該應用程序必須使用BLE連接到設備以實現其功能。我如何驗證我的應用程序不會下載到沒有BLE的安卓系統

如何確認我的應用程序不會通過谷歌播放/應用商店下載到不支持BLE的手機上?

感謝

+0

將確保設備具有藍牙。 有關更多詳細信息,請參閱https://developer.android.com/guide/topics/connectivity/bluetooth-le.html –

回答

0

你可以做這樣的事情

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

0

那麼你可以在清單使用用於此目的

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

根據Bluetooth Low Energy

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"/> 
相關問題