我正在做一个应用程序,想知道我的应用程序是否需要扫描蓝牙设备?因为手机本身已经扫描过设备了。
我需要在我的应用程序中设置扫描仪才能有效地使用蓝牙吗?或者我可以使用我手机上的“扫描仪”?
发布于 2016-09-14 03:59:14
简短的回答是不,你不需要自己写。Android在BluetoothAdapter类中内置了自己的发现功能,您可以利用它。
请查看此教程:http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084
https://stackoverflow.com/questions/39477996
复制相似问题