Android YouTube app Play Video Intent


I have created a app where you can download YouTube videos for android. Now, I want it so that if you play a video in the YouTube native app you can download it too. To do this, I need to know the Intent that the YouTube native app puts out in order to play the YouTube app.
I could do this easially if I had the YouTube program on my emulator, so my 1st question is:
1. Can I download the YouTube app for my emulator, or...
2. What is the intent used when the user selects a video for playback.

9/29/2010 1:26:13 PM

And how about this:

public static void watchYoutubeVideo(Context context, String id){
    Intent appIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("" + id));
    Intent webIntent = new Intent(Intent.ACTION_VIEW,
                Uri.parse("" + id));
    try {
    } catch (ActivityNotFoundException ex) {
9/29/2017 11:34:21 PM

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