Playing youtube video in Android app
===

In my Android app I'd like the user to tap an image once, have a youtube video play automatically and when the video is done the user is immediately returned to the app. **What's the best way to do this in Android?**

I tried using intents. This works in that the video comes up on what I think is a youtube web page. However playing the video requires another tap. I'd like to avoid this if possible.

I tried the whole MediaPlayer, prepareAsync, setOnPreparedListener and never got it to work. For some reason onPrepared was never called. No exceptions were thrown. I'm using the emulator to test and I'm new to Android so I'm not sure if the behavior will be different on physical devices.

I got this working well on iOS by getting creative with webviews. I'm hoping it's more straightforward on Android. The [docs][1] sure make it sound straight forward.

Cheers!


  [1]: http://developer.android.com/guide/topics/media/mediaplayer.html