I am trying to play a video using Android video capture. 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 great, but some phones still display a dialog box that says "Unable to 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 the system from popping up a window?
I would just like to skip the video if it is not supported by the phone, without a notification window.
Tamas source
share