I am trying to get the width and height of the screen in Android, i have:
DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
stageWidth = displaymetrics.widthPixels;
stageHeight = displaymetrics.heightPixels;
The width is 1280 but its coming back with 752.
Any ideas?
Try this instead:
Is that the same width? Are you sure the width is 1280 and not 752? What device are you testing it on and what height are you getting?