From 084952150678d70510c14685d6f6c902631f7a5f Mon Sep 17 00:00:00 2001 From: Herbert von Broeuschmeul Date: Thu, 28 Apr 2011 08:23:51 +0200 Subject: add comments --- .../gps/bluetooth/provider/BlueetoothGpsManager.java | 17 ++++++++++++++++- .../gps/bluetooth/provider/BluetoothGpsActivity.java | 4 +++- .../bluetooth/provider/BluetoothGpsProviderService.java | 4 +++- .../broeuschmeul/android/gps/nmea/util/NmeaParser.java | 4 +++- 4 files changed, 25 insertions(+), 4 deletions(-) (limited to 'src/org/broeuschmeul/android/gps') diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java index b233168..61177a6 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java @@ -68,8 +68,10 @@ import android.util.Log; */ public class BlueetoothGpsManager { + /** + * Tag used for log messages + */ private static final String LOG_TAG = "BlueGPS"; -// private static final String LOG_TAG = BlueetoothGpsManager.class.getSimpleName(); /** * A utility class used to manage the communication with the bluetooth GPS whn the connection has been established. @@ -80,9 +82,22 @@ public class BlueetoothGpsManager { * */ private class ConnectedGps extends Thread { + /** + * GPS InputStream from which we read data. + */ private final InputStream in; + /** + * GPS output stream to which we send data (SIRF III binary commands). + */ private final OutputStream out; + /** + * GPS output stream to which we send data (SIRF III NMEA commands). + */ private final PrintStream out2; + /** + * A boolean which indicates if the GPS is ready to receive data. + * In fact we consider that the GPS is ready when it begins to sends data... + */ private boolean ready = false; public ConnectedGps(BluetoothSocket socket) { diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsActivity.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsActivity.java index b529aab..885148c 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsActivity.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsActivity.java @@ -49,8 +49,10 @@ import android.widget.TextView; */ public class BluetoothGpsActivity extends PreferenceActivity implements OnPreferenceChangeListener, OnSharedPreferenceChangeListener { + /** + * Tag used for log messages + */ private static final String LOG_TAG = "BlueGPS"; -// private static final String LOG_TAG = BluetoothGpsActivity.class.getSimpleName(); private SharedPreferences sharedPref ; private BluetoothAdapter bluetoothAdapter = null; diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java index 49e0f34..0dec608 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java @@ -72,8 +72,10 @@ public class BluetoothGpsProviderService extends Service implements NmeaListener public static final String PREF_BLUETOOTH_DEVICE = "bluetoothDevice"; public static final String PREF_ABOUT = "about"; + /** + * Tag used for log messages + */ private static final String LOG_TAG = "BlueGPS"; -// private static final String LOG_TAG = BluetoothGpsProviderService.class.getSimpleName(); public static final String PREF_SIRF_GPS = "sirfGps"; public static final String PREF_SIRF_ENABLE_GGA = "enableGGA"; diff --git a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java index 792a6ba..9bce5f6 100644 --- a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java +++ b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java @@ -44,8 +44,10 @@ import android.util.Log; * */ public class NmeaParser { + /** + * Tag used for log messages + */ private static final String LOG_TAG = "BlueGPS"; -// private static final String LOG_TAG = NmeaParser.class.getSimpleName(); private String fixTime = null; private long fixTimestamp; -- cgit v1.1