Q: android screen resolution How to know the resolution of phone programatically in android .help me please

A: Try this:
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);

final int height = dm.heightPixels;
final int width = dm.widthPixels;

But you should have used site's search before asking this question.

A: You should not be using Display.getMetrics() to get the display size.  This returns the raw display size, not including things like the status bar, IME, or even more important Honeycomb's always-there system bar.  The correct way to get the size you should use is by participating in the view hierarchy layout, and using the size that is given to your view when the layout happens.
