title: Android intent getStringExtra returns null
body: <p>I'm trying to add data to a recycler view adapter but the getStringExtra is always null. I maybe making a crucial flaw in what I am doing as I'm not the most experienced programmer.</p>
  
  <p>What is being called first:</p>
  
  <pre><code>public void addItem(View view) {
          Intent otherOne = new Intent(this, Main2Activity.class);
          startActivity(otherOne);
  
          Intent intent = getIntent();
          String subjectString = intent.getStringExtra("subject");
          String detailsString = intent.getStringExtra("details");
          String dateString =   intent.getStringExtra("date");
  
  
  
          Data dataToAdd = new Data(
                  subjectString,
                  detailsString,
                  dateString);
          mData.add(dataToAdd);
          Log.d(TAG, dateString + "might have workedlol");
          // Update adapter.
          mAdapter.addItem(mData.size()-1, dataToAdd);
      }
  </code></pre>
  
  <p>What is called while in MainActivity2:</p>
  
  <pre><code>public void setData(View view){
  
  
          inputSubject = (EditText) (findViewById(R.id.editTextSubject));
          String stringSubject = inputSubject.getText().toString();
  
          inputDetails = (EditText) findViewById(R.id.editTextDetails);
          String stringDetails = inputDetails.getText().toString();
  
          inputDate = (EditText) findViewById(R.id.editTextDate);
          String stringDate = inputDate.getText().toString();
  
          Intent intent = new Intent(this, PlannerActivity.class);
          intent.putExtra("subject", stringSubject.toString());
          Log.d(TAG, stringDate + "might have worked");
          intent.putExtra("details", stringDetails.toString());
          intent.putExtra("subject", stringDate.toString());
          startActivity(intent);
      }
  </code></pre>