Accessing a service/thread from different activities
<p>I'm writing a Bluetooth remote control application to control my Bluetooth enabled robot, but I have a hard time understanding the workflow of an Android application. I know what I want, but it's not very easy to do. Other responses haven't been satisfactory.</p>

<p>Here's a rough application layout I want:</p>

<p><img src="http://i.stack.imgur.com/uqVDK.png" alt="enter image description here"></p>

<p>If you have a better idea of how to do this thing I'd be happy to consider.</p>

<p>Mainly my problem is accessing the connection thread/service (whatever the name is) from the connect method of the main activity and from the control activity, how do I pass the reference? I know that the main activity can disappear when in a sub-activity of the application, so I'd have to pass the reference by <code>getExtra()</code> probably, but it only takes a <code>String</code> variable...</p>
