title: content view width and height
body: <p>I am using below steps to know the width and height of contentview on my display screen</p>
  
  <pre><code>ContentViewWidth = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getWidth();
  ContentViewHeight = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHeight();
  </code></pre>
  
  <p>but this method doesn't work inside onCreate or onResume and if I am using these steps inside onWindowFocusChanged I get force close error on my phone</p>
  
  <p>Please help me how can I get the content view of my display screen. Content view is excluding statusbar and titlebar dimensions</p>