BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-18-2006, 04:26 AM   #1
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default getDeviceId() in Simulator....

Please Login to Remove!

Hi,
I am using BB simulator and its PIN no is 2100000A.
But when I retrieve pin no using “getDeviceId()”, it gives 553648138
Why is that?
It should give 2100000A.

getDeviceId()
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 04:29 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

the pin is a different thing to the deviceid.
Offline  
Old 08-18-2006, 04:41 AM   #3
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

I found that ...

2100000a base 16 == 553643138 base 10.
need to use the hexadecimal version

Is that true...
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 04:47 AM   #4
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

jfisher,

I think that DevicePin and DeviceId is same.
Is'nt it...
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 04:49 AM   #5
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

aah, i never knew that - thanks for the pointer!
Offline  
Old 08-18-2006, 04:57 AM   #6
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

Thanks for all these quick replies..

Anyway I am assuming I am right...
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 05:05 AM   #7
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

actually you are.

Integer.toHexString(DeviceInfo.getDeviceId())
converts the PIN into the common hex-format

hth,
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 08-18-2006, 06:41 AM   #8
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

Thanks...

And here is few more information on getCellInfo()

Retrieves the current cell ID.
Integer.toString(GPRSInfo.getCellInfo().getCellId( ));


Retrieves the Location Area Code.
Integer.toString(GPRSInfo.getCellInfo().getLAC());


Base Station Identity Code.
Integer.toString(GPRSInfo.getCellInfo().getBSIC()) ;
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
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


Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box picture

Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box

$44.99



Polycom Vvx 601 VoIP 16 Line Business Phone 4.3

Polycom Vvx 601 VoIP 16 Line Business Phone 4.3" HD Touchscreen PoE With Stand

$28.95



Mitel 5330e VoIP Dual Mode Gigabit Phone - Black picture

Mitel 5330e VoIP Dual Mode Gigabit Phone - Black

$15.95



Yealink SIP-T21P E2 IP Phone with Stand PoE Warranty VoIP Tested picture

Yealink SIP-T21P E2 IP Phone with Stand PoE Warranty VoIP Tested

$23.98



IPC Unigy (PULSE) VOIP PHONE / INTERCOM STATION - UNTESTED picture

IPC Unigy (PULSE) VOIP PHONE / INTERCOM STATION - UNTESTED

$149.99



Allworx Verge 9308 Voip IP Display Phone 8113080 NO STAND picture

Allworx Verge 9308 Voip IP Display Phone 8113080 NO STAND

$49.99







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