From afeaaa98137e178d253b18c6616548a190b242fe Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 18 Feb 2011 09:36:37 -0800 Subject: [PATCH] Disabling last sent date for now. --- gen/com/geoloqi/android1/R.java | 9 ++++----- res/layout/main.xml | 4 ++-- src/com/geoloqi/android1/Geoloqi.java | 14 +++++++------- src/com/geoloqi/android1/GeoloqiHTTPRequest.java | 1 - src/com/geoloqi/android1/GeoloqiService.java | 2 +- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/gen/com/geoloqi/android1/R.java b/gen/com/geoloqi/android1/R.java index 8645ddb..a91fa3d 100644 --- a/gen/com/geoloqi/android1/R.java +++ b/gen/com/geoloqi/android1/R.java @@ -20,18 +20,17 @@ public static final class drawable { public static final int ic_stat_notify=0x7f020002; } public static final class id { - public static final int buttonStart=0x7f08000c; + public static final int buttonStart=0x7f08000b; public static final int editTextEmail=0x7f080002; public static final int editTextPassword=0x7f080003; public static final int geoloqiLogo=0x7f080004; - public static final int login=0x7f08000e; - public static final int quit=0x7f08000f; + public static final int login=0x7f08000d; + public static final int quit=0x7f08000e; public static final int root=0x7f080000; - public static final int settings=0x7f08000d; + public static final int settings=0x7f08000c; public static final int textAccuracy=0x7f080009; public static final int textAltitude=0x7f080008; public static final int textEmail=0x7f080001; - public static final int textLastSent=0x7f08000b; public static final int textLatitude=0x7f080005; public static final int textLongitude=0x7f080006; public static final int textNumPointsInQueue=0x7f08000a; diff --git a/res/layout/main.xml b/res/layout/main.xml index 6579f12..fb688ce 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -35,12 +35,12 @@ - + \ No newline at end of file diff --git a/src/com/geoloqi/android1/Geoloqi.java b/src/com/geoloqi/android1/Geoloqi.java index 6fd3880..9207e78 100644 --- a/src/com/geoloqi/android1/Geoloqi.java +++ b/src/com/geoloqi/android1/Geoloqi.java @@ -50,7 +50,7 @@ public void onCreate(Bundle savedInstanceState) { spdLabel = (TextView) findViewById(R.id.textSpeed); accLabel = (TextView) findViewById(R.id.textAccuracy); numPointsLabel = (TextView) findViewById(R.id.textNumPointsInQueue); - lastSentLabel = (TextView) findViewById(R.id.textLastSent); + // lastSentLabel = (TextView) findViewById(R.id.textLastSent); buttonStart.setOnClickListener(this); // buttonStop.setOnClickListener(this); @@ -210,12 +210,12 @@ protected void onPostExecute(LQPoint point) { accLabel.setText(""+point.horizontalAccuracy + "m"); numPointsLabel.setText(""+db.numberOfUnsentPoints()); - Date lastSent = GeoloqiHTTPRequest.singleton().lastSent; - Log.i(Geoloqi.TAG, "+++++++++ " + lastSent); - if(lastSent == null) - return; - - lastSentLabel.setText(""+((System.currentTimeMillis()/1000) - lastSent.getTime()) + " seconds"); + // TODO: Talk to the service to find out the date the last point was sent +// Date lastSent = ??? +// if(lastSent == null) +// return; +// +// lastSentLabel.setText(""+((System.currentTimeMillis()/1000) - lastSent.getTime()) + " seconds"); } } diff --git a/src/com/geoloqi/android1/GeoloqiHTTPRequest.java b/src/com/geoloqi/android1/GeoloqiHTTPRequest.java index a48f4b4..5f8d26f 100644 --- a/src/com/geoloqi/android1/GeoloqiHTTPRequest.java +++ b/src/com/geoloqi/android1/GeoloqiHTTPRequest.java @@ -33,7 +33,6 @@ public class GeoloqiHTTPRequest { public static GeoloqiHTTPRequest singleton() { if(singleton == null) { - Log.i(Geoloqi.TAG, "}}}}}} Creating new HTTP Request"); singleton = new GeoloqiHTTPRequest(); } return singleton; diff --git a/src/com/geoloqi/android1/GeoloqiService.java b/src/com/geoloqi/android1/GeoloqiService.java index 232c2d7..e12810f 100644 --- a/src/com/geoloqi/android1/GeoloqiService.java +++ b/src/com/geoloqi/android1/GeoloqiService.java @@ -166,7 +166,7 @@ protected void onProgressUpdate() { @Override protected void onPostExecute(Void v) { // Log.d(TAG, "Flush queue completed"); - + lastPointSent = GeoloqiHTTPRequest.singleton().lastSent; } }