Friday, June 25, 2010

getting android screen size

8:16 PM by biplob · 0 comments

you can obtain screen width and height with this:

Display display;
display = ((WindowManager) context                .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();

 int   x = display.getWidth() ;
 int  y = display.getHeight();


Advertisement

comments

0 Responses to "getting android screen size"

Post a Comment