Android - DisplayMetrics Resolution issue when using HDMI
<p>I have a GoogleTV device from Sony which is connected to a Full-HD TV (1920x1080) using HDMI. I use the following code to calculate the target display dimensions of the TV.</p>

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

<p>which works fine and I get 1920 and 1080 px respectively.</p>

<p>Now for the issue. When the I connect the GoogleTV box to a different TV with different dimensions, it still shows 1920x1080 whereas the resolution is much different.</p>

<p>Is there something I need to extra for getting the new resolution ?</p>

<p>Thanks in advance</p>
