title: getting phone number from android device
body: <p>Yes I am using the correct permission:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  </code></pre>
  
  <p>And here is my code:</p>
  
  <pre><code>private String getDevicePhoneNumber() {
      TelephonyManager mTelephonyMgr;
      mTelephonyMgr = (TelephonyManager)
          getSystemService(Context.TELEPHONY_SERVICE);
      return mTelephonyMgr.getLine1Number();
  }
  </code></pre>
  
  <p>The phone is returning lambda to me: the empty string.</p>
  
  <p>Does anyone know how to get this right? I need this to work for android Froyo (<code>2.2</code> ) and up</p>