Continuing my adventures into the Android domain, I wanted to have a Bluetooth connection between two nodes, going indefinitely, until one node sends a termination signal. Between the time of initializing the connection, and termination, the two nodes may exchange messages at random intervals. Now, the Bluetooth chat example provided in http://developer.android.com/resources/samples/BluetoothChat/index.html is very helpful. I did use some of the code, but my client connection was defined in the Activity class itself, as a inner class extending Thread: public class MyActivity extends Activity { //some code here that does the work in the activity private class MyThread extends Thread { private final BluetoothSocket socket; private final BluetoothDevice device; private WorkerInfo worker; pu...
Just some random arrows of thought...