Recent

Author Topic: [SOLVED] Android: how to get the phone number ?  (Read 224 times)

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 261
[SOLVED] Android: how to get the phone number ?
« on: May 14, 2025, 11:54:41 am »
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.
« Last Edit: May 14, 2025, 03:15:03 pm by mirce.vladimirov »

 

TinyPortal © 2005-2018