/** * Gets the resolution, * @return a pair to return the width and height * */ public static Pair<Integer,Integer> getResolution(Context ctx){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return getRealResolution(ctx); } else { return getRealResolutionOnOldDevice(ctx); } }
/** * Gets the resolution, * @return a pair to return the width and height * */ public static Pair<Integer,Integer> getResolution(Context ctx){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return getRealResolution(ctx); } else { return getRealResolutionOnOldDevice(ctx); } }
/** * Gets the resolution, * @return a pair to return the width and height * */ public static Pair<Integer,Integer> getResolution(Context ctx){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return getRealResolution(ctx); } else { return getRealResolutionOnOldDevice(ctx); } }
/** * Gets the resolution, * @return a pair to return the width and height * */ public static Pair<Integer,Integer> getResolution(Context ctx){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return getRealResolution(ctx); } else { return getRealResolutionOnOldDevice(ctx); } }
/** * Gets the resolution, * @return a pair to return the width and height * */ public static Pair<Integer,Integer> getResolution(Context ctx){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return getRealResolution(ctx); } else { return getRealResolutionOnOldDevice(ctx); } }