I am capturing a image using the below code.

```
Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

camera.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(imgFile));

startActivityForResult(camera, CAMERA_PIC_REQUEST );

```

and inside onActivityResult if the resultCode is RESULT\_OK then iam starting a Service in-order to upload the captured image to Webservice. I am able to call the Webservice successfully. But the problem is that the application is getting hanged i mean, the Activity is getting hanged. I am unable to do any actions in the Activity.

Thanks in advance.