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


Schneider 140CPU65150 processor module 140CPU65150 140CPU65150 picture

Schneider 140CPU65150 processor module 140CPU65150 140CPU65150

$2898.00



AB 1747-L542 /C SLC 500 5/04 CPU PROCESSOR UNIT 1747L542 NEW Factory Sealed picture

AB 1747-L542 /C SLC 500 5/04 CPU PROCESSOR UNIT 1747L542 NEW Factory Sealed

$380.00



Intel Core i5-12500T ES QYGD 1.4GHz 6Core 12Thread 35W LGA1700 CPU Processor picture

Intel Core i5-12500T ES QYGD 1.4GHz 6Core 12Thread 35W LGA1700 CPU Processor

$121.16



Intel Core i5-13500T - 2.3GHz Processor  Desktop Processor SRH3B picture

Intel Core i5-13500T - 2.3GHz Processor Desktop Processor SRH3B

$85.00



AlphaSmart Neo2 Laptop Word Processor, . picture

AlphaSmart Neo2 Laptop Word Processor, .

$90.00



Siemens 6FX1138-5BB04 Sinumerik Circuit Board CPU picture

Siemens 6FX1138-5BB04 Sinumerik Circuit Board CPU

$199.99







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