forcing landscape mode on a tablet
<p>I have an activity which must always be launched in landscape mode. In my <code>onCreate()</code> method, I use the dimensions of the screen (width and height) to set up the interface, so it is important that the activity is not initially created with the wrong orientation.</p>

<p>To do this, I have the following in the manifest:</p>

<pre><code>&lt;activity android:name="app.myapp.WideActivity"
     android:screenOrientation="landscape"
     android:configChanges="keyboardHidden|orientation"
     android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"/&gt;            
</code></pre>

<p>This seems to work completely fine on my phone, but on my tablet (samsung galaxy tab, android 3.1) the activity is launched in portrait mode and switches orientation almost immediately (after the <code>onCreate()</code> method - it seems). On my phone (android 2.3) the screen is already landscape before the onCreate() method is called.</p>

<p>Putting <code>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
</code> in the onCreate() method does't seem to help. How can I achieve what I'm trying to do?</p>
