aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-04-28 08:23:51 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-04-28 08:23:51 +0200
commit084952150678d70510c14685d6f6c902631f7a5f (patch)
tree2cd36311260b87101347b521b7f87f4444d345d4 /src
parent8e61dce458a72bfede3249707f635ed43731bc13 (diff)
downloadBlueGPS-084952150678d70510c14685d6f6c902631f7a5f.zip
BlueGPS-084952150678d70510c14685d6f6c902631f7a5f.tar.gz
BlueGPS-084952150678d70510c14685d6f6c902631f7a5f.tar.bz2
add comments
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 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;