Problems with saving the image on Samsung SII

Hi,

I am trying to take a photo, save it and then display it in a slideshow. Everything works perfectly in the simulator but not on the device itself… I have narrowed down the problem to this line;

local filePath = { baseDir = storyboard.imagedirectory, filename = filename}  
media.show( media.Camera, cameraSessionComplete, filePath )  

When I pass the filepath over then it appears that there is no event passed to ‘cameraSessionComplete’, if I delete this (i.e. media.show( media.Camera, cameraSessionComplete ) ) it appears to work correctly, but then I would have to capture the screen and I would prefer to work at the full resolution if possible.

I tested if it being passed over as follows;

 local cameraSessionComplete = function(event)   
 local image = event.target  
 words.text = "Camera Session"  
 if image then   
 words.text = "Image in memory" --Updates the display  

I could post the full code here but it is rather large, I guess I first want to know if this is a common issue or if I am making a simple mistake.

Thanks heaps,

Craig [import]uid: 184705 topic_id: 34245 reply_id: 334245[/import]

Figured it out (was driving me crazy), apparently no ‘event.target’ is passed over with the filepath. I just have to find another way of detecting if the camera was cancelled (otherwise I am adding a dud entry to my table).

Cheers [import]uid: 184705 topic_id: 34245 reply_id: 136167[/import]

Figured it out (was driving me crazy), apparently no ‘event.target’ is passed over with the filepath. I just have to find another way of detecting if the camera was cancelled (otherwise I am adding a dud entry to my table).

Cheers [import]uid: 184705 topic_id: 34245 reply_id: 136167[/import]