Sorry if this question has already been posted, but none of the suggested threads seemed relivent.
I've been putting together an opengl game for android (I believe it's OpenGL ES 1.0 because I keep using the "GL10." prelude) for Android os 2.2, and everything seems to be working fine, but every time the screen is left alone and goes into sleep mode; waking it causes my app to crash...
From what I can gather I'm doing something wrong with one of my Overrides... Not storing something I should be storing in my "onSurfaceChanged" or "onSurfaceCreated" functions... Though I could be wrong.
What things need to be stored in these functions to allow a return from sleep mode? What things can be ommited? I'm pretty confused...
I'm guessing I need to give more information before someone can help me, I just don't know what.
I'm new to Android development and also new to Java, so sorry if seem a bit slow...
I've been putting together an opengl game for android (I believe it's OpenGL ES 1.0 because I keep using the "GL10." prelude) for Android os 2.2, and everything seems to be working fine, but every time the screen is left alone and goes into sleep mode; waking it causes my app to crash...

From what I can gather I'm doing something wrong with one of my Overrides... Not storing something I should be storing in my "onSurfaceChanged" or "onSurfaceCreated" functions... Though I could be wrong.
What things need to be stored in these functions to allow a return from sleep mode? What things can be ommited? I'm pretty confused...
I'm guessing I need to give more information before someone can help me, I just don't know what.
I'm new to Android development and also new to Java, so sorry if seem a bit slow...