title: Get phonenumber programmatically - Android
body: <p>is it possible to get the phonenumber of each device programmatically?
  I tried this code:</p>
  
  <pre><code>TelephonyManager manager =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
  mPhoneNumber = manager.getLine1Number();
  </code></pre>
  
  <p>This works fine with some providers. Unfortunately it does not work with each provider. So i am looking for a trick or work around to get the phonenumber of the device. Is there a solution or is it impossible because the number is not stored on the sim card?</p>