使用应用程序进行蓝牙扫描

Bluetooth scanning with app

我正在制作一个应用程序,想知道我的应用程序是否需要扫描蓝牙设备?因为 phone 本身已经在扫描设备。

我是否需要在我的应用程序中设置扫描仪才能有效使用蓝牙? 或者我可以使用 phone 中的 "scanner" 吗?

简短的回答是否定的,您不需要自己编写。 Android BluetoothAdapter class 中内置了自己的发现功能供您使用。

查看本教程:http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084