title: (VideoView) findViewById(R.id.videoview1) NullPointerException
body: <p>I´m trying to show a video in a dialog but the VideoView can´t be found, although the id is correct. I get a NullPointerException in this line:</p>
  
  <pre><code>VideoView vv = (VideoView) findViewById(R.id.videoview1);
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>                Dialog dialog2 = new Dialog(getContext(),
                      android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
              dialog2.setContentView(R.layout.video);
  
              VideoView vv = (VideoView) findViewById(R.id.videoview1);
              String uri = "android.resource://" + theGameActivity.getPackageName() +"/"+R.raw.video6;
  dialog2.show();
              vv.start();
  </code></pre>