BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-31-2008, 07:58 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Buenos aires, Argentina
Model: 8520
PIN: N/A
Carrier: Claro
Posts: 75
Post Thanks: 0
Thanked 4 Times in 4 Posts
Default Get the user email address

Please Login to Remove!

How can i get the user email address with an application.

With the RIM Api i mean.

Thanks
__________________
Martin

Blackberry Instructor
Offline  
Old 10-31-2008, 08:18 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

iterate through the servicerecords of your servicebook (use the corresponding classes). using the serviceconfiguration you can now read the mailaddresses.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 10-31-2008, 11:11 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Buenos aires, Argentina
Model: 8520
PIN: N/A
Carrier: Claro
Posts: 75
Post Thanks: 0
Thanked 4 Times in 4 Posts
Default done !

import net.rim.blackberry.api.mail.Session;

...........
..........

String strAddr = Session.getDefaultInstance().getStore().getService Configuration().getEmailAddress();

Thanks !
__________________
Martin

Blackberry Instructor
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

(5PCS) CAT24C256YI-GT3 IC EEPROM 256KBIT 400KHZ 8TSSOP 24C256 CAT24C256
$5.25
(5PCS) CAT24C256YI-GT3 IC EEPROM 256KBIT 400KHZ 8TSSOP 24C256 CAT24C256 picture(1PCS) CAT25M02VI-GT3 IC EEPROM 2MB SPI SER 8SOIC 25M02 CAT25M02
$5.71
(1PCS) CAT25M02VI-GT3 IC EEPROM 2MB SPI SER 8SOIC 25M02 CAT25M02 picture(5PCS) BR93L86RFVM-WTR IC EEPROM 16KBIT 2MHZ 8MSOP 93L86 BR93L86
$5.96
(5PCS) BR93L86RFVM-WTR IC EEPROM 16KBIT 2MHZ 8MSOP 93L86 BR93L86 picture5 Pieces - AT28C64-25SI EEPROM Parallel 64K-bit 8K x 8 5V 28-Pin SOIC
$25.99
5 Pieces -  AT28C64-25SI  EEPROM Parallel 64K-bit 8K x 8 5V 28-Pin SOIC picture50 Pieces - X25043SI Serial EEPROM, 512 x 8, 8 Pin, Plastic, SOP NEW X25043SIT1
$44.99
50 Pieces - X25043SI Serial EEPROM, 512 x 8, 8 Pin, Plastic, SOP NEW X25043SIT1 picture






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