I am using the following code to use camera by using intent. In the parameter of intent I am passing android.provider.MediaStore.ACTION_IMAGE_CAPTURE. It is able to
android.provider.MediaStore.ACTION_IMAGE_CAPTURE
Try request code 1337.
startActivityForResult(cameraIntent , 1337);