[Closed] App stops after Media.Save - why?

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]

Also, when I run the app it goes straight to the camera and after I click Save it then shows the message of the corona trial. I’m not sure if this helps. Is there an event or listener for when the media.save is completed that I need to call? I didn’t see this anywhere.

Thanks

Warren
[import]uid: 184193 topic_id: 32680 reply_id: 129926[/import]

Also, when I run the app it goes straight to the camera and after I click Save it then shows the message of the corona trial. I’m not sure if this helps. Is there an event or listener for when the media.save is completed that I need to call? I didn’t see this anywhere.

Thanks

Warren
[import]uid: 184193 topic_id: 32680 reply_id: 129926[/import]

Please keep each of your topics in their own threads to avoid mess in the forum.

Closed, due to dupe here: http://developer.coronalabs.com/forum/2012/11/04/why-does-image-stay-screen-after-mediasave [import]uid: 52491 topic_id: 32680 reply_id: 129943[/import]

Please keep each of your topics in their own threads to avoid mess in the forum.

Closed, due to dupe here: http://developer.coronalabs.com/forum/2012/11/04/why-does-image-stay-screen-after-mediasave [import]uid: 52491 topic_id: 32680 reply_id: 129943[/import]