I have a Windows Phone 8 App, which is Live on Windows Store. Now, recently I got a complaint from one of my Client that they are not able to capture Photo, only selection of Photo works from Gallery. This issue is appearing when they updated their device to Windows 10. I am using following code
private void CapturePhoto()
{
CameraCaptureTask cameraCapture = new CameraCaptureTask();
cameraCapture.Completed += (sender, args) =>
{
//checking if everything went fine when capturing a photo
if (args.TaskResult != TaskResult.OK)
return;
args.ChosenPhoto.Position = 0;
string evidenceName = Path.Combine(Constants.IMAGES_FOLDER_PATH, "evidence_" + MCSExtensions.GetDateTimestamp() + ".jpeg");
saveAndDisplayEvidence(args.ChosenPhoto, evidenceName);
};
cameraCapture.Show();
}
I am already developing Windows 10 App as an update but till I update the app. I need to solve this issue so they can use it for capturing images.
Can someone suggest, how to solve this issue?