@@ -0,0 +1,1650 @@
+package com.github.keaume.amigo;%0A%0Aimport android.app.Application;%0Aimport android.content.Intent;%0Aimport android.support.v7.preference.PreferenceManager;%0A%0Aimport com.github.keaume.amigo.fragment.SettingsFragment;%0Aimport com.github.keaume.amigo.sql.amigoDataSource;%0Aimport timber.log.Timber;%0A%0Apublic class amigoApplication extends Application %7B%0A%0A    private static amigoApplication amigoApplication;%0A    private static amigoDataSource amigoDataSource;%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A        amigoApplication = this;%0A        amigoDataSource = new amigoDataSource(this);%0A        if (getPreferenceBoolean(SettingsFragment.ENABLE_SAVE_STACKTRACE_KEY, false)) %7B%0A            Thread.setDefaultUncaughtExceptionHandler(new amigoLogUtility());%0A        %7D%0A        if (getPreferenceBoolean(SettingsFragment.ENABLE_LOGGING_KEY, false)) %7B%0A            Timber.plant(new Timber.DebugTree());%0A        %7D%0A    %7D%0A%0A    public static String getPreferenceString(String key, String defValue) %7B%0A        return PreferenceManager.getDefaultSharedPreferences(amigoApplication).getString(key, defValue);%0A    %7D%0A%0A    public static boolean getPreferenceBoolean(String key, Boolean defValue) %7B%0A        return PreferenceManager.getDefaultSharedPreferences(amigoApplication).getBoolean(key, defValue);%0A    %7D%0A%0A    public static String getResourceString(int resId) %7B%0A        return amigoApplication.getString(resId);%0A    %7D%0A%0A    public static void sendBroadcastStatic(Intent intent) %7B%0A        amigoApplication.sendBroadcast(intent);%0A    %7D%0A%0A    public static String getNameForVin(String vin) %7B%0A        return amigoDataSource.getNameForVin(vin);%0A    %7D%0A%0A%7D%0A

Create amigoApplication.java