使用app进行蓝牙扫描

时间:2016-09-13 19:53:03

标签: java android bluetooth scanning

我正在制作一款应用,并且想知道我的应用是否需要扫描蓝牙设备?因为手机本身已经扫描了设备。

我是否需要在我的应用中设置扫描仪才能有效使用蓝牙? 或者我可以使用"扫描仪"从我的手机?

1 个答案:

答案 0 :(得分:0)

简短的回答是不,你不需要自己写。 Android拥有自己的发现功能,内置于您可以使用的BluetoothAdapter类中。

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