Android device telephone number
<p><strong>I am using the below method to get the phone number of my device</strong></p>

<pre><code>

    private void getMyNumber()
            { 

        // read_phone_State permission is specified
            String ph_num ="";
            TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); 
                    ph_num = telephonyManager.getLine1Number(); // returning null 
                    ph_num = telephonyManager.getSimSerialNumber(); // returning sim serial number
                    ph_num = telephonyManager.getSubscriberId(); // returning id 
                    ph_num = telephonyManager.getVoiceMailNumber(); // returning null
            }

</code></pre>

<p>Any ideas ... how to get the phone number</p>
