I'm not sure why you're asking this question. It seems like a fairly
simple thing to set up. Why not just try it and see?
My guess is that it won't work because your activity hasn't been given a
Surface yet, and GLSurfaceView depends on having a surface to draw on,
obviously. But again, I think you can probably set up a proof of concept
in far less than the six or so days that you've been waiting for an
answer from the list.
On 9/28/2011 1:25 AM, Streets Of Boston wrote:
The documentation of GLSurfaceView states that its onPause and
onResume should be called when its Activity is paused (onPause) and
resumed (onResume).
Can it be called in onStop and onStart instead to be able to handle
partially transparent child-activities.
Say:
Activity /GLA /has a GLSurfaceView. It starts another child-activity,
with Theme.Dialog, that is partially transparent: Activity /DialogA/.
When /DialogA /becomes visible, the /GLA/'s//onPause is called. If
/GLA /then calls glSurfaceView.onPause(), the contents of /GLA /that
is still partially visible around /DialogA /may become invalid (it may
turn transparent/black).
If /GLA /calls glSurfaceView.onPause() in its *onStop* method instead,
you're at least sure that the child-activity is not partially
transparent and covers the entire screen s that the glSurfaceView is
entirely hidden and glSurfaceView.onPause() can be called safely
without any visual side effects.
My question is:
/Is it safe to call glSurfaceView.onPause() in an activity's onStop
method (and glSurfaceView.onResume() in its onStart method)?/
/If not, what bugs/side-effects can I expect? /
/If not, how can I handle partially transparent child-activities the
correct way?/
/
/
Thanks!
--
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
--
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