title: How to set the android:configChanges from manifest in the activity code
body: <p>For devices running &lt; 3.x SDK it's enough to add only </p>
  
  <pre><code>android:configChanges="keyboardHidden|orientation"
  </code></pre>
  
  <p>in the manifest file so that onCreate method not to be called again on screen rotation, but on those running > 3.x this is not enough and an additional flag has to be added</p>
  
  <pre><code>android:configChanges="keyboardHidden|orientation|screenSize"
  </code></pre>
  
  <p>Now my question is how can I set the screenSize in the activity's Java code?</p>