title: How to get Phone number of android device using Sim card or
body: <p>My code is here, it is always throwing null</p>
  
  <pre><code>TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); 
  String number = tm.getLine1Number();
  </code></pre>
  
  <p>I used the permission  </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
  </code></pre>
  
  <p>Please give me exact solution to get phone number. Thank you.</p>