title: android: intent passing null
body: <p>I have to pass a string from an activity to another. </p>
  
  <p>in Activiy1 i made:</p>
  
  <pre><code>String modello=nomiImmagini[position];
  Intent nomeModello = new Intent(getApplicationContext(), Activity2.class);
  nomeModello.putExtra("modello", modello);
  </code></pre>
  
  <p>where the value of array nomiImmagini[position] is not null, if i made a toast like </p>
  
  <pre><code>Toast.makeText(getApplicationContext(),
                  "Selezionato " + nomiImmagini[position], Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>it work correctly.</p>
  
  <p>in activity2 I made:</p>
  
  <pre><code>String modello = getIntent().getStringExtra("modello");
  </code></pre>
  
  <p>but here the result is null!</p>
  
  <p>How can I fix this? I'm a beginner in Android and maybe I not understand the intent.</p>