title: Android: startActivity() starting a "chain" of activities?
body: <p>Yes, I know. It sounds weird, but I can't think of any other way to explain it. </p>
  
  <p>I start Activity MainActivity. It calls startActivity(B). B calls startActivity(C). In C, I have a button with an <em>onClickListener</em> that looks like this:</p>
  
  <pre><code>startActivity(new Intent(getApplicationContext(), MainActivity.class));
  </code></pre>
  
  <p>When I hit the button, I get to activity B, not Main!</p>
  
  <p>LogCat shows this:<br>
  Activitymanager   Starting activity: ... MainActivity<br>
  ActivityManager   Starting activity: ... B</p>
  
  <p>So, it looks like my MainActivity (A) gets started and then something-or-someone-mysterious starts activity B immediately. </p>
  
  <p>Ideas? I'm at a loss...</p>
  
  <p>Thanks!<br>
  <em>Llappall</em></p>
  
  <p>EDIT:
  A couple of notes to clarify:<br/>
  1) I'm not overriding any lifecycle methods in MainActivity. I just have onCreate.<br/>
  2) MainActivity's layout shows an image that covers the whole screen. I capture where the user touches in the image's OnTouchListener and, depending on that, I call different intents. The code looks like this:</p>
  
  <pre><code>if (touchX &gt; 0 &amp;&amp; touchX &lt; 0.5 &amp;&amp; touchY &gt; 0.25
      &amp;&amp; touchY &lt; 0.46) {
      Intent i = new Intent(context, ShowListsActivity.class);
      i.putExtra("option", 0);
      startActivity(i);
  } else if // if the location of the click is different I call another .class
  </code></pre>