Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Size; public class Main { public static boolean isWide(Size size) { double ratio = ((double) size.getWidth()) / ((double) size.getHeight()); return ratio > 1.68 && ratio < 1.87; } }