The following app stops at a black screen after the media.save call. The message does not show that is after the save line. Why is this? How can I continue the app??
MAIN:
[code]
local onComplete = function(event)
local photo = event.target
photo.isVisible = false
media.save(“picture1.jpg”)
native.showAlert( “Corona”, “Show this message next.”, { “OK” } )
end
if media.hasSource( media.Camera ) then
media.show( media.Camera, onComplete )
else
native.showAlert( “Corona”, “This device does not have a camera.”, { “OK” } )
end
BUILD:
-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings = {
orientation = {
default = "portrait",
supported = { "portrait", }
},
iphone = {
plist = {
UIStatusBarHidden = false,
UIPrerenderedIcon = true, -- set to false for "shine" overlay
--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
--[[
-- iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
"fbXXXXXXXXXXXXXX", -- example scheme for facebook
"coronasdkapp", -- example second scheme
}
}
}
--]]
}
},
androidPermissions = {
"android.permission.INTERNET",
"android.permission.CAMERA",
"android.permission.WRITE\_EXTERNAL\_STORAGE",
},
}
[import]uid: 184193 topic_id: 32680 reply_id: 332680[/import]