Binary transfer using bluetooth android--(OBEX)

2.4k Views Asked by At

I need to transfer binary data through bluetooth in android. Should I use OBEX for it or is there any other way of doing it.

Please suggest me a tutorial/link for the same.

2

There are 2 best solutions below

0
On

The standard method of Bluetooth file transfer employs OBEX over RFCOMM, providing an FTP service/profile. OBEX is a binary/object exchange protocol from the IrDA association, and is fairly easy to implement but very scalable and generic. Also, multiple libraries are available on the internet if you don't want to code from scratch via the specs. Whether you want to target the full-blown FTP or the simpler OPP, you will anyway need OBEX as underlying layer.

2
On

You should use the Bluetooth SPP profile, Android has good documentation and example code here .Setting up Bluetooth