ViewFlipper - how to force it to show the first View?
<p>when I add a ViewFlipper, the UI thread seems to wait for the onCreate() method in the activity to be finished. Then it shows the second view. Why does it happen?</p>

<p>My current code is:</p>

<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_menu);    

    viewFlipper = (ViewFlipper) findViewById(R.id.ScreenSwitch);
    viewFlipper.setInAnimation(AnimationUtils.makeInAnimation(this, true));
    viewFlipper.setOutAnimation(AnimationUtils.makeOutAnimation(this, true));

    //do the necessary loading, when the splash screen persists 
    doSomeLoading();

    viewFlipper.showNext();

}
</code></pre>

<p>Actually, the doSomeLoading consists of a for loop counting to ten millions and doing nothing. Now it just waits for loop to be done and shows the second view.</p>

<p>I would really appreciate a solution without having to create a separate Thread, because it seems to be pointless, invalidate() doesn't help there.</p>
