Why can't the TelephonyManager get the phone number from the SIM?
<p>I use the TelephonyManager to do this and you can access TelephonyManager s methods as given below</p>

<pre><code>TelephonyManager telephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); 
String number = telephonyManager.getLine1Number();
</code></pre>

<p>The documentation for <code>getLine1Number()</code> says this method will return null if the number is "unavailable", but it does not say when the number might be available.</p>

<p>I have also given application permission to make this query by adding the following to your Manifest:</p>

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

<p>The number is always blank or null...</p>

<p>While I have also crosschecked calling and  i'm able to call from that number(i.e inserted sim no)</p>

<p>I have gone through numerous documentations but nothing help me out to get the phone number from sim so as to be used in my app..</p>

<p>With Regards,</p>

<p>Arpit Garg</p>
