android problem in getting the screen resolution size

Posted by Sivaganesan.r on Stack Overflow See other posts from Stack Overflow or by Sivaganesan.r
Published on 2011-01-14T12:49:27Z Indexed on 2011/01/14 12:53 UTC
Read the original article Hit count: 108

Filed under:

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 sizes.. but the problem is iam getting width=320 and height=569. but am using motorola milestone screen size is 480x854

please suggest me in this...........

thanks in advance

© Stack Overflow or respective owner

Related posts about android