What does "setContentView" really do?
<p>In my main activity i would like to have it set up that i first get met by a contentview just showing a background and some text. After X seconds i want i to change to my other view (GLSurfaceView).</p>

<p>This is obviously something i am doing completly wrong.</p>

<p>This is how i've imagined it could've been done (It's all in the onCreate)</p>

<pre><code>    setContentView(R.layout.main);

    try {
        Thread.sleep(10000);
    } catch (InterruptedException e) {
    }

    viewer = new Viewer(this);

    setContentView(viewer);
</code></pre>

<p>Where layout Main is want i want to show at beginning and Viewer is my GLSurfaceView class.</p>

<p>What happens is that it is just beeing black for 10 seconds and then it starts loading my objects i've got that is shown through OpenGL(ES).</p>

<p>There's nothing wrong with the layout "main" since it works if i just erase the lines under where the thread sleeps take action. Tho nothing happens before the Thread.sleep is over...</p>

<p><strong>With that said, My questions are following</strong></p>

<ul>
<li>Why is the contentView not changing until <strong>after</strong> Thread.sleep is done?</li>
<li>What would be an appropiate solution to what i want to achiev?</li>
</ul>
