title: onConfigurationChanged is not getting called any time in android
body: <p>I have create sample program to test Orientation. If portrait mode and I tilt the phone the other way round I want my sample app to reversePortrait. After reading lot of questions on this - Figured we need to need use:</p>
  
  <pre><code>   onConfigurationChanged(Configuration newConfig) 
  </code></pre>
  
  <p>I was trying out the following:</p>
  
  <pre><code>    @Override
  public void onConfigurationChanged(Configuration newConfig) 
  {
      super.onConfigurationChanged(newConfig);
  
      Configuration c = getResources().getConfiguration();
  
      Log.e("Config",""+c);
  
      if (c.orientation == Configuration.ORIENTATION_PORTRAIT) 
      {
          // portrait
  
          Log.e("On Config Change","portrait");
  
      } 
      else if (c.orientation == Configuration.ORIENTATION_LANDSCAPE) 
      {
          // landscape
          Log.e("On Config Change","LANDSCAPE");
  
      }
  }
  </code></pre>
  
  <p>manifest.xml</p>
  
  <pre><code>android:configChanges="orientation" 
  </code></pre>
  
  <p>tried even this </p>
  
  <pre><code>android:configChanges="orientation|screensize"
  </code></pre>
  
  <p>Strange I am not getting logs inside OnConfigurationChange method. </p>
  
  <p>Not sure. What is the problem here? </p>
  
  <p>I am using minimum api 8 to target Api 18.</p>
  
  <p>Can somebody help me out with this?</p>
  
  <p>Thanks!</p>