I know there are many threads in relation to this topic as to how to customize the size of the window/frame of the camera (Is aspect ratio the correct term?) that shows preview of the image/environment before committing it (or clicking it) as an image.
I have tried this, this, this,this & especially another one from user Carlos, link for which I am unable to retrieve.
Thing is i just know the following lines of codes:
 camera.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent cam = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(cam, CAMERA_REQUEST);
        }
    });
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == CAMERA_REQUEST) {
        Bitmap photo = (Bitmap) data.getExtras().get("data");
        thumbView.setImageBitmap(photo);
         }
    }
That's it. I have tried typing from above links inside onCreate() but I have no clue. 
Please guide from basics as to what will help me achieve a camera screen with a contracted square frame?
 
     
    