title: Display metrics minus status bar?
body: <p>I need to get the dimensions of the display rectangle that the application can use on the device. For that I tried using:</p>
  
  <pre><code>Display display = getWindowManager().getDefaultDisplay();
  int width = display.getWidth();
  int height = display.getHeight();
  </code></pre>
  
  <p>My problem is that it gives me the height of the whole display and the display has a "status / notification" bar on top that the application can't use.</p>
  
  <p>I need the acual dimension that the application can use.</p>
  
  <p>To help you understand the question better I'll leave an image:</p>
  
  <p><img src="https://i.stack.imgur.com/V7eks.jpg" alt="enter image description here"></p>