Not sure this can be blocked as you suggest, i doubt it can... If it 
returns null, that's because the number is not listed. From my  experience, 
many SIM providers do not burn the number on the SIM so it is missing,

Only good way is to ask the user for the number and authenticate it.

On Friday, April 19, 2013 1:15:15 PM UTC+3, dashman wrote:
>
> I'm using 
>
>
> ((TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE)).getLine1Number()
>
> to retrieve the tel# of the device and then create a serial# out of it.
>
>
> Some users have installed a telephony app (magic jack) that inhibits the 
> reporting
> of the tel# - getLine1Number() reports null.
>
> Any other way to retrieve the number?
>
>
>
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to