title: error overriding OnMeasure method
body: <p>hi I'm working in my android app which plays videos and now I want to control my video to play in full screen I have a code but it contains errors it says that void is not valid type for variable onmeasure I dont know how to correct that  </p>
  
  <pre><code>public class video extends Activity {
  
  
  String SrcPath =  "rtsp://v8.cache3.c.youtube.com/CjYLENy73wIaLQltaP8vg4qMsBMYDSANFEIJbXYtZ29vZ2xlSARSBXdhdGNoYOL6qv2DoMPrUAw=/0/0/0/video.3gp";
  
  /** Called when the activity is first created. */
  
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.video1);
  
  
  protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec){
     int parentWidth = MeasureSpec.getSize(widthMeasureSpec);
     int parentHeight = MeasureSpec.getSize(heightMeasureSpec);
     this.setMeasuredDimension(parentWidth/2, parentHeight);
     this.setLayoutParams(new *ParentLayoutType*.LayoutParams(parentWidth/2,parentHeight));
     super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  }
  
  
  VideoView myVideoView = (VideoView)findViewById(R.id.vview);
  myVideoView.setVideoURI(Uri.parse(SrcPath));
  myVideoView.setMediaController(new MediaController(this));
  myVideoView.requestFocus();
  
  }
   }
  </code></pre>
  
  <p>thanks </p>