onConfigurationChanged not called once setRequestedConfiguration has been used
<p>I have set am activity to handle configuration changes and it works, meaning that <code>onConfigurationChanged()</code> is called when the orientation changes.</p>

<p>The activity has a button to explicitly change the orientation. When clicked, it called  <code>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT)</code>.</p>

<p>Then the orientation is irrevocably set and <code>onConfigurationChanged()</code> is not called anymore.</p>

<p>How can I change the orientation when the user clicks the button while not loosing the <code>onConfigurationChanged()</code> callback ?</p>
