Forum > Android

[SOLVED] Android: how to get the phone number ?

(1/1)

mirce.vladimirov:
How can my app get the phone number or my IP address or serial ID of my phone ?

EDIT:
The component called TelephonyManager does these things, except the phone number, i still dont know how to get the phone number.
You may find that component at the tab named "Andorid Bridges Extra" (TelephonyManager : jTelephonyManager) , put it on your form and you are on.
TelephonyManager1.GetPhoneType() returns "GSM"
TelephonyManager1.GetLine1Number() does not work
TelephonyManager1.GetIMEI() returns phones IMEI  and that is good for my application.

Navigation

[0] Message Index

Go to full version