VideoView Activity Malfunctions when Intent is called from current Activity's View
<p>I have my main Activity, it starts with a custom SurfaceView called DrawView being set by setContentView.  The Main Activity (Draw) has the following method within it</p>

<pre><code>public void launchCutScene(int scene) {     
    Intent intent = new Intent(Draw.this, CutScene.class);
    startActivityForResult(intent, 0);  
}
</code></pre>

<p>if I call this method directly after setContentView the new Activity CutScene loads properly.  CutScene is as follows</p>

<pre><code>public class CutScene extends Activity implements OnCompletionListener, OnPreparedListener{
String pathToFile = "";
VideoView videoPlayer;

@Override
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        pathToFile = "EM Math/" + "st.mp4";

        setContentView(R.layout.main);   
        File root = Environment.getExternalStorageDirectory();
        videoPlayer = (VideoView) findViewById(R.id.myvideoview);  
        videoPlayer.setOnPreparedListener(this);
        videoPlayer.setOnCompletionListener(this);
        videoPlayer.setKeepScreenOn(true);    
        videoPlayer.setVideoPath(root + "/" + pathToFile);  
    }

    @Override
    protected void onDestroy() {
    super.onDestroy();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    public void onPrepared(MediaPlayer vp) {             
       videoPlayer.start();
    }

    @Override
    public void onCompletion(MediaPlayer  mp) {
       finish();
    }

    @Override
    public boolean onTouchEvent (MotionEvent ev){   
       if(ev.getAction() == MotionEvent.ACTION_DOWN){
          if(videoPlayer.isPlaying()){
            videoPlayer.pause();
          } else {
                   videoPlayer.start();
          }
          return true;      
       } else {
          return false;
       }
    }
}
</code></pre>

<p>However, if within DrawView I call draw.launchCutScene(0) then the activity still comes up, but the video glitches, it either stays as a black screen and you have to press back to make the activity crash, in which case it will bring up the first activity.  Or it will play the sound only but multiple times and un-synced.  Either way after it crashes if a launchCutScene call is done again within the DrawView class the video now works fine.  </p>

<p>Why is this happening? does anybody understand what I need to do?</p>
