Unable to retrieve intent's extras
<p>I have an activity that I use in multiples modes, so I have to do things like this:</p>

<pre><code>    Intent i = new Intent(MainListActivity.this,MainActivity.class);
    extras.putInt("id", c.getId());
    extras.putInt("mode", AREA_MODE);
    i.putExtra("extras", extras);
    startActivity(i);
</code></pre>

<p>and in the <code>onCreate</code>:</p>

<pre><code>    Intent i = this.getIntent();
    extras = i.getBundleExtra("extras");
    if(extras!=null){
        id = extras.getInt("id", -1);
        mode = extras.getInt("mode", COUNTRY_MODE);
    }
</code></pre>

<p>But the intent extras are always null. Am I missing something? Is there any way to do this?</p>

<p>EDIT: For some reason, the <code>getIntent()</code> method returns the previous <code>Intent</code> which in my case has no extra (main intent). I'm trying to figure out why.</p>
