I have managed to get it working.
public void onCreate(Bundle bundle)
{
super.onCreate(bundle);
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
_surface = (SurfaceView)inflater.inflate(R.layout.video_layout, null);
SurfaceHolder holder = _surface.getHolder();
holder.addCallback(this);
addContentView(_surface, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
}