How can I send a video url to be played in Media Player?
I have this code but does not work:
protected void loadDolphin(Channel channel) {
Intent viewMediaIntent = new Intent();
viewMediaIntent.setAction(android.content.Intent.ACTION_VIEW);
viewMediaIntent.setDataAndType(Uri.parse(channel.getUrl()), "video/*");
viewMediaIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
viewMediaIntent.setPackage("com.broov.player");
startActivityForResult(viewMediaIntent, 0);
}
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en