how to write a simple video player on android?
<p>I have code for simple audio player on android. But it is not working for videos. Please guide me to write a simple video player.
The code of audio player is </p>

<pre><code>package com.example.helloplayer;

public class HelloPlayer extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        MediaPlayer mp = MediaPlayer.create(this, R.raw.file); 
        mp.start();
   }
}
</code></pre>
