title: Bundle extras returning null
body: <p>I'm having some problems.</p>
  
  <p>In a class "A" I have the code:</p>
  
  <pre><code>Bundle extras = getIntent().getExtras();
      if ( extras == null ){
          Log.e("extras", "Extra NULL");
      }
      String arrayWatt = extras.getString("valoresWatt");
      String arrayHorario = extras.getString("valoresHorario");
  
  
  Bundle extras = getIntent().getExtras();  --&gt; this is returning NULL`
  </code></pre>
  
  <p>This method throws NUllPointerException. What is the problem here? Syntax?</p>
  
  <p>---EDIT----
  So sorry, I forgot this code:<br>
  (This code is from another class that starts the activity)</p>
  
  <pre><code> Intent i = new Intent();
          i.setClassName("org.me.android",
                      "org.me.android.GraphViewDemo");
          i.putExtra("valoresWatt", watt);
          i.putExtra("valoresHorario", hora);
          startActivity(i);
  </code></pre>