Skip to content Skip to sidebar Skip to footer

Android: Surfaceview Can't Resume Activity From Pause()

I am testing surfaceView, basically the app jsut changes the color of the background. The app starts with no issue but when I 'pause' the activity and 'resume' it, the app is block

Solution 1:

The while(true) loop without a break in it will never stop in method pause(). I would expect something like a return after succesfully joined the rendering thread (waited till it ended)

With your volatile declaration of running the while-loop in run() should be ok.

Post a Comment for "Android: Surfaceview Can't Resume Activity From Pause()"