title: Data not being passed between activities through Intent
body: <pre><code>//In MainActivity
  binding.doneButton.setOnClickListener {
              checkValid()
              if (valid){
                  val bmi: Double = calculateBmi().round(1)
                  val bmr: Double = calculateBmr().round(2)
                  Intent(this, DailyActivity::class.java).also{
                      intent.putExtra(&quot;EXTRA_BMI&quot;, bmi)
                      intent.putExtra(&quot;EXTRA_BMR&quot;, bmr)
                      startActivity(it)
                  }
  
              }
          }
  //In DailyActivity
  var bmi = intent.getDoubleExtra(&quot;EXTRA_BMI&quot;, 0.0)
  var bmr = intent.getDoubleExtra(&quot;EXTRA_BMR&quot;, 0.0)
  </code></pre>
  <p>I want to pass these two Double values bmi and bmr from my MainActivity to DailyActivity. I checked the values and they work fine inside MainActivity. But when I try to pass them to DailyActivity, the default value of 0.0 is being used. I tried intent?.extras?.getDouble(&quot;EXTRA_BMI&quot;) as well but that's not working either. How can I fix this?</p>
  <p>(Btw round is an extension function I found on SO. It works fine. That's not why the code isn't working)</p>