title: What's the right way to get permissions for phone call intent
body: <p>How to request permissions using Kotlin.</p>
  
  <p>I am trying to make a phone call function </p>
  
  <pre><code>fun buChargeEvent(view: View){
      var number: Int = txtCharge.text.toString().toInt()
      val intentChrage = Intent(Intent.ACTION_CALL)
      intent.data = Uri.parse("tel:$number")
      startActivity(intentChrage)
  }
  </code></pre>
  
  <p>I added user permissions in manifest 
  but still having the same
  <a href="https://i.stack.imgur.com/zPwsU.png" rel="nofollow noreferrer">error </a>.</p>