Wrote the functuality in CameraActivity and CapturePictureHandler in extra methods refs #2499