Jun 2, 2008

(Android) How to get screen size

WindowManager a = this.getWindowManager();
Display v = a.getDefaultDisplay();
String s = "Height: " + v.getHeight();
String b = "Widtht: " + v.getWidth();

No comments: