title: Android views and custom orientation change, what's the best way to handle?
body: <p>I've an android app that has multiple views. I've disabled the automatic orientation switching by declaring <code>android:configChanges="keyboardHidden|orientation|screenSize"</code> for my activity.</p>
  
  <p>Q1) How I should re-activate views in <code>onConfigurationChanged()</code>? It seems I need to reset the content view using <code>setContentView</code> method. Is there an alternative way to signal view that now you should inflate the landscape/portrait version of the layout? Some of my views contain quite complicated <code>states/modeless</code> dialogs etc that can appear any time so deleting the view object and re-instantiating it just doesn't sound right.</p>
  
  <p>Q2) What's the best way in <code>onConfigurationChanged()</code> to know which view we should actually now activate i.e. what was focused when orientation change was initiated? I'm reluctant to rely on <code>getCurrentFocus()</code> as it can be null sometimes.</p>