I'm having an isssue where my app won't properly return from the background. Some sprites go missing and the view screen becomes offset. I found an example of this where the screen will sometimes go black when resumed.
I'm seen the problem on the samsung s5 and s6.
Here is the example code:
SetDisplayAspect(768/1024.0)
LoadImage(1,"test.jpeg")
CreateSprite(1,1)
SetSpriteSize(1,100,-1)
lastzoom# = 1
zoom# = 1
do
touches = GetRawTouchCount(1)
select touches
case 0:
lastzoom# = zoom#
savezoom# = zoom#
endcase
case 1: `scroll
xoffsetatstart# = GetViewOffsetX()
yoffsetatstart# = GetViewOffsetY()
id = GetRawFirstTouchEvent(0)
x# = GetRawTouchStartX(id)
y# = GetRawTouchStartY(id)
while GetRawTouchReleased(id) = 0
currentx# = GetRawTouchCurrentX(id)
currenty# = GetRawTouchCurrentY(id)
SetViewOffset(xoffsetatstart#+(x#-currentx#)/lastzoom#,yoffsetatstart#+(y#-currenty#)/lastzoom#)
sync()
endwhile
endcase
case 2: `zoom
id1 = GetRawFirstTouchEvent(1)
id2 = GetRawNextTouchEvent()
y1 = GetRawTouchStartY(id1)
y2 = GetRawTouchStartY(id2)
dist# = Abs(y1 - y2)
while GetRawTouchReleased(id1) = 0 and GetRawTouchReleased(id2) = 0
newdist# = Abs(GetRawTouchCurrentY(id1)-GetRawTouchCurrentY(id2))
diff# = abs(newdist#/dist#)
zoom# = lastzoom#*diff#
SetViewZoom(zoom#)
Sync()
endwhile
endcase
endselect
sync()
loop
and attached is an apk showing the problem (sometimes).
If someone could test and let me know if they get a black screen (might require multiple runs) I would be grateful.