title: Get string extra from activity Kotlin
body: <p>I want to get a string extra in another activity from an intent. This is the way to create my intent</p>
  
  <pre><code>        val intent = Intent(this, Main2Activity::class.java)
          intent.putExtra("samplename", "abd")
          startActivity(intent)
  </code></pre>
  
  <p>How can i get the value of this intent in the another activity</p>