How can I get the actual screen height?
<p>I'm trying to get the screen height, which is the</p>

<pre><code>    DeviceScreenHeight - NavigationBarHeight - TitleBarHeight
</code></pre>

<p>The code below always give me a 752, but the real screen height is 800.</p>

<pre><code>    DisplayMetrics metrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(metrics);
    mHeight = metrics.heightPixels;
</code></pre>

<p>And if I use onLayoutChange() to get the height of a vertically "match_parent" view, the height is 696. This is the value I need.</p>

<p>But I want to know how to get this value dynamically so I can get the proper "height" on different devices.</p>
