may help you . I was able to do the same with a little different approach and it worked like a charm. The overlayed image is only for reference. This activity returns the path of the clicked photo without the overlayed image. Front and back camera both working in this activity.