Get screen resolution of device

Try this,

 Display mDisplay =(Context).getWindowManager().getDefaultDisplay();

       mDisplay.getWidth();
       mDisplay.getHeight();