Android: setRequestedOrientation doesn't lock the orientation
<p>I am trying to lock an activity to landscape mode and have an overlying activity receive and use the orientation changes. The top activity is partly transparent so it is important that the bottom activity locks and is displayed correctly. I have tried to set it programatically with <code>setRequestedOrientation()</code> and in the <code>AndroidManifest.xml</code> with <code>android:screenOrientation="landscape"</code></p>

<p>When I lock the orientation using the manifest the top activity also locks. When I add <code>android:configChanges="orientation|screenSize|keyboardHidden"</code> the top activity changes orientation but so does the bottom activity. Sometimes the bottom activity goes completely blank (transparent) after the orientation changes.</p>

<p>This is in my <code>AndroidManifest.xml</code>:</p>

<pre><code>&lt;application
    android:debuggable="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" &gt;
    &lt;activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme"
        android:screenOrientation="landscape"
        android:configChanges="orientation|screenSize|keyboardHidden"
        android:label="@string/title_activity_main" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;

    &lt;activity
        android:name=".TopActivity"
        android:screenOrientation="sensor"
        android:configChanges="orientation|screenSize|keyboardHidden"
        android:theme="@style/Theme.Transparent"&gt;
    &lt;/activity&gt;
&lt;/application&gt;
</code></pre>

<p><code>MainActivity</code> is the bottom activity. How do I properly handle the orientation changes so that the single activities are locked the way I set them to?</p>
