Nevermind, this was a case of PEBKAC. There was a race condition in my
game thread that was preventing the surfaceview from properly
resuming.

On Oct 24, 2:55 pm, markusn82 <markus...@gmail.com> wrote:
> Hi,
>
> I've been trying to implement support for pause/resume in my game
> engine. For some reason GLSurfaceView.onSurfaceCreated is never being
> called after I resume the app (i.e. Its called when I first start the
> app, but if I hit the home button and re-enter the app after it
> doesn't get called). I call onPause()/onResume() on my GLSurfaceView
> instance in my activity's onPause()/onResume().
>
> I've followed the SDK samples carefully. I even tried building a
> sample from the NDK and running it (hello-gl2) and I noticed the same
> problem (onSurfaceChanged/onSurfaceCreated not being called when the
> app is resumed). I didn't make any modifications to the sample.
>
> This was all done on a Nexus One with stock rom.
>
> Anyone have any insights on this one?
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to