How do I know when a GLSurfaceView is fully initialized from the Activity?
<p>I have an Activity that contains several views.  One of which is a GLSurfaceView.  This GLSurfaceView displays pretty 3D effects based on what is selected in my Activity's other views (ListViews, EditTexts, etc).  The issue I am having is that I don't know when my GLSurfaceView has been fully initialized from the Activity.</p>

<p>I began by simply attempting to pass my graphics data to my GLSurfaceView in my Activity's onCreate() method shortly after the setContentView() method.  This worked fine on the emulator but on several devices this fails with null pointer exceptions from attempting to access objects that had not even been constructed yet.  I assumed it was because my view had not been inflated yet and perhaps inflating views just takes longer on my devices.</p>

<p>I scattered some logging just to see the order of things and I found that my GLSurfaceView's onSurfaceCreated method is called well after the GLSurfaceView's onFinishInflate method.</p>

<p>So now I am looking for a good way to determine in my Activity when my GLSurfaceView's onSurfaceCreated method has been called so that I can safely tell my GLSurfaceView what to draw.</p>
