Point point = new Point();
getWindowManager().getDefaultDisplay().getSize(point);
int width = point.x;
int height = point.y;
Point point = new Point();
getWindowManager().getDefaultDisplay().getSize(point);
int width = point.x;
int height = point.y;