@@ -0,0 +1,1110 @@
+package com.beepscore.android.sunshine;%0A%0Aimport android.app.Activity;%0Aimport android.util.DisplayMetrics;%0A%0A/**%0A * Created by stevebaker on 8/20/15.%0A */%0Apublic class DisplayUtils %7B%0A%0A    /**%0A     * http://stackoverflow.com/questions/9279111/determine-if-the-device-is-a-smartphone-or-tablet/9308284#9308284%0A     *%0A     * @param activity%0A     * @param diagonalThresholdInches display physical size threshold%0A     * e.g. can use 6.5 for a small tablet%0A     * @return true if display size is greater than or equal to diagonalThresholdInches%0A     */%0A    static boolean isDisplayLarge(Activity activity, double diagonalThresholdInches) %7B%0A        DisplayMetrics metrics = new DisplayMetrics();%0A        activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);%0A%0A        float yInches = metrics.heightPixels / metrics.ydpi;%0A        float xInches = metrics.widthPixels / metrics.xdpi;%0A        double diagonalInches = Math.sqrt(xInches * xInches + yInches * yInches);%0A        if (diagonalInches %3E= diagonalThresholdInches) %7B%0A            return true;%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%7D%0A

Add DisplayUtils with method isDisplayLarge