Yup, have tried the following and getting the same result (the base is taken from http://coronalabs.com/blog/2013/11/01/snapshot-canvas-paint-brushes-trailing-object-effects-etc/)
local w = display.viewableContentWidth
local h = display.viewableContentHeight
local snapshot = display.newSnapshot( w,h )
snapshot:translate( w * 0.5, h * 0.5 )
snapshot.canvasMode = "discard"
function listener( event )
local x,y = event.x - snapshot.x, event.y - snapshot.y
if ( event.phase == "began" or event.phase == "moved" ) then
local r = display.newRect( 0, 0, w, h )
r:setFillColor( .05, .05, .05, .05 )
local o = display.newImage( "brush.png", x, y )
o:setFillColor( 1 )
o.alpha = .3
snapshot.canvas:insert( r )
snapshot.canvas:insert( o )
snapshot:invalidate( "canvas" )
end
end
Runtime:addEventListener( "touch", listener )
local function onSystemEvent( event )
if(event.type=="applicationSuspend") then
display.save(snapshot,"temp.png",system.TemporaryDirectory)
elseif(event.type=="applicationResume") then
print("resume code here - THIS IS WHERE THE BLANK SCREEN HAPPENS, or maybe even on suspend")
end
end
Runtime:addEventListener( "system", onSystemEvent )