altosdroid: miscellaneous cleanup
authorMike Beattie <mike@ethernal.org>
Tue, 28 Aug 2012 05:37:45 +0000 (17:37 +1200)
committerMike Beattie <mike@ethernal.org>
Tue, 28 Aug 2012 05:37:45 +0000 (17:37 +1200)
* Copyright info
* whitespace
* comments
* unused imports

Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java
altosdroid/src/org/altusmetrum/AltosDroid/TelemetryReader.java
altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java

index 19b2a2a54638db55acc43bf642b0ba86d49ff5f1..18581142efc13679a24d1768af563e538a3e4ff2 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Copyright Â© 2011 Keith Packard <keithp@keithp.com>
- * Copyright Â© 2012 Mike Beattie <mike@ethernal.org>
+ * Copyright © 2011 Keith Packard <keithp@keithp.com>
+ * Copyright © 2012 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
index cf982eac964b13fcc4bc0049b7db97a0a34c0d10..3855f6f9a262670f7c4925e940cd1485fb0b25ef 100644 (file)
@@ -18,6 +18,7 @@
 package org.altusmetrum.AltosDroid;
 
 import java.lang.ref.WeakReference;
+
 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
@@ -47,7 +48,7 @@ import android.view.Window;
 //import android.widget.EditText;
 import android.widget.TextView;
 import android.widget.Toast;
-import org.altusmetrum.AltosDroid.R;
+//import org.altusmetrum.AltosDroid.R;
 
 /**
  * This is the main Activity that displays the current chat session.
index bfa5db5c01815a039357b1f4f007b84f9262cff3..c47e4942040dd911a1d44f4e3b05f7df33dc145e 100644 (file)
@@ -1,3 +1,22 @@
+/*\r
+ * Copyright © 2011 Keith Packard <keithp@keithp.com>\r
+ * Copyright © 2012 Mike Beattie <mike@ethernal.org>\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; version 2 of the License.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+ * General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License along\r
+ * with this program; if not, write to the Free Software Foundation, Inc.,\r
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.\r
+ */\r
+\r
+\r
 package org.altusmetrum.AltosDroid;\r
 \r
 import java.text.*;\r
index 3ae87bb139f8a5c9dfce058fffdf3a354cab0552..4701ba1f2c0cf568d6d8e0a2d1d6adac195697f8 100644 (file)
@@ -70,6 +70,7 @@ public class TelemetryService extends Service {
        private AltosBluetooth mAltosBluetooth = null;
        private TelemetryReader mTelemetryReader = null;
 
+       // internally track state of bluetooth connection
        private int state = STATE_NONE;
 
        // Handler of incoming messages from clients.