]> average.org Git - WhereAmI.git/commitdiff
add PhoneLog class
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Tue, 31 Jan 2012 13:43:10 +0000 (17:43 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Tue, 31 Jan 2012 13:43:10 +0000 (17:43 +0400)
src/org/average/whereami/PhoneLog.java [new file with mode: 0644]
src/org/average/whereami/WhereAmI.java

diff --git a/src/org/average/whereami/PhoneLog.java b/src/org/average/whereami/PhoneLog.java
new file mode 100644 (file)
index 0000000..bda3596
--- /dev/null
@@ -0,0 +1,24 @@
+package org.average.whereami;
+
+import com.google.api.client.extensions.android2.AndroidHttp;
+import com.google.api.client.googleapis.GoogleHeaders;
+import com.google.api.client.http.HttpRequest;
+import com.google.api.client.http.HttpResponse;
+import com.google.api.client.http.HttpResponseException;
+import com.google.api.client.http.HttpTransport;
+import com.google.api.client.util.DateTime;
+
+//import com.google.api.services.calendar.CalendarClient;
+//import com.google.api.services.calendar.CalendarRequestInitializer;
+//import com.google.api.services.calendar.CalendarUrl;
+//import com.google.api.services.calendar.model.CalendarEntry;
+//import com.google.api.services.calendar.model.CalendarFeed;
+//import com.google.common.collect.Lists;
+
+import android.util.Log;
+
+public final class PhoneLog {
+       public static final String getResult() {
+               return "Response from PhoneLog.getResult";
+       }
+}
index 2c197cf73028e222e7a05c11757be645a69c56b6..6f2550f1a344f552b0572757fc134ac38cc83b2e 100644 (file)
@@ -1,6 +1,7 @@
 package org.average.whereami;
 
 import org.average.whereami.WhereAmIprefs;
+import org.average.whereami.PhoneLog;
 
 import android.app.Activity;
 import android.net.wifi.WifiManager;
@@ -45,8 +46,9 @@ public class WhereAmI extends Activity
             protected String doInBackground(Void... params) {
                 Log.w("WhereAmI", "BgUpdate " + updater + " starting");
                 SystemClock.sleep(5000); // real job do be done here
+                String result = PhoneLog.getResult();
                 Log.w("WhereAmI", "BgUpdate about to return");
-                return "5 seconds passed in " + updater;
+                return result;
             }
         
             @Override