title: How to get phone number from android phone
body: <p>How to get the phone number from an android phone. I have used this code but it doesn't get the current number. It get the number that came with the phone, so if I change the SIM it gets the previous number.</p>
  
  <pre><code>    TelephonyManager manager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
      String number = manager.getLine1Number();
  </code></pre>
  
  <p>This code gets a number but not the the current one. How would I get the current number.</p>