The Bluetooth protocol stack lets you use several methods, including RFCOMM and Object Exchange (OBEX), to send and receive files between devices. Become familiar with the Java language library used to control a Bluetooth device and learn how to use JSR-82 API. OBEX is great way to send object data, context, and metadata about the payload.
is anyone else seeing what was supposed to be a dead platform coming back to life?
Java is not dead, never been
This is great news as no longer need to use own proprietary JNI-wrapped bluetooth libraries. It is not that JNI-wrapped library is a bad, but its always better use a standardized libraries as it has more documentation around.
In case you hadn’t noticed: not java is not dead. True it’s been half dead on the desktop for a while. But some very popular desktop programs like Azureus are indeed java apps (Java+SWT).
Aside from the desktop, it is still very active in the server arena and most of all J2ME (Java 2 mobile edition) is available on nearly all phones out there. That’s what the article is about also. You have to use java to get your bluetooth phone to communicate with some other device.
Now if all of the java phones out there with bluetooth connectivity had also VM implementation that didn’t forget to actually implement JSR-82 … we could really make great apps. Most of the ones coming out now (like sony K750) do implement them, but slightly older models like Motorola V500 or Sony K700 have both bluetooth and java, but no way to access one from the other.
We are starting to see some compelling portable J2ME apps. Check out:
KMaps – http://www.alealea.com/
Opera Mini – http://www.opera.com/products/mobile/operamini/