There are some screen resolutions already defined in Android. They are:
How do I know which type my device screen resolution is?
Use DisplayMetrics
to get screen info from your device.
Sample code:
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
final int height = dm.heightPixels;
final int width = dm.widthPixels;