title: null value in getIntent.getExtras.getString()
body: <p>This is my code in my first activity:</p>
  
  <pre><code>Intent i = new Intent(this, OtherScreen.class);
      i.putExtra("id1", "first");
      i.putExtra("id2", "second");
      startActivity(i);
  </code></pre>
  
  <p>where first,second are the values I want to be passed.
  and on my other class i have this:</p>
  
  <pre><code>Intent i = getIntent();
          Bundle extras = i.getExtras();
          String result = extras.getString("id1");
          System.out.println("yeah"+result);
  </code></pre>
  
  <p>but after i run it, my result is null.Can you help me?
  If I write my getString in that ways, I am getting syntax errors.</p>
  
  <pre><code>String result = extras.getString(id1); //id1 cannot be resolved to a variable
  String result = extras.getString("id1","default value"); // remove argument
  </code></pre>