title: Getting the height of STATUS BAR
body: <p>I'm tring to write a <code>private</code> to get the <code>status bar's</code> height.<br /></p>
  
  <pre><code>private int statusBar() {
      Rect rect = new Rect();
      int statusBar = rect.top;
      return statusBar;
  }
  </code></pre>
  
  <p>Everything is good till now. but when I do:</p>
  
  <pre><code>Toast.makeText(getApplicationContext(), "" + statusBar(), Toast.LENGTH_LONG).show();
  </code></pre>
  
  <p>It returns 0.</p>