super.onCreate(savedInstanceState); setContentView(R.layout.activity_media_player); SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surface_view); SurfaceHolder holder = surfaceView.getHolder(); // create media player object final MediaPlayer mp = new MediaPlayer(); holder.addCallback(new SurfaceHolder.Callback() { @Override public void surfaceCreated(SurfaceHolder holder) { mp.setDisplay(holder); try { mp.setDataSource(videoUri); mp.prepare(); } catch (Exception e) { } mp.start(); } // ... ommitted methods for example }); } android.media.MediaPlayer android.view.SurfaceView http://developer.android.com/reference/android/media/MediaPlayer.html http://developer.android.com/reference/android/view/SurfaceView.html