going back to onCreate
<p>I want my code to be readable so i'm writing different methods that do whatever they do and go back to onCreate which calls the next one to be executed. one of my methods has an onAnimationEnd listener, I want the onCreate method to wait for the animation to end and then call the next method, how can I do that without calling the next method from the listener itself?</p>

<p>Thanks in advance</p>

<pre><code>onCreate() 
{
 doTask1();
 doTask2();
}

private void doTask1(){
    ...
    ...
    public void onAnimationEnd(Animation animation) {

            // finish this method and let onCreate call the next one
        }
}
</code></pre>
