altosdroid: Import initial versions of XML and Java for Tab content
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / AltosDroid.java
index 61931731ff320094db1efe2dace1f529a3d396df..625a2eee430d7f278a023264d47dbd8112911f3a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2012 Mike Beattie <mike@ethernal.org>
+ * Copyright © 2012-2013 Mike Beattie <mike@ethernal.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -150,7 +150,6 @@ public class AltosDroid extends Activity {
                }
        };
 
-
        void doBindService() {
                bindService(new Intent(this, TelemetryService.class), mConnection, Context.BIND_AUTO_CREATE);
                mIsBound = true;
@@ -174,6 +173,12 @@ public class AltosDroid extends Activity {
                }
        }
 
+       public void registerTab(AltosDroidTab mTab) {
+       }
+
+       public void unregisterTab(AltosDroidTab mTab) {
+       }
+
        void update_ui(AltosState state) {
                mCallsignView.setText(state.data.callsign);
                mRSSIView.setText(String.format("%d", state.data.rssi));
@@ -193,7 +198,7 @@ public class AltosDroid extends Activity {
                mAltosVoice.tell(state);
        }
 
-       String pos(double p, String pos, String neg) {
+       static String pos(double p, String pos, String neg) {
                String  h = pos;
                if (p < 0) {
                        h = neg;
@@ -300,9 +305,6 @@ public class AltosDroid extends Activity {
                mAltosVoice.stop();
        }
 
-
-
-
        public void onActivityResult(int requestCode, int resultCode, Intent data) {
                if(D) Log.d(TAG, "onActivityResult " + resultCode);
                switch (requestCode) {