title: how to play youtube video in android?
body: <p>I'm using the following class to play YouTube video:<br>
  <a href="http://keyeslabs.com/joomla/samplecode/introvideoactivity/IntroVideoActivity.java" rel="nofollow">http://keyeslabs.com/joomla/samplecode/introvideoactivity/IntroVideoActivity.java</a></p>
  
  <pre><code>main Activity contain code:
  Intent lVideoIntent = new Intent(null, Uri.parse("ytv:jRB8dQ5kiLg"), youtube1.this, IntroVideoActivity.class);
  startActivity(lVideoIntent);
  </code></pre>
  
  <p>It loads the video, but after some time gives an error "Sorry,this video can't be played"</p>
  
  <p>and in log gives an error like below.</p>
  
  <pre><code>-&gt; http://www.youtube.com/get_video?video_id=jRB8dQ5kiLg&amp;t=vjVQa1PpcFPMdWwPOC2JchyOxvrnNsRs1UyVc7gGd5I%3D&amp;fmt=18
  -&gt; ERROR/HTTPDataSource(34): HTTP request failed w/ http status 404
  -&gt; INFO/AwesomePlayer(34): mConnectingDataSource-&gt;connect() returned -1004
  -&gt; ERROR/MediaPlayer(541): error (1, -1004)
  </code></pre>
  
  <p>I don't understand where what my mistake is. Can any one help me?</p>