How to play YouTube video in my Android application?


How do I play YouTube videos in my application? I want to play video by streaming it directly from YouTube without downloading. Also, while playing videos, I want provide menu options. I don't want to play video using default intent. How can I do this?

2/13/2016 8:03:49 PM

This is the btn click event

btnvideo.setOnClickListener(new OnClickListener() {

public void onClick(View v) {

    startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("")));
    Log.i("Video", "Video Playing....");


this type it opened in another page with the youtube where u can show your video

4/11/2013 5:22:24 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow