BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-10-2007, 09:55 AM   #1 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8800
PIN: N/A
Carrier: Telcel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default get Pin using getDeviceId()

Please Login to Remove!

Im using the next code to get the BB PIN:

int pin = DeviceInfo.getDeviceId();
textField1 = new TextField("PIN", Integer.toString(pin), 120, TextField.ANY);

apparently, I obtain the PIN, but the PIN that the funtion back to me is wrong, is not the original PIN....What Im doing wrong? something missing??

I checked already the next link of this forum:
Extract BB device PIN using Midlet…….. ?

I hope your orientation. thanks
Offline  
Old 08-10-2007, 01:40 PM   #2 (permalink)
CPO
New Member
 
Join Date: Apr 2007
Location: Ottawa
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Using Integer.toHexString(pin) instead of Integer.toString(pin) would make it look like the PIN number in the Status screen.
Offline  
Old 08-10-2007, 05:52 PM   #3 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8800
PIN: N/A
Carrier: Telcel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default succesful result

I replaced Using Integer.toHexString(pin) for Integer.toHexString(pin), and the result was good... thanks a lot !!
__________________
..So, I’ve decided to take my work back underground
To stop it falling into the wrong hands ... Music for jilted generation
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

Philips-Bodine B94CGU Compact Fluorescent Emerg ballast,750 Lu
$79.99
Philips-Bodine B94CGU Compact Fluorescent Emerg ballast,750 Lu picture20 Advance F96T12HO Ballast 120/277 ICN2S110SC New
$400.0
20 Advance F96T12HO Ballast  120/277 ICN2S110SC New  pictureAdvance E-Pack 34 Ballast #R-3S34-TP 120V 60 Hz Class P Type HL (NIB)
$8.59
Advance E-Pack 34 Ballast #R-3S34-TP 120V 60 Hz Class P Type HL (NIB) pictureQTY 10 UNIVERSAL LIGHTING BALLASTS 120/ 277 V B132IUNVHP-N010C FOR 1 f32t8 LAMPS
$90.0
QTY 10 UNIVERSAL LIGHTING BALLASTS 120/ 277 V B132IUNVHP-N010C FOR 1 f32t8 LAMPS pictureEspen VEC72120MR-1 FC12T9/FC16T9 Program Start Electronic Ballast 120V
$21.99
Espen VEC72120MR-1 FC12T9/FC16T9 Program Start Electronic Ballast 120V picture






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