diff options
author | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2011-05-05 22:23:04 +0200 |
---|---|---|
committer | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2011-05-05 22:23:04 +0200 |
commit | 6258affa34f7b8916a8ba29d5ee6d9ebce9893b2 (patch) | |
tree | c7d02f930e46aec6c0d1e0c3a6875777ba65da1d /src/org/broeuschmeul/android/gps/bluetooth | |
parent | 5a86503010be2ba52641f7da6245ea879a97139b (diff) | |
parent | 084952150678d70510c14685d6f6c902631f7a5f (diff) | |
download | BlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.zip BlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.tar.gz BlueGPS-6258affa34f7b8916a8ba29d5ee6d9ebce9893b2.tar.bz2 |
Merge branch 'doc' into dev_1.2.x
Diffstat (limited to 'src/org/broeuschmeul/android/gps/bluetooth')
3 files changed, 22 insertions, 3 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";
|