How to get owners telephone number?

Put your problem here if it does not fit any of the other categories.

How to get owners telephone number?

Postby eventhough » Thu Mar 06, 2008 1:29 pm

Hello,

Is there any way to request the telephone number of the phone on which my app is installed? Meaning the owner's telephone number? I need to get the number as a unique identifier.

Thanks,

Kevin
eventhough
Freshman
Freshman
 
Posts: 4
Joined: Fri Feb 29, 2008 5:26 am

Top

Postby Jesmiatka » Thu Mar 06, 2008 4:00 pm

If I remember correctly you can not.
You can get the IMSI and IMEI of the phone though, these are sim/phone unique identifiers.
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Postby cadlg » Thu Mar 06, 2008 4:25 pm

Hello eventhough

Take a look at the android.telephony.TelephonyProperties interface.
It is part of the android.telephony package.

"Contains a list of string constants used to get or set telephone properties in the system. You can use os.SystemProperties to get and set these values."

Regards,

cadlg
cadlg
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Wed Feb 20, 2008 12:33 am
Location: Guatemala

Postby plusminus » Fri Mar 07, 2008 12:03 am

Hello eventhough,

maybe have a look at this tutorial: :src: [TinyTut] - Getting the IMSI / IMEI (SIM/Device unique IDs).

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby eventhough » Fri Mar 07, 2008 2:58 am

Thanks, this forum is 100000x better than the official Android Developers group on Google. You have no idea how hard it is to get anything answered on that forum.

I have another question, do these unique codes work for CDMA (Verizon) networks or only on GSM SIM based networks? I believe the technology is different.

Thanks!

Kevin
eventhough
Freshman
Freshman
 
Posts: 4
Joined: Fri Feb 29, 2008 5:26 am

Postby plusminus » Fri Mar 07, 2008 2:47 pm

Hello eventhough,

good question.
The IMEI should always be working, because it is Device-dependant.

wiki wrote:15 % of the global subscribers used CDMA, while about 85 % used GSM or 3GSM.


I don't know what about IMSI, perhaps Google will wrap another CDMA-unique number to it.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests