uno icon indicating copy to clipboard operation
uno copied to clipboard

CameraCaptureUI doesn't work in unoapp-uwp-net6 project

Open ttustonic opened this issue 2 years ago • 2 comments

Current behavior

I created two test projects using 'unoapp-uwp' and 'unoapp-uwp-net6' template and copied AndroidManifest.xml and MainPage from the CameraCaptureUISample. Unoapp-uwp project works fine, the same as the sample Unoapp-uwp-net6 Android doesn't work. It throws This operation is not supported for a relative URI. exception on the line var photo = await captureUI.CaptureFileAsync(CameraCaptureUIMode.Photo); Is there something else, except Android manifest, that needs to be changed to make it work?

Thanks, Tom

UwpNet6TestCapturre.zip

Expected behavior

It should capture image on Android, the same as in CameraCaptureUISample, and Uwp version.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

No response

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

ttustonic avatar Jul 30 '22 11:07 ttustonic

Thanks for the report. Could you provide the full stack trace of the exception to help troubleshoot faster?

jeromelaban avatar Aug 01 '22 20:08 jeromelaban

Hello

Here it is.

stacktrace.txt

ttustonic avatar Aug 02 '22 00:08 ttustonic