aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java17
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsActivity.java4
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java4
-rw-r--r--src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java4
4 files changed, 25 insertions, 4 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
index 3d2d0a8..7092c32 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 a0ef34c..1290344 100644
--- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java
+++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java
@@ -73,8 +73,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 fb9e906..ae8534e 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;