4

I am currently using connect() to pair my android phone to a bluetooth device. If it's the first time I do it, it asks me to enter the PIN number. However, I saw there was a fonction called createbond() useful to pair devices, but only from API 19 and later.

There is my question: how to pair devices, without connecting, and from API 14 and later? Or do I misuse/misunderstand these functions?

Thanks

Anduriel
  • 93
  • 2
  • 10
  • 1
    You must first connect to pair devices, so you can only pair with connecting the devices, but if you only want to pair the devices, connect them and after they paired make a disconnect/close socket – Mert Jan 28 '14 at 09:51
  • Thanks, but if I want to avoid connecting each time I want to – Anduriel Jan 28 '14 at 19:52
  • ok, i think this [link](http://stackoverflow.com/questions/17168263/how-to-pair-bluetooth-device-programmatically-android) could help you – Mert Jan 29 '14 at 06:39

0 Answers0