(Android) Find physical screen size programatically
This method will find out if screen is a tablet size. You could of course make this even more corner case-compliant by getting the units dpi (dot per inch) and use the Pythagorean theorem to find the actual inch size of the diagonal. But this will probably suffice for most case.