Android Bluetooth to connect another bluetooth device

前端 未结 2 1795
庸人自扰
庸人自扰 2020-12-18 08:03

Im doing bluetooth based application, I want to connect other devices like nokia devices, and printer.

I refer the android bluetooth documentation http://developer.a

2条回答
  •  借酒劲吻你
    2020-12-18 08:56

    I think this is not possible.

    in fact, when you create a bluetooth socket, you have to use createRfcommSocketToServiceRecord(UUID)

    This function requires an UUID that is a string shared between the applications on the two devices so the connection can be established.

    Without a bluetooth socket listening on the other device, with the exact same UUID, you won't be able to share data.

提交回复
热议问题