altos: Fix .sdcdbrc file for telebt-v0.1
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / AltosDroid.java
index 844ca39ee21a2c29c7e36cb9a5d6306d05bfdb65..b4a3227cde7664d4e4b8d1a99f1c9edf84ec8352 100644 (file)
@@ -39,6 +39,7 @@ import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.Toast;
 import org.altusmetrum.AltosDroid.R;
+import org.altusmetrum.AltosLib.*;
 
 /**
  * This is the main Activity that displays the current chat session.
@@ -48,6 +49,8 @@ public class AltosDroid extends Activity {
     private static final String TAG = "BluetoothChat";
     private static final boolean D = true;
 
+    private static final AltosLine q = new AltosLine();
+
     // Message types sent from the BluetoothChatService Handler
     public static final int MESSAGE_STATE_CHANGE = 1;
     public static final int MESSAGE_READ = 2;
@@ -336,6 +339,14 @@ public class AltosDroid extends Activity {
     public boolean onOptionsItemSelected(MenuItem item) {
         Intent serverIntent = null;
         switch (item.getItemId()) {
+        case R.id.telemetry_service_control:
+            serverIntent = new Intent(this, TelemetryServiceActivities.Controller.class);
+            startActivity(serverIntent);
+            return true;
+        case R.id.telemetry_service_bind:
+            serverIntent = new Intent(this, TelemetryServiceActivities.Binding.class);
+            startActivity(serverIntent);
+            return true;
         case R.id.secure_connect_scan:
             // Launch the DeviceListActivity to see devices and do scan
             serverIntent = new Intent(this, DeviceListActivity.class);