This sounds very similar to a problem I saw previously also regarding
SurfaceHolder callbacks not arriving properly. My experience was the
opposite where I wasn't getting the callback upon the press of the
END_CALL button. I filed a bug about 2 months ago that is here give a
star and perhaps add your observations as while different than mine
they are related and the only trouble spot I have regarding providing
a seamless GL experience on Android.

http://code.google.com/p/android/issues/detail?id=4125

Regards,
--Mike

On Nov 25, 4:55 am, David Given <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've got an OpenGL game with a SurfaceHolder being used to manage the
> screen.
>
> If I use the HOME button to temporarily switch away from the game, I see
> the following sequence of callbacks:
>
> Press HOME ->
>   onPause()
>   surfaceDestroyed()
>   onStop()
>
> Switch back to app ->
>   onStart()
>   onResume()
>   surfaceCreated()
>
> This all seems normal. However, when I press the HANGUP button to switch
> the screen off, and then wake up the phone, I get the following:
>
> Press HANGUP to turn screen off ->
>   onPause()
>   surfaceDestroyed()
>
> Press HANGUP again to screen on, going to the screen lock page ->
>   onResume()
>
> Deactivate screen lock, switch back to game ->
>   nothing!
>
> Not only am I not informed that my application has become visible again,
> but I'm never informed that my surface has been created so I can start
> drawing on it again!
>
> Anyone know what's going on here?
>
> - --
> ┌─── dg@cowlark.com ─────http://www.cowlark.com─────
> │
> │ "Sufficiently advanced incompetence is indistinguishable from
> │ malice." -- Vernon Schryver
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iEYEARECAAYFAksNKVgACgkQf9E0noFvlzh+6ACgiDklIyvPy+BWz/rWqvQStcsz
> Fx0AoJyw8ZEQCDvdcSgV0iIP4XukMklD
> =ijtu
> -----END PGP SIGNATURE-----

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

Reply via email to