This application allows two Android devices to carry out two-way text chat over Bluetooth. It demonstrates all the fundamental Bluetooth API capabilites, such as:
You can find the source code for this sample in your SDK at:
<sdk>/platforms/android-<version>/samples/