title: how to use android.intent.action.CALL_PRIVILEGED and android.intent.action.NEW_OUTGOING_CALL?
body: <p>I can't find the documentation for:</p>
  
  <pre><code>android.intent.action.CALL_PRIVILEGED
  </code></pre>
  
  <p>I saw it is used for example in csipsimple to handle the call.</p>
  
  <p>I would like to better understand how to use it. For example: what's the relationship between 
  <code>android.intent.action.CALL_PRIVILEGED</code> and <code>android.intent.action.NEW_OUTGOING_CALL</code>?</p>
  
  <p>I added:</p>
  
  <pre><code>         &lt;intent-filter&gt;
               &lt;action android:name="android.intent.action.CALL_PRIVILEGED" /&gt;
               &lt;category android:name="android.intent.category.DEFAULT" /&gt;
               &lt;data android:scheme="tel" /&gt;
           &lt;/intent-filter&gt;
  </code></pre>
  
  <p>in the AndroidManifest for my project. When a call is start from the native dialer, my activity is called but if in the onResume I do getIntent().getAction() the result is null</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I made it working handling the onNewIntent as well as onCreate. The onResume receives an intent without an action (sent by the default onNewIntent handler I suppose).</p>
  
  <p>The problem is that to check whether the action is CALL_PRIVILEGED I had to hard-code the string "android.intent.action.CALL_PRIVILEGED" because the action CALL_PRIVILEGED is hidden.</p>
  
  <p>I tried to register the activity for ACTION_CALL only and it did not work</p>