Reputation: 1668
I use the following code to play mp4 video:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse(url, "video/mp4");
ctx.startActivity(i);
It works fine on phones & tablets, as well as Google TV emulator, but throws ActivityNotFoundException on Google TV device.
Any thoughts?
Upvotes: 0
Views: 695
Reputation: 161
When I tried to play an MP4 video using the above code snippet ,I am getting "No application can handle this action" message. Looks like there is no default application which can play the video. ActivityNotFoundException occur normally when you give the wrong media type.
Upvotes: 1