BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-30-2007, 09:44 AM   #1 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How do i get alternate mail addresses?

Please Login to Remove!

I can add new mail addresses via BIS (to get additional mail accounts on your BB). But how can i find them programmatically?

When i open the advanced option "ServiceBook" on my BB the address is one of the listed items.
If i retrieve all ServiceRecords by ServiceBook.getSB().getRecords() there is no mail address listed there.

any ideas how to proceed?
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 10-30-2007, 10:04 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

found it myself. i wonder why RIM hides its stuff so deep.
anyhow, quite sure that somebody will face the same problem so here is my solution:

Code:
		ServiceBook sb = ServiceBook.getSB();
		ServiceRecord[] sr = sb.getRecords();
		for (int i = 0; i < sr.length; i++) {			
			System.out.println(new ServiceConfiguration(sr[i]).getEmailAddress());
		}
you have to get all ServiceRecords, create a new ServiceConfiguration for each and check if it has an email address.
the above code delivers null for most ServiceRecords and the mail addresses for those that have one.
took me the whole afternoon to find out, stupid...
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

GE PLC Processor IC695CPE330
$3500.0
GE PLC Processor IC695CPE330 pictureUsed Cpu Board Servo 083Afv Panasonic Msd083a1xxv 581B653 Control Panel R
$257.09
Used Cpu Board Servo 083Afv Panasonic Msd083a1xxv 581B653 Control Panel R picture2 PCS ATSAM3S4CA-AU LQFP-100 ATSAM3S4C-AU AT91 ARM Cortex M3-based Processor
$19.99
2 PCS ATSAM3S4CA-AU LQFP-100 ATSAM3S4C-AU AT91 ARM Cortex M3-based Processor picturePICK UP HOUSTON TX; Base only for Waring FP40C 4 Quart Commercial Food Processor
$245.99
PICK UP HOUSTON TX; Base only for Waring FP40C 4 Quart Commercial Food Processor pictureSiemens 6gk7343-5fa01-0xe0, 6gk7 343-5fa01-0xe0 Communication Processor
$760.0
Siemens 6gk7343-5fa01-0xe0, 6gk7 343-5fa01-0xe0 Communication Processor  picture






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