How to get the number of a chosen contact and pass it to an activity
<p>I have created an app that becomes one of the options whenever we are trying to make an outgoing call. (e.g. "Complete action using" (a) dialer (b) skype (c) myApp) I have inserted the CALL_PRIVILEGED intent-filter in order to do that. </p>

<p>Here is my AndroidManifest.xml File</p>

<pre><code>    &lt;activity android:name=".OutgoingCallActivity"&gt;
        &lt;intent-filter android:priority="999"&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;
    &lt;/activity&gt;
</code></pre>

<p>Here is my OutgoingCallActivity.java</p>

<pre><code>...
Intent mIntent = new Intent(android.content.Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber) );
    startActivity(mIntent);
...
</code></pre>

<p>However, I would like to be able to capture the number of the contact that I have chosen and send it to the activity that I have created. </p>

<pre><code>String phoneNumber = (get the phone number of the contact that I have selected)
</code></pre>

<p>How is this possible?</p>
