DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
height = displaymetrics.heightPixels;
width = displaymetrics.widthPixels;
Log.e("FirstImage", "Width = "+width+"Height = "+height);
The above was the code I have used to display the screen size.. but the problem is I am getting width=320
and height=569
. But I am using motorola milestone with screen size 480x854
How can I get the correct size?