title: Android : Mistake with Intent and Activities
body: <p>I've 3 activities A, B and C.</p>
  
  <p>With A, I'm calling B, and with B I'm calling C. (every times with a sample Button).</p>
  
  <p>I wanted to call the Activity A, with the C's button so I wrote that :</p>
  
  <pre><code>Intent intent = new Intent(this, A.class);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
  startActivity(intent);
  </code></pre>
  
  <p>It works, but I want to send an information to the A activity. So I added that :</p>
  
  <pre><code>intent.putExtra("id", object.getId());
  </code></pre>
  
  <p>But in the A Activity, I don't succeed to have this data.... </p>
  
  <p>I tried to do that on the A Activity when I call the B Activity :</p>
  
  <pre><code>startActivityForResult(i, 1);
  </code></pre>
  
  <p>But when I'm on the C activity, and I click on the button, I'm entering in :</p>
  
  <pre><code>onActivityResult
  </code></pre>
  
  <p>but the Intent data is null. (because it's excepting to be called from B Activity ?)</p>
  
  <p>How can I "give" an information C -> A ?</p>
  
  <p>Thanks,</p>