How to programmatically pair a bluetooth device on Android

后端 未结 10 1941
轻奢々
轻奢々 2020-11-30 23:27

For my application I\'m trying to programmatically pair a bluetooth device. I\'m able to show the pairing dialog for the device I want to pair and I can enter a pincode. Whe

10条回答
  •  心在旅途
    2020-11-30 23:44

    Using reflection you can call the method createBond from the BluetoothDevice class.

    See this post: How to unpair or delete paired bluetooth device programmatically on android?

    There is also a solution for unpair.

提交回复
热议问题