title: How to send this data to another Activity
body: <p>I need to send a string to another activity.</p>
  
  <pre><code>      long timeSpent = System.currentTimeMillis() - initialTime;
        timeSpent = (long) (timeSpent / 1000.0);
     String string = "Game Over! Time spent " + String.valueOf(timeSpent) + "s";
  </code></pre>
  
  <p>I use this code, but it is wrong.</p>
  
  <pre><code>   Intent intent = new Intent();
     intent.putExtra("timespeent", timeSpent);
  </code></pre>