title: Start new activity on orientation change
body: <p>I want to load a new activity when the orientation changes from potrait to landscape for which I am using:</p>
  
  <pre><code>@Override
  public  void onConfigurationChanged(Configuration newConfig)
  {
      super.onConfigurationChanged(newConfig);
      if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE)
      {
          startActivity(new Intent(this, ABCDActivity.class));
      }
  
      if(newConfig.orientation == Configuration.ORIENTATION_PORTRAIT)
      {
          super.onConfigurationChanged(newConfig);
          finish();
      }
  }
  </code></pre>
  
  <p>But it doesn't change my activity with the change in orientation. Have I missed something?</p>