getIntExtra always returns the default value
<p>I am trying to pass an integer between activities using an intent. 
The source activity makes the calls info.id is the selected item from 
a ListView. </p>

<pre><code>Intent intent = new Intent(myActivity.this, newClass.class); 
intent.putExtra("selectedItem", info.id); 
this.startActivity(intent); 
</code></pre>

<p>The target activity retrieves the intent using getIntent then calls </p>

<pre><code>int iSelectedItem = intent.getIntExtra("selectedItem", -1); 
</code></pre>

<p>iSelectedItem is always -1 instead of the value passed to putExtra. 
Can someone tell me what I am doing wrong or do I misunderstand the 
use of intents? </p>
