Always sim cards have a phone number so if yo want to retrieve your phone
number you have to make a call to the telephone phone provider and thus
obtain the number ... for example in my country i may obtain my phone
number with *#595# and when i call that number i obtain my phone number.
However this is not a universal number so if u want your app to run in
other countries then u will be in trouble. But there must be another way to
obtain that number. Then how you explain your phone is able to receive a
call. But other way i dont know.
El 19/04/2013 05:16, "dashman" <erjdri...@gmail.com> escribió:

> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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 android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to