Calling number from dialpad returns warning: "Call requires permission which may be rejected by user"
<p>I am trying to basically dial a number when the user clicks on a TextView that has a number:</p>

<pre><code>number_title.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        Intent callIntent = new Intent(Intent.ACTION_CALL);
                        callIntent.setData(Uri.parse("tel:+"+user.getTelephone()));
                        activity.startActivity(callIntent);
                        //the above line returns the warning given below
                    }
});
</code></pre>

<p>The warning I get:</p>

<blockquote>
  <p>Call requires permission which may be rejected by user. Code to
  explicitly check to see if the permission is available</p>
</blockquote>

<p>I understand that the app needs to request permission if the permission hasn't been granted before. My question is, how do I request the permission explicitly before making the call?</p>