title: Revoked permission android.permission.CALL_PHONE
body: <p>I'm trying to programmatically call to a number with following code:</p>
  
  <pre><code> String number = ("tel:" + numTxt.getText());
   Intent intent = new Intent(Intent.ACTION_CALL);
   intent.setData(Uri.parse(number));
   startActivity(intent);
  </code></pre>
  
  <p>I've set the permission in the Manifest: </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.CALL_PHONE"/&gt;
  </code></pre>
  
  <p>I'm working with real device for testing and debugging, it is Nexus 5 with Android M, my compileSdkVersion is 23. I'm getting the following Security Exception:</p>
  
  <pre><code>error: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxx cmp=com.android.server.telecom/.components.UserCallActivity } from ProcessRecord{cbbd7c1 5228:com.dialerTest.DialerApp/u0a96} (pid=5228, uid=10096) with revoked permission android.permission.CALL_PHONE
  </code></pre>
  
  <p>I've searched the web and this community for similar Q/A and couldn't find the answer. Any help will be appreciated.</p>