myIntent.getStringExtra returns null?
<p>Hey, I'm having a weird problem when I try to send strings with intents when switching activities.</p>

<p>Here is what I do in class 1:</p>

<pre><code>Intent myIntent = new Intent(SearchText.this, Search.class);  
myIntent.putExtra("searchx", spinnerselected);  
myIntent.putExtra("SearchText", input);  
startActivity(myIntent); 
</code></pre>

<p>Class 2:  </p>

<pre><code>Intent myIntent = getIntent();   
searchText=myIntent.getStringExtra("SearchText");  
spinnerselectednumber=Integer.parseInt(myIntent.getStringExtra("searchx"));
</code></pre>

<p>And using the debugger in the second class, its clear that there is a value in "searchx":
<a href="http://i51.tinypic.com/jj1ctx.png" rel="nofollow">http://i51.tinypic.com/jj1ctx.png</a></p>

<p>Though the line "myIntent.getStringExtra("searchx")" gives null<br>
Why is this?<br>
Thanks</p>
