Video View does not show video in Android 4.0
<p>I tried to show a .3gp format video using Video View. It works well in Android 2.3, however, when I tested it in Android 4.0, i can only hear the audio, but the video does not appear. </p>

<p>This is my java code:</p>

<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_video_backandhips);

    showVideo();
}

private void showVideo()
{
    vd = (VideoView)findViewById(R.id.video_view);

    Uri uri = Uri.parse("android.resource://"+ getApplication().getPackageName() +"/"+R.raw.vd_backnhips);
    //Uri uri = Uri.parse("android.resource://"+ getApplication().getPackageName() +"/"+R.raw.video);

    MediaController mc = new MediaController(this);
    vd.setMediaController(mc);

    vd.setVideoURI(uri);
    vd.requestFocus();
}
</code></pre>

<p>And this is the .xml code:</p>

<pre><code>&lt;VideoView
        android:id="@+id/video_view"
        android:layout_width="320px"
        android:layout_height="240px"
        android:layout_gravity="center_horizontal"
        android:layout_margin="10dp" /&gt; 
</code></pre>

<p>Please help me. </p>

<p>Thank you.</p>
