Hi,
media.capturePhoto() creates two image copies on my android device.
It creates one copy in my “Camera shots” directory,
and after I restart the device, it shows another copy in “Pictures” directory in my gallery.
Code:
local function onComplete( event ) local photo = event.target print( "photo w,h = " .. photo.width .. "," .. photo.height ) end if media.hasSource( media.Camera ) then media.capturePhoto( { listener=onComplete } ) else native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end
Does anyone have any ideas why is this happening?
Mladen