Android VideoView Isn't in Portrait Mode
<p>I have an intro video that plays, with different size videos placed in the drawable-[h,m,l]dpi folders. I have it set to always play in portrait mode.</p>

<p>layout</p>

<pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent" &gt;
   &lt;VideoView android:id="@+id/myvideoview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center"
    android:orientation="vertical"/&gt;
 &lt;/RelativeLayout&gt;
</code></pre>

<p>manifest</p>

<pre><code>&lt;activity android:name=".IntroActivity"
                  android:configChanges="keyboardHidden|orientation|screenSize"
                  android:screenOrientation="portrait"
                  android:label="@string/app_name"&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;
</code></pre>

<p>However the video is played in the landscape orientation on my 4.0.4 tablet, but works on my 2.2.1 phone.</p>

<p>intro activity</p>

<pre><code>protected void onStart()
{
    try
    {   
        setContentView(R.layout.intro);
        videoHolder = (VideoView)findViewById(R.id.myvideoview);

        Uri video = Uri.parse("android.resource://" + getPackageName() + "/" + R.drawable.intro);
        videoHolder.setVideoURI(video);

        videoHolder.setOnCompletionListener(new MediaPlayer.OnCompletionListener()
        {
            public void onCompletion(MediaPlayer mp)
            {
                if (touched == false)
                {
                    startActivity(new Intent("com.eg.flupaniclite.menu"));
                }

            }
        });
        videoHolder.setOnErrorListener(new MediaPlayer.OnErrorListener()
        {
            @Override
            public boolean onError(MediaPlayer mp, int what, int extra)
            {
                if (touched == false)
                {
                    startActivity(new Intent("com.eg.flupaniclite.menu"));
                }
                return false;
            }
        });

        videoHolder.start();

    }
    catch (Exception e)
    {
        if (touched == false)
        {
            startActivity(new Intent("com.eg.flupaniclite.menu"));
        }
    }

    super.onStart();
}
</code></pre>
