title: Passing String Values between Activities using intents
body: <p>I understand how to pass string values from the MainActivity to the SecondaryActivity using intents, but how would you do that Vise Versa. Here is the code that I am using, I just don't know where to put the Recieving classes code.</p>
  
  <p>In my SecondActivity</p>
  
  <pre><code>Intent intent = new Intent(SecondActivity.this, MainActivity.class);
  String TimeValue = ("00:00:00");
  intent.putExtra("TimeValue", TimeValue);
  startActivity(intent)
  </code></pre>
  
  <p>and This is the code that I am not sure where to put so it doesn't crash when the app starts</p>
  
  <pre><code>String intent = getIntent().getExtras().getString("TimeValue");
  TextView timeText = (TextView)findViewById(R.id.timeText);
  timeText.setText(intent);
  </code></pre>