How to get the text from another class in android?
<p>This is my First Class :</p>

<pre><code>public void onClick(View v) {
      Intent myIntent = new Intent(v.getContext(),Second.class);
      myIntent.putExtra("icon_image",mThumbIds[position]);
      myIntent.putExtra("icon_text", categoryContent[position]);
      startActivityForResult(myIntent, 0);
</code></pre>

<p>Second Class :</p>

<pre><code>ImageView img=(ImageView)findViewById(R.id.icon_product);

    int theID = getIntent().getExtras().getInt("icon_image");
    img.setImageResource(theID);                    
    TextView t1 = (TextView) findViewById(R.id.name_val); 
</code></pre>

<p>I am able to pass images from FirstClass to Second Class , but i dont know how to do it for text .. PLease Help !!!</p>
