title: Android: int h=getWindowManager().getDefaultDisplay().getHeight() return wrong value on my acer tablet
body: <p>I'm trying to make a app that allows you to drag shapes around.  It works fine on smart phones, but not on my Acer a500 tablet</p>
  
  <p>When I get the height by calling   </p>
  
  <pre><code>ih=getWindowManager().getDefaultDisplay().getHeight()-25;
  </code></pre>
  
  <p>I get a value thats only 1/3 of what it should be, thus I can only drag the sahpes 1/3 the way down.  If the tablet is horizonatl it goes 1/2 way down.</p>
  
  <p>Why is this methed returning the wrong values for the height on my tablet??</p>
  
  <pre><code>public class cPlay extends  cBase  implements OnClickListener {
  /** Called when the activity is first created. */
     @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
    //      setContentView(R.layout.play);
  
  
          int w=getWindowManager().getDefaultDisplay().getWidth()-25;
          int h=getWindowManager().getDefaultDisplay().getHeight()-25;
  
          BallView ballView=new BallView(this,w,h);
          setContentView(ballView);
     } // end function
  
     public void onClick(View v) {
         finish();
  
         } // end function
  
  } // end class
  </code></pre>