title: getWindowVisibleDisplayFrame() gives different values in Android 2.2, 2.3 (but not 2.3.3)
body: <p>I've got an <code>Activity</code> which uses </p>
  
  <pre><code>getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);
  </code></pre>
  
  <p>to determine the useable screen space and decide where to place images.</p>
  
  <p>Returning to the Activity after I click the hardware "back" button to leave the <code>Activity</code>, the rectangle values are</p>
  
  <pre><code>(0,0,800,480)
  </code></pre>
  
  <p>However, returning to the Activity after I click the hardware "home" button to leave the <code>Activity</code>, the rectangle values are</p>
  
  <pre><code>(0,38,800,480)
  </code></pre>
  
  <p>which throws off the display and the image placement.</p>
  
  <p>How can I ensure I get a consistent values when calling</p>
  
  <pre><code>getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);
  </code></pre>
  
  <p>no matter how I left the app?</p>
  
  <p>UPDATE: Thanks to @Reno for helping test; it seems to be dependent on Android version than the device.</p>