posted by Full-stack Developer 2011. 2. 28. 14:13

 Display dp = ((WindowManager)getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
 int width = dp.getWidth();   
 int height = dp.getHeight();