BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




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

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:
http://www.blackberryforums.com/deve...ng-midlet.html

I hope your orientation. thanks
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
CPO Offline
New Member
 
Posts: 14
Join Date: Apr 2007
Location: Ottawa
Model: 8100
PIN: N/A
Carrier: Rogers
Default 08-10-2007, 02:40 PM

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

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






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1