public static Display getDisplay(final Context context) {
        return ((WindowManager) context.getSystemService(WINDOW_SERVICE))
                .getDefaultDisplay();
    }
Get default display

@param context
@return display
app/src/main/java/com/github/pockethub/android/util/ServiceUtils.java