Large diffs are not rendered by default.

@@ -104,11 +104,11 @@ public void onReceivedData(byte[] arg0) {
String data = new String(arg0, "UTF-8");
remainingString = remainingString + data;
remainingString = mNMEAParser.parseNmeaSentence(remainingString);
mLocation = mNMEAParser.getLocationData();
Location tmpLocation = mNMEAParser.getLocationData();

if (mHandler != null) {
mHandler.obtainMessage(MESSAGE_RAW, data).sendToTarget();
mHandler.obtainMessage(MESSAGE_GPS,mLocation).sendToTarget();
mHandler.obtainMessage(MESSAGE_GPS,tmpLocation).sendToTarget();
//send the data to the manager
// if(mLocation != null){
// mHandler.obtainMessage(MESSAGE_GPS,mLocation).sendToTarget();
@@ -168,14 +168,15 @@ public void onCreate() {
this.context = this;
mOnServiceListener_Remote = null;
serialPortConnected = false;
mLocation = new Location("EXTERNAL_GPS");

Service_USBGPS.SERVICE_CONNECTED = true;
setFilter();
usbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
findSerialPortDevice();

remainingString = "";
mNMEAParser = new NMEAParser();
mLocation = new Location("EXTERNAL_GPS");
}

/* MUST READ about services
@@ -5,19 +5,6 @@
tools:context=".MainActivity"
android:orientation="vertical">


<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
android:id="@+id/attitude_text" />

<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"></LinearLayout>

<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"