how to take the phone number
<p>i want to take the phone number from the phone dialer to use it in my application for that
i used this code in the manifest file </p>

<pre><code>           &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;

         &lt;intent-filter &gt;

         &lt;action android:name="android.intent.action.CALL" /&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;
</code></pre>

<p><img src="http://i.stack.imgur.com/1uwRh.png" alt="enter image description here"></p>

<p>and to get the phone number that i call , so i did  use this method </p>

<pre><code> TelephonyManager phoneManager = (TelephonyManager) 
              getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
        String phoneNumber = phoneManager.getLine1Number();
</code></pre>

<p>but its return null when no sim card and nothing when its included </p>

<p>so  is there any other method to get the phone number that i use into my application </p>
