Playing video from URL -Android
<p>In the following code what ami doing wrong the video dosnt seem to play here.Is that the permission issue if so what should be included in the manifest file
this <br>
<strong><em>main.xml</em></strong></p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:baselineAligned="true"&gt;
         &lt;LinearLayout android:layout_height="match_parent" android:layout_width="wrap_content" android:id="@+id/linearLayout2"&gt;&lt;/LinearLayout&gt;
         &lt;MediaController android:id="@+id/mediacnt" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/MediaController&gt;
         &lt;LinearLayout android:layout_height="match_parent" android:layout_width="wrap_content" android:id="@+id/linearLayout1" android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
         &lt;Gallery android:layout_height="wrap_content" android:id="@+id/gallery" android:layout_width="wrap_content" android:layout_weight="1"&gt;&lt;/Gallery&gt;
         &lt;VideoView android:layout_height="match_parent" android:id="@+id/vv" android:layout_width="wrap_content"&gt;&lt;/VideoView&gt;

     &lt;/LinearLayout&gt;
</code></pre>

<p>this is <strong><em>java class</em></strong></p>

<pre><code> package com.gallery;
     import java.net.URL;

     import android.app.Activity;

     import android.app.Activity;
     import android.net.Uri;
     import android.os.Bundle;
     import android.widget.MediaController;
     import android.widget.Toast;
     import android.widget.VideoView;

     public class GalleryActivity extends Activity {
         /** Called when the activity is first created. */
         @Override
         public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Toast.makeText(GalleryActivity.this, "Hello world", Toast.LENGTH_LONG).show();
        VideoView videoView = (VideoView) findViewById(R.id.vv);
        MediaController mediaController = new MediaController(this);
        mediaController.setAnchorView(videoView);
     // Set video link (mp4 format )
        Uri video = Uri.parse("http://www.youtube.com/watch?v=lEbxLDuecHU&amp;playnext=1&amp;list=PL040F3034C69B1674");
        videoView.setMediaController(mediaController);
        videoView.setVideoURI(video);
        videoView.start();


         }
     }
</code></pre>
