package org.average.whereami;
-import org.average.whereami.CredentialStore;
+import org.average.whereami.PersistentStore;
import java.lang.Math;
import java.io.IOException;
private String hours2to4;
private String hours5up;
- public LastLocation(final Resources res, final CredentialStore store) {
+ public LastLocation(final Resources res, final PersistentStore store) {
super(res, store);
loc_names = res.getStringArray(R.array.loc_names);
loc_lats = res.getStringArray(R.array.loc_lats);
cloc.getTimestampMs().toString());
return locationMessage(lat, lon, tsm);
} catch (GoogleJsonResponseException e) {
- Log.v(TAG, "GoogleJsonResponseException: " + e);
+ Log.e(TAG, "GoogleJsonResponseException: " + e);
if (e.getResponse().getStatusCode() == 401) {
return authErrorMessage;
} else {
return e.getMessage();
}
} catch (HttpResponseException e) {
- Log.v(TAG, "HttpResponseException: " + e);
+ Log.e(TAG, "HttpResponseException: " + e);
return e.getMessage();
} catch (IOException e) {
e.printStackTrace();