BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-10-2005, 02:06 PM   #1
vcoleman
New Member
 
Join Date: May 2005
Model: 7290
Posts: 11
Default API for getting BB's phone number

Please Login to Remove!

Hi,

I looked through various API's and didn't see a way of getting the BlackBerry's phone number. It must be possible... Does anybody have any ideas?

Thanks,

Victor.
Offline  
Old 11-10-2005, 06:23 PM   #2
southwestcomm
BlackBerry Extraordinaire
 
Join Date: Jan 2005
Model: Many
Carrier: Sprint
Posts: 1,475
Default

The phone numbe on the actual unit? Just hit the space bar.....
Offline  
Old 11-11-2005, 02:36 PM   #3
vcoleman
New Member
 
Join Date: May 2005
Model: 7290
Posts: 11
Default

I know what the unit's number is, but inside of a program what functions do I call into what libraries (API's) to discover that number?
Offline  
Old 11-24-2005, 05:05 AM   #4
lharts
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7230
Posts: 25
Default

if you find what your looking for let me know! from all the research i have done tho theres no way of getting it! I have created a persistent store that gets the app user to enter the phone number and stores it for retrival @ a later date. its easy to get the device pin but i would MUCH rather teh MSISDN/IMSI so if you come up with a possible solution let me know!!
Offline  
Old 12-29-2005, 10:44 AM   #5
shan
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: 7290
Posts: 16
Default

You can get the device phone number by using the API net.rim.blackberry.api.phone.Phone

The method is getDevicePhoneNumber(true).

But these API's are in signed category.
Offline  
Old 12-30-2005, 03:09 PM   #6
arconsulting
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Default

Caveat - This method is new to v4.1 so it won't (at this point) run on most devices.

If you are targeting the 8700x, you are good to go.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue picture

Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue

$141.00



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$79.99



Adec Vintage Adjusting Dentist Doctor Medical Stool Rolling Swivel Chair picture

Adec Vintage Adjusting Dentist Doctor Medical Stool Rolling Swivel Chair

$199.99



HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee picture

HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee

$235.94



Onan Electric Generating Plants Manual And Parts Catalog DEC Series 1963 Vintage picture

Onan Electric Generating Plants Manual And Parts Catalog DEC Series 1963 Vintage

$13.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.