onCreate not getting called for first activity when calling startActivity consecutively for two different activities
<p>I have three activities <strong>A</strong>, <strong>B</strong>, and <strong>C</strong>.</p>

<p>In <code>onCreate()</code> of A, I call <code>startActivity(...)</code> in two consecutive statements for launching B &amp; C. But android does not calls <code>onCreate()</code> on activity B instantly.
Instead when I press back on C since it is on top of stack. it calls <code>onCreate()</code> on B and the other lifecycle methods then.</p>

<p>Here is what my example code looks like.</p>

<pre><code>public class A extends Activity {

  @Override 
  protected void onCreate(Bundle savedInstanceState) {

  super.onCreate(savedInstanceState);

  startActivity(this, B.class); 
  startActivity(this, C.class);
  }
}
</code></pre>

<p>Any clues to why the call to onCreate of activity B is getting deferred ?</p>
