I wish to perform device-to-device file transfer over Bluetooth in my Android application. Currently I have written the code necessary to make connections between multiple Bluetooth devices and I have retrieved connected BluetoothSockets for data exchange.
Is there a library available which implements file transfer that can be given a socket, or streams to use?
If not, can someone point me towards information about implementing the ability myself?
I am very new to file transfer programming and Bluetooth, so any help is appreciated.
Also, because I want this functionality built into my app, I am not looking to just run some other end-user app on the phone, I really do need to be able to code against this functionality (whether via a library, or my own implementation).
Normally over Bluetooth you would use something like OPP.
However that doesn’t seem to be implemented on Android yet…
What I would do, is try serializing the data and sending it via RFCOMM or SPP bit by bit. For XML there is XStream, or, even simpler, Google’s Protobuf.
Let me know if it works.