import com.google.api.client.util.DateTime;
import android.util.Log;
+import android.os.SystemClock;
public final class Location extends Oracle {
@Override
public final String getResult() {
+ SystemClock.sleep(6000);
return "Response from Location.getResult";
}
-
- //public PhoneLog() {}
}
//import com.google.common.collect.Lists;
import android.util.Log;
+import android.os.SystemClock;
public final class PhoneLog extends Oracle {
@Override
public final String getResult() {
+ SystemClock.sleep(5000);
return "Response from PhoneLog.getResult";
}
-
- //public PhoneLog() {}
}
import android.os.Bundle;
import android.os.AsyncTask;
import android.os.Handler;
-import android.os.SystemClock;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.content.BroadcastReceiver;
@Override
protected String doInBackground(Void... params) {
Log.w("WhereAmI", "BgUpdate " + updater + " starting");
- SystemClock.sleep(5000); // real job do be done here
- String result = updater.getResult();
- Log.w("WhereAmI", "BgUpdate about to return");
- return result;
+ return updater.getResult();
}
@Override