Android : How to get the display height and width
DisplayMetrics metrics = new DisplayMetrics();
Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
display.getMetrics(metrics);

then

metrics.widthPixels and metrics.heightPixels
Text
Photo
Quote
Link
Chat
Audio
Video