الثلاثاء، 24 ديسمبر 2013

Resume to SurfaceView shows black screen

The answer depends on how you change to the other activity.

Basically, you have to think about how to store the current state of the surface when the activity pauses, stops or destroys.

for example you can overload onSaveInstanceState in your activity to save degreUP and degreDOWN (by the way they are not defined in the current code snippet). and restore them in onRestoreInstanceState. see How do I save an Android application's state?


View the original article here

ليست هناك تعليقات:

إرسال تعليق