This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to play the video using the default video player in android?  RSS feed

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing one problem to play the video file which i am getting from the web url.When I trying to read the file from my emulator sd card which is playing without any fail.But when i trying to play the same video which i am getting from the response i am getting the following error.
"android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= typ=video/m4a }"

For this i am using the following code.
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);

Uri data = Uri.parse("");
intent.setDataAndType(data, "video/m4a");

Can any one explain where is i am doing wrong.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!