This works perfectly fine i can click image from my camera and update my image view with it but i don't know how this method is working. what things are passed to onActivityResult().
private void pickFromCamera() {
ContentValues values=new ContentValues();
values.put(MediaStore.Images.Media.TITLE,"Temp pic");
values.put(MediaStore.Images.Media.DESCRIPTION,"Temp Description");
image_uri=getActivity().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,values);
Intent cameraIntent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);// intent to open camera
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,image_uri);//putting image uri into this
startActivityForResult(cameraIntent,IMAGE_PICK_CAMERA_CODE);
}