Android - How to get the mobile nunber when not stored in the SIM card
<p>I want to get the mobile number related with a SIM card. But I know that some celular operators doesn't store the number into the SIM card.</p>

<p>So use the code below will not return anything,</p>

<pre><code>TelephonyManager tm = (TelephonyManager)this.getApplicationContext()
                                            .getSystemService(Context.TELEPHONY_SERVICE); 
String phoneNumber =  tm.getLine1Number();
</code></pre>

<p>Anyone knows any other way to get the mobile number?</p>

<p>Maybe some API that retrieves the number using the IMSI of the SIM Card, or maybe the mobile number is stored somewhere on the memory of the device.</p>

<p>One desperate way could be make some kind of request to the operator or carrier to ask for the mobile number for that IMSI, I don't know :)</p>

<p>any help will be appreciated :)</p>

<p>thanks</p>
