[android] How to determine device screen size category (small, normal, large, xlarge) using code?

If you want to easily know the screen density and size of an Android device, you can use this free app (no permission required): https://market.android.com/details?id=com.jotabout.screeninfo