--- /dev/null
+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";
+ }
+}
package org.average.whereami;
import org.average.whereami.WhereAmIprefs;
+import org.average.whereami.PhoneLog;
import android.app.Activity;
import android.net.wifi.WifiManager;
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