// Path: src/com/bourke/finch/common/ConsumerKey.java
// public class ConsumerKey {
// 
//     public static final String CONSUMER_KEY = "<consumer-key>";
//     public static final String CONSUMER_SECRET =
//         "<consumer-secret>";
// }


import android.content.Context;
import android.util.Log;
import com.bourke.finch.common.ConsumerKey;
import java.io.File;
import twitter4j.conf.Configuration;
import twitter4j.conf.ConfigurationBuilder;
import twitter4j.Twitter;
import twitter4j.TwitterFactory;
        Configuration configuration = configurationBuilder.build();
        mTwitter = new TwitterFactory(configuration).getInstance();
    }

    public static FinchTwitterFactory getInstance(Context context) {
        if (singletonInstance == null) {
            singletonInstance = new FinchTwitterFactory(context);
        }
        return singletonInstance;
    }

    /**
     * Setup the Android 4.0 HttpResponseCache if on ICS or higher, otherwise
     * fall back to compatibility lib.
     */
    private void installHttpResponseCache() {
        final long httpCacheSize = 5 * 1024 * 1024; // 5 MiB
        final File httpCacheDir = new File("/sdcard", "http");

        try {
            Class.forName("android.net.http.HttpResponseCache")
                .getMethod("install", File.class, long.class)
                .invoke(null, httpCacheDir, httpCacheSize);
        } catch (Exception httpResponseCacheNotAvailable) {
            Log.d(TAG, "android.net.http.HttpResponseCache not available, " +
                    "probably because we're running on a pre-ICS version of " +
                    "Android. Using com.integralblue.httpresponsecache." +
                    "HttpHttpResponseCache.");
            try {
                com.integralblue.httpresponsecache.HttpResponseCache.install(
// Path: src/com/bourke/finch/common/ConsumerKey.java
// public class ConsumerKey {
// 
//     public static final String CONSUMER_KEY = "<consumer-key>";
//     public static final String CONSUMER_SECRET =
//         "<consumer-secret>";
// }


// Path: src/com/bourke/finch/common/FinchTwitterFactory.java
import android.content.Context;
import android.util.Log;
import com.bourke.finch.common.ConsumerKey;
import java.io.File;
import twitter4j.conf.Configuration;
import twitter4j.conf.ConfigurationBuilder;
import twitter4j.Twitter;
import twitter4j.TwitterFactory;

        Configuration configuration = configurationBuilder.build();
        mTwitter = new TwitterFactory(configuration).getInstance();
    }

    public static FinchTwitterFactory getInstance(Context context) {
        if (singletonInstance == null) {
            singletonInstance = new FinchTwitterFactory(context);
        }
        return singletonInstance;
    }

    /**
     * Setup the Android 4.0 HttpResponseCache if on ICS or higher, otherwise
     * fall back to compatibility lib.
     */
    private void installHttpResponseCache() {
        final long httpCacheSize = 5 * 1024 * 1024; // 5 MiB
        final File httpCacheDir = new File("/sdcard", "http");

        try {
            Class.forName("android.net.http.HttpResponseCache")
                .getMethod("install", File.class, long.class)
                .invoke(null, httpCacheDir, httpCacheSize);
        } catch (Exception httpResponseCacheNotAvailable) {
            Log.d(TAG, "android.net.http.HttpResponseCache not available, " +
                    "probably because we're running on a pre-ICS version of " +
                    "Android. Using com.integralblue.httpresponsecache." +
                    "HttpHttpResponseCache.");
            try {
                com.integralblue.httpresponsecache.HttpResponseCache.install(
                        httpCacheDir, httpCacheSize);