title: How to check if file is supported by android videoview by code?
body: <p>I am trying to play video by Android videoview. Here is my code:</p>
  
  <pre><code>super.onCreate(savedInstanceState);
  setContentView(R.layout.video);
  VideoView videoView = (VideoView) findViewById(R.id.videoView);
  videoView.setVideoURI(uri);
  videoView.requestFocus();
  videoView.start();
  </code></pre>
  
  <p>This works fine, however some phones still show dialog box with title "Cannot play video".</p>
  
  <p>My question is how to disable this notification window? 
  I mean, can I check if the video file is supported or not before calling videoView.start()? Or can I disable or prevent calling the system popup notification window? </p>
  
  <p>I would like to simply skip the video if not supported by the phone, without the notification window.</p>