aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-01-30 23:01:35 +0100
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-01-30 23:01:35 +0100
commit6ba8fe019b12a769a31abe1b1bf459f2805a43c8 (patch)
tree918c5525023006e5a65489c24efcb0486e5410c9 /src
parent751719019ae20c11205fa8ac4ea35fbf79f890e3 (diff)
downloadBlueGPS-6ba8fe019b12a769a31abe1b1bf459f2805a43c8.zip
BlueGPS-6ba8fe019b12a769a31abe1b1bf459f2805a43c8.tar.gz
BlueGPS-6ba8fe019b12a769a31abe1b1bf459f2805a43c8.tar.bz2
add more comments
Diffstat (limited to 'src')
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
index 97a5fa3..1c5961c 100644
--- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
+++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
@@ -67,6 +67,14 @@ public class BlueetoothGpsManager {
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.
+ * It is used to read NMEA data from the GPS or to send SIRF III binary commands or SIRF III NMEA commands to the GPS.
+ * You should run the main read loop in one thread and send the commands in a separate one.
+ *
+ * @author Herbert von Broeuschmeul
+ *
+ */
private class ConnectedGps extends Thread {
private final InputStream in;
private final OutputStream out;
@@ -152,10 +160,10 @@ public class BlueetoothGpsManager {
out2.print(buffer);
out2.flush();
// } catch (IOException e) {
- // Log.e("BT test", "Exception during write", e);
+ // Log.e("BT test", "Exception during write", e);
} catch (InterruptedException e) {
Log.e(LOG_TAG, "Exception during write", e);
- }
+ }
}
}