// Path: app/src/main/java/com/shollmann/events/ui/EventbriteApplication.java
// public class EventbriteApplication extends Application {
//     private static EventbriteApplication instance;
//     private CachingDbHelper cachingDbHelper;
//     private EventbriteApi apiEventbrite;
// 
//     public static EventbriteApplication getApplication() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         this.instance = this;
//         this.apiEventbrite = (EventbriteApi) new EventbriteApi.Builder()
//                 .baseUrl(Constants.EventbriteApi.URL)
//                 .contract(EventbriteApiContract.class)
//                 .build();
//         this.cachingDbHelper = new CachingDbHelper(getApplicationContext());
//     }
// 
//     public CachingDbHelper getCachingDbHelper() {
//         return cachingDbHelper;
//     }
// 
//     public EventbriteApi getApiEventbrite() {
//         return apiEventbrite;
//     }
// }


import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.View;
import android.view.WindowManager;
import com.shollmann.events.ui.EventbriteApplication;
        screenSize.y = ((WindowManager) EventbriteApplication.getApplication().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay()
                .getHeight();
    }

    public static Point getScreenSize() {
        return screenSize;
    }

    public static boolean isLandscape() {
        setScreenSize();
        return (screenSize.x > screenSize.y);
    }

    public static DisplayMetrics getMetrics() {
        return metrics;
    }

    public static String getString(int resource) {
        return EventbriteApplication.getApplication().getString(resource);
    }

    public static String getString(int resource, Object... formatArgs) {
        return EventbriteApplication.getApplication().getString(resource, formatArgs);
    }

    public static Resources getResources() {
        return EventbriteApplication.getApplication().getResources();
    }

    public static String[] getStringArray(int resource) {
// Path: app/src/main/java/com/shollmann/events/ui/EventbriteApplication.java
// public class EventbriteApplication extends Application {
//     private static EventbriteApplication instance;
//     private CachingDbHelper cachingDbHelper;
//     private EventbriteApi apiEventbrite;
// 
//     public static EventbriteApplication getApplication() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         this.instance = this;
//         this.apiEventbrite = (EventbriteApi) new EventbriteApi.Builder()
//                 .baseUrl(Constants.EventbriteApi.URL)
//                 .contract(EventbriteApiContract.class)
//                 .build();
//         this.cachingDbHelper = new CachingDbHelper(getApplicationContext());
//     }
// 
//     public CachingDbHelper getCachingDbHelper() {
//         return cachingDbHelper;
//     }
// 
//     public EventbriteApi getApiEventbrite() {
//         return apiEventbrite;
//     }
// }


// Path: app/src/main/java/com/shollmann/events/helper/ResourcesHelper.java
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.View;
import android.view.WindowManager;
import com.shollmann.events.ui.EventbriteApplication;

        screenSize.y = ((WindowManager) EventbriteApplication.getApplication().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay()
                .getHeight();
    }

    public static Point getScreenSize() {
        return screenSize;
    }

    public static boolean isLandscape() {
        setScreenSize();
        return (screenSize.x > screenSize.y);
    }

    public static DisplayMetrics getMetrics() {
        return metrics;
    }

    public static String getString(int resource) {
        return EventbriteApplication.getApplication().getString(resource);
    }

    public static String getString(int resource, Object... formatArgs) {
        return EventbriteApplication.getApplication().getString(resource, formatArgs);
    }

    public static Resources getResources() {
        return EventbriteApplication.getApplication().getResources();
    }

    public static String[] getStringArray(int resource) {
        return EventbriteApplication.getApplication().getResources().getStringArray(resource);