Home  >  Forum  >  Android
Post New Query

Android get screen width and height programmatically


joined on
August 11,2014
Asked on September 15,2015
In my android application I need to get device screen width and height programmatically.
Any Help?
joined on
October 10,2013
Replied on September 15,2015

Display display = activity.getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int screenWidth = size.x;
int screenHeight = size.y;


Here we get result in pixel.

joined on
August 11,2014
Replied on September 15,2015

Thanks.

Write Answer



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us