ET1 - How to scan barcode and capture photo in same Activity?

Hi,

 

I want to use both photo capture and barcode scanning in a same activity, currently if i scan barcode then scanner is not releasing the camera, so i could't able to open the camera to capture the photo.

 

My app uses scanner key to trigger scanning.

 

Please share your inputs.

 

Thanks.