BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-29-2005, 12:36 PM   #1
shan
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: 7290
Posts: 16
Default API to get BB user Name

Please Login to Remove!

Do any one know that through which API we can find the handheld device User Name?

Please let me know. Thanks in advance.
Offline  
Old 12-30-2005, 03:02 PM   #2
arconsulting
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Default

To get a user's email address:

ServiceConfiguration.getEmailAddress()

I assume this is what you mean by "user name".
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Old 04-11-2006, 12:20 PM   #3
shan
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: 7290
Posts: 16
Default

I have implemented as:

ServiceConfiguration SC = new ServiceConfiguration();

user = SC.getEmailAddress();

When this code is used in the simulator, user has a value as null.

How to retrieve the user name .........
Offline  
Old 04-13-2006, 09:51 AM   #4
shan
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: 7290
Posts: 16
Default

User name is basically one who has the blackberry i.e. owner.

Can anyone tell how to get the owner name?

Thanks.
Offline  
Old 04-18-2006, 04:55 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

getting the mail-adress:

String eMail = Session.getDefaultInstance().getServiceConfigurati on().getEmailAddress().toString()

getting the PIN:

String bbPin = Integer.toHexString(DeviceInfo.getDeviceId())

hth
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 04-24-2006, 09:08 AM   #6
shan
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: 7290
Posts: 16
Default

This helped me a lot.
Thank you very much.
Offline  
Old 01-02-2007, 03:44 PM   #7
EZboy
New Member
 
Join Date: Dec 2006
Model: 8700
Posts: 13
Default

Thanx, big help!
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


KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier picture

KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier

$289.99



Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker picture

Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker

$14.99



1PCS Mitsubishi MR-J2S-60B MRJ2S60B Servo Drive In Box -New  picture

1PCS Mitsubishi MR-J2S-60B MRJ2S60B Servo Drive In Box -New

$280.00



Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan... picture

Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan...

$296.32



Biamp Tesira AMP-450BP AVB/TSN Enabled 4 Channel Amplifier w/ PoE+ (G155) picture

Biamp Tesira AMP-450BP AVB/TSN Enabled 4 Channel Amplifier w/ PoE+ (G155)

$250.00



Mitsubishi MR-J2S-40A Servo Drive MRJ2S40A New In Box Expedited Shipping picture

Mitsubishi MR-J2S-40A Servo Drive MRJ2S40A New In Box Expedited Shipping

$256.00







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