Activate Bluetooth SPP in Android?

后端 未结 3 1294
抹茶落季
抹茶落季 2020-12-09 22:06

I am trying to use Bluetooth SPP to communicate over it. In some Android phones, SPP profile is not activated. I faced the problem in the application that SPP was not activa

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 22:43

    This might answer your question .. http://source.android.com/porting/bluetooth.html#androidBluetoothFeatures

    SPP (or ability to use Java API's to establish RFCOMM channels) is available from Android (2.0/2.1) release (Eclair) onwards

    On the Android phone you will probably need to run an application that initiates the service over SPP. **

    public BluetoothServerSocket listenUsingRfcommWithServiceRecord (String name, UUID uuid)

    ** API can be used to create a service with specified UUID to listen, Doing this should make this service visible to other devices which can then connect to it.

提交回复
热议问题