title: Unable to fetch data from a common intent
body: <p>I am calling the activity RegistrationCredentialsActivity from two different activities: RegistrationActivity and ForgotPasswordActivity. I am passing activity name as StringExtra from these activities along with other details. But inside the RegistrationCredentialsActivity, I'm unable to fetch the data sent from ForgotPasswordActivity. Only activity name is fetched successfully. </p>
  
  <p>I'm setting the received data as the text of a TextView of RegistrationCredentialsActivity . Anyone have any idea why this is happening?</p>
  
  <p>P.S:  It is working fine for RegistrationActivity, problem is arising only for ForgotPasswordActivity</p>
  
  <p><strong>RegistrationCredentialsActivity</strong>(where I'm setting received data to a TextView):</p>
  
  <pre><code>override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_registration_credentials)
          text = findViewById(R.id.txtRegDetails)
          var string = ""
          if(intent != null){
              val activity = intent.getStringExtra("activity")
              println("Activity = "+activity.toString())          //this line is printed as expected
              if(activity.contentEquals("RegistrationActivity")) {
                  string += "Name: " + intent.getStringExtra("name") + "\n"
                  string += "Email: " + intent.getStringExtra("email") + "\n"
                  string += "Mobile no.: " + intent.getStringExtra("mobile") + "\n"
                  string += "Address: " + intent.getStringExtra("address")
              }
              else if(activity.contentEquals("ForgotPassword")){
                  println("Inside else block123")       //this line is also printed
                  string += "Email: "+intent.getStringExtra("email")+"\n"   //problem lies in these
                  string += "Mobile: "+intent.getStringExtra("mobile")          //two lines
              }
          }
          text.text = string
      }
  </code></pre>
  
  <p><strong>RegistrationActivity:</strong></p>
  
  <pre><code>val intent = Intent(this@RegistrationActivity,RegistrationCredentialsActivity::class.java)
                  intent.putExtra("name",name)
                  intent.putExtra("email",email)
                  intent.putExtra("mobile",mobile)
                  intent.putExtra("address",address)
                  intent.putExtra("activity","RegistrationActivity")
                  startActivity(intent)
  </code></pre>
  
  <p><strong>ForgotPasswordActivity:</strong></p>
  
  <pre><code>val intent = Intent(this@ForgotPasswordActivity,RegistrationCredentialsActivity::class.java)
              intent.putExtra("activity","ForgotPassword")
              intent.putExtra("email",email)
              intent.putExtra("mobile",mobile)
              startActivity(intent)
  </code></pre>
  
  <p>When called from RegistrationActivity(correct):</p>
  
  <p><a href="https://i.stack.imgur.com/H6oZw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H6oZw.png" alt="enter image description here"></a></p>
  
  <p>When called from ForgotPasswordActivity(incorrect):</p>
  
  <p><a href="https://i.stack.imgur.com/3mY6h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3mY6h.png" alt="enter image description here"></a></p>