VideoView in CustomDialog Android
<p>I want to play a video in Custom Dialog using VideView, but in the dialog I only get the Title but neither the VideoView nor the button.Please help and is there a better way I can display the video over my Activity than the custom dialog??</p>

<pre><code>final Dialog dialog = new Dialog(getActivity());
                    dialog.setContentView(R.layout.introvid);
                    dialog.setTitle("Title...");

                    // set the custom dialog components - text, image and button

                    final VideoView viz = (VideoView) dialog.findViewById(R.id.vid123);
                    Uri vidUri = Uri.parse(feedob);
                    vid.setVideoURI(vidUri);
                    vid.start();

                    Button dialogButton = (Button) dialog.findViewById(R.id.dialogButtonOK);
                    // if button is clicked, close the custom dialog
                    dialogButton.setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View v) {
                            dialog.dismiss();
                        }
                    });

                    dialog.show();
</code></pre>

<p>Layout of the custom dialog</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent" &gt;

&lt;VideoView
    android:id="@+id/vid123"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    /&gt;


    &lt;Button
        android:id="@+id/dialogButtonOK"
        android:layout_width="100px"
        android:layout_height="wrap_content"
        android:text="Back "
        android:layout_marginTop="5dp"
        android:layout_marginRight="5dp"
        android:layout_below="@+id/vid123"
        /&gt;

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