I am trying to play video by Android videoview. Here is my code:
super.onCreate(savedInstanceState);
setContentView(R.layout.video);
VideoView videoView = (VideoView) findViewById(R.id.videoView);
videoView.setVideoURI(uri);
videoView.requestFocus();
videoView.start();
This works fine, however some phones still show dialog box with title "Cannot play video".
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?
I would like to simply skip the video if not supported by the phone, without the notification window.