title: How can I get my own phone number programmatically in Android?
body: <p>I tried the following code to get my own number and get a NULL string. What is the problem?</p>
  
  <pre><code>TelephonyManager mTelephonyMgr;     
   mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);     
   String phoneNumber = mTelephonyMgr.getLine1Number();
  </code></pre>
  
  <p>Permission </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt; 
  </code></pre>