]> average.org Git - WhereAmI.git/commitdiff
trying to avoid wierd lost auth/ssl error cases
authorEugene Crosser <crosser@average.org>
Fri, 3 Feb 2012 07:05:29 +0000 (11:05 +0400)
committerEugene Crosser <crosser@average.org>
Fri, 3 Feb 2012 07:05:29 +0000 (11:05 +0400)
src/org/average/whereami/Oracle.java

index fc35c4feb98344450ee8a78561c140be2a7b98f2..157c988a3f3df4c3ea77e8b349d2713c0c653bf4 100644 (file)
@@ -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 +