title: Cannot play mpg file in android
body: <p>I want to play .mpg file from MediaPlayer in android. But I am not able to play. This is my code.</p>
  
  <pre><code>    File file =  new File("abc.mpg");
      MediaPlayer mp = MediaPlayer.create(MainActivity.this, Uri.fromFile(file.getAbsoluteFile()));
      mp.seekTo(0);
      mp.start();
  </code></pre>
  
  <p>I get null pointer error on <code>mp.seekTo(0)</code> function.</p>