I need to play a Youtube video in an Android app. I can play Youtube video using the following code:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));
This leaves my application and launches a youtube mobile where I can not control.
How can I play Youtube videos in my activity? Some blogs have suggested using HTML5 video to achieve this.
source share