From 0d57ad853b17a0cf6f4a3e2c7372ba6580f3c379 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 3 Feb 2012 11:05:29 +0400 Subject: [PATCH] trying to avoid wierd lost auth/ssl error cases --- src/org/average/whereami/Oracle.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/average/whereami/Oracle.java b/src/org/average/whereami/Oracle.java index fc35c4f..157c988 100644 --- a/src/org/average/whereami/Oracle.java +++ b/src/org/average/whereami/Oracle.java @@ -18,8 +18,8 @@ public class Oracle { final String TAG = getClass().getName(); - public HttpTransport httpTransport = AndroidHttp.newCompatibleTransport(); - public JsonFactory jsonFactory = new JacksonFactory(); + public HttpTransport httpTransport; + public JsonFactory jsonFactory; public GoogleAccessProtectedResource accessProtectedResource; @@ -28,6 +28,8 @@ public class Oracle { public Oracle(final Resources res, final CredentialStore store) { authErrorMessage = res.getString(R.string.autherror); + httpTransport = AndroidHttp.newCompatibleTransport(); + jsonFactory = new JacksonFactory(); AccessTokenResponse token = store.read(); Log.v(TAG, "tokens - access: \"" + token.accessToken + "\", refresh: \"" + token.refreshToken + -- 2.43.0