Hi,
With below code I can take photo and save it into library. What I’d like to do is to have the camera behave like the native app that comes with phone. I mean I can take photo and the photo get saved into the album and I can still keep using the camera.
local function onComplete( event ) local photo = event.target if photo then photo.x = display.contentWidth/2 photo.y = display.contentHeight/2 end display.save(photo, "myphoto.png", system.TemporaryDirectory) media.save("myphoto.png", system.TemporaryDirectory) end if media.hasSource( media.Camera ) then media.capturePhoto( { listener=onComplete } ) else native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end
Could someone please share the code to do that? Thank you.
So Lin