title: Video does not play in Kindle fire. application crashing android
body: <p>In my app i m loading some video mp4 files and it plays on tablet and other android devices but when i try to play the same video on kindle fire the application crashes. Any suggestions please. Please look into my code</p>
  
  <pre><code>public class VideoPlayer extends Activity {
  
  private VideoView vidPlayer;
  private ImageView ivPlayerBG;
  private MediaController mc;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.videoplayer);
      Utils.setOrientation(this);
      vidPlayer = (VideoView) findViewById(R.id.vidPlayer);
      ivPlayerBG = (ImageView) findViewById(R.id.ivPlayerBG);
      mc = new MediaController(this);
      vidPlayer.setMediaController(mc);
      vidPlayer.setFocusable(true);
      mc.show(0);
      //onControllerHide();
  
      AudioManager audioMan = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
  
      if (audioMan.getStreamVolume(AudioManager.STREAM_MUSIC) &lt;= 0) {
          Toast.makeText(this, "volume is set to mute", Toast.LENGTH_LONG)
                  .show();
      }
  
      Log.v("totla memory play", "" + Runtime.getRuntime().totalMemory());
      Log.v("HEAP_SIZE ", "" + Debug.getNativeHeapAllocatedSize());
  
      Boolean isAudio = getIntent().getExtras().getBoolean("audio");
      if (null != isAudio &amp;&amp; isAudio) {
          ivPlayerBG.setBackgroundResource(R.drawable.ic_launcher);
      }
  
      Uri videoUrl = Uri.parse(Utils.getSDCardPath(getIntent().getExtras()
              .getString("url"))); // Uri.parse(Utils.getSDCardPath("Media/video.mp4"));
      Log.v("log" + videoUrl.getPath(), "logv");
      playVideo(videoUrl);
  
  }
  
  public void onControllerHide() {
      mc.hide();
  }
  
  public void playVideo(Uri videouri) {
      try {
          vidPlayer.setVideoURI(videouri);
          vidPlayer.requestFocus();
          vidPlayer.start();
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  @Override
  protected void onDestroy() {
      super.onDestroy();
  
  }
  </code></pre>
  
  <p>}</p>