Sample: Camera app - photo doesn't show

Hello,
I have to update my app where I am using a camera. After take a photo, photo doesn’t show up on the app.
When I am trying a Sample app from Corona Simulator (‘Camera’) is the same.
Did You have the same problem?

Phone: Galaxy S9+ (on Xiaomi Mi Mix 2 is the same)
Android version: 10
Solar2d version: 2020.3610 (in 3609 is the same)

From logcat:

Blockquote
08-17 21:06:05.064 8651 12119 V Corona : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
08-17 21:06:05.065 8651 12119 V Corona : > Class.forName: plugin.liveBuild.LuaLoader
08-17 21:06:05.065 8651 12119 V Corona : < Class.forName: plugin.liveBuild.LuaLoader
08-17 21:06:05.065 8651 12119 V Corona : Loading via reflection: plugin.liveBuild.LuaLoader
08-17 21:06:08.255 8651 12119 I Corona : Calling media.capturePhoto() from tap listener!
08-17 21:06:20.730 8651 12119 I Corona : media.capturePhoto() returned an image!
08-17 21:06:20.731 8651 12119 I Corona : event.target: { “path”: { “x1”: 0, “y1”: 0, “x2”: 0, “y2”: 0, “x3”: 0, “y3”: 0, “x4”: 0, “y4”: 0, “width”: 0, “height”: 0 }, “fill”: { “x”: 0, “y”: 0, “scaleX”: 1, “scaleY”: 1, “rotation”: 0 }, “stroke”: “nil”, “blendMode”: “normal”, “strokeWidth”: 0, “innerstrokeWidth”: 0, “xScale”: 1, “yScale”: 1, “rotation”: 0, “width”: 0, “height”: 0, “isVisible”: “true”, “isHitTestable”: “false”, “alpha”: 1, “x”: 0, “y”: 0, “anchorX”: 0.5, “anchorY”: 0.5, “contentBounds”: { “xMin”: -0, “xMax”: 0, “yMax”: 0, “yMin”: -0 }, “contentWidth”: 0, “contentHeight”: 0, “maskX”: 0, “maskY”: 0, “maskScaleX”: 0, “maskScaleY”: 0, “maskRotation”: 0, “isHitTestMasked”: “false” }
08-17 21:06:20.731 8651 12119 I Corona : Image resolution: 0x0

Blockquote

On build 3610

I just tested it on Android 10, and it doesn’t capture the image. The response I get is similar to yours. The ‘event.completed’ returns false. I even tried saving it to a file. It works on Android 6 though.

I remember my app that uses media.capture works on the older builds, like 35xx

Maybe you can report an issue in github.

media.capturePhoto( { listener = sessionComplete, destination = { baseDir= system.TemporaryDirectory, filename='123.jpg' } } )

I can’t help with fixing media.capturePhoto I’m afraid, but if this is for Android only, https://www.solar2dplugins.com/plugins/android-custom-camera-preview should still be a working option.