title: Android getIntent().getExtras() returns null
body: <p>I'm trying to pass a string between two activities. I've done this in other projects using the same method, but for some reason I'm getting a NullPointerException when I call intent.getStringExtra(String). I have also tried creating a Bundle for the extras via </p>
  
  <pre><code>Bundle b = getIntent().getExtras();
  </code></pre>
  
  <p>but that also returned null. Below is the code that I am currently trying to use.</p>
  
  <p>Activity A:</p>
  
  <pre><code>Intent myIntent = null; 
      String select = "";
              if (selection.equals("Chandelle")) {
                  myIntent = new Intent(Commercial.this, Chandelle.class);
                  select = "Chandelle";
              } else if (selection.equals("Eights on Pylons")) {
                  myIntent = new Intent(Commercial.this, EightsOnPylons.class);
                  select = "Eights on Pylons";
              }
   // Start the activity
      if (myIntent != null) {
          myIntent.putExtra("selection", select);
          Log.d("*** OUTBOUND INTENT: ", "" + myIntent.getExtras().get("selection"));
          startActivity(myIntent);
      }
  </code></pre>
  
  <p>Here's the code in activity B that tries to pull the extra:</p>
  
  <pre><code>    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState); 
  
      Intent i = getIntent();
  
      if (i == null) 
          Log.d("***DEBUG****", "Intent was null");
      else
          Log.d("**** DEBUG ***", "Intent OK");
  
      String MANEUVER_ID  = i.getStringExtra("selection"); //Exception points to this line
      Log.d("*** DEBUG", rec + " " + MANEUVER_ID);
  </code></pre>
  
  <p>I've tried pretty much every alternative way of passing extras, but they all seem to behave this way. What am I missing?</p>