Sunday, June 9, 2013

Getting Device width / height in android

 Display dispDefault = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
int     totalwidth = dispDefault.getWidth();
int      totalheight = dispDefault.getHeight();

No comments :

Post a Comment