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


VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V picture

VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V

$162.99



6200W Hybrid Off-Grid Solar Inverter MPPT 120A 220/230V 48V 500V Pure Sine Wave picture

6200W Hybrid Off-Grid Solar Inverter MPPT 120A 220/230V 48V 500V Pure Sine Wave

$161.49



PLC55 Inverter Air Plasma Cutter 55Amp IGBT 110V/220V Cutting Machine picture

PLC55 Inverter Air Plasma Cutter 55Amp IGBT 110V/220V Cutting Machine

$159.00



VEVOR 1.5KW 2HP Variable Frequency Drive Inverter 1 to 3 Phase VSD VFD 7A 220V picture

VEVOR 1.5KW 2HP Variable Frequency Drive Inverter 1 to 3 Phase VSD VFD 7A 220V

$59.99



55A IGBT Air Plasma Cutter DC Inverter Cutting Machine PLC55X Clean Cut 110/220V picture

55A IGBT Air Plasma Cutter DC Inverter Cutting Machine PLC55X Clean Cut 110/220V

$128.00



110V 300AMP Mini IGBT ARC Welding Machine Inverter DC MMA Electric Welder Stick picture

110V 300AMP Mini IGBT ARC Welding Machine Inverter DC MMA Electric Welder Stick

$61.59







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