aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-05-05 22:23:04 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-05-05 22:23:04 +0200
commit6258affa34f7b8916a8ba29d5ee6d9ebce9893b2 (patch)
treec7d02f930e46aec6c0d1e0c3a6875777ba65da1d
parent5a86503010be2ba52641f7da6245ea879a97139b (diff)
parent084952150678d70510c14685d6f6c902631f7a5f (diff)
downloadBlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.zip
BlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.tar.gz
BlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.tar.bz2
Merge branch 'doc' into dev_1.2.x
-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;